-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hung on Loading #10
Comments
Hi, sorry for the late reply... Are you sure you use this for of the module? If you enter: git remote get-url origin you should get this as answer: git@github.com:Tom-Hirschberger/MMM-OpenWeatherForecast.git |
There is definitely a problem with the MMPM module. Maybe it is not installed correctly. |
Do you see any more errors in the server console output? If you start MagicMirror with pm2 the log files are located in the directory |
At least it is clear it is a problem during the fetch of the data in the node_helper.js. I just pushed a new version which prints some more information in case a error occurs during fetch. Can you please try the latest version for another check. I use a docker instance of With this config it works very well in my case: {
module: "MMM-OpenWeatherForecast",
position: "top_right",
header: "Weather",
config: {
debug: true,
apikey: "123456abcdef", //my api key
latitude: "2",
longitude: "-9.",
units:"imperial",
iconset: "3c",
showHourlyForecast: false,
showDailyForecast: true,
},
}, |
> magicmirror@2.29.0 server
> node ./serveronly
[2024-12-01 20:36:32.470] [LOG] Starting MagicMirror: v2.29.0
[2024-12-01 20:36:32.480] [LOG] Loading config ...
[2024-12-01 20:36:32.481] [LOG] config template file not exists, no envsubst
[2024-12-01 20:36:32.650] [INFO] Checking config file /opt/magic_mirror/config/config.js ...
[2024-12-01 20:36:32.675] [INFO] Your configuration file doesn't contain syntax errors :)
[2024-12-01 20:36:32.675] [INFO] Checking modules structure configuration ...
[2024-12-01 20:36:32.707] [INFO] Your modules structure configuration doesn't contain errors :)
[2024-12-01 20:36:32.781] [LOG] Loading module helpers ...
[2024-12-01 20:36:32.781] [LOG] No helper found for module: clock.
[2024-12-01 20:36:32.793] [LOG] Initializing new module helper ...
[2024-12-01 20:36:32.793] [LOG] Module helper loaded: MMM-OpenWeatherForecast
[2024-12-01 20:36:32.794] [LOG] Initializing new module helper ...
[2024-12-01 20:36:32.794] [LOG] Module helper loaded: MMM-EmbedURL
[2024-12-01 20:36:32.795] [LOG] Initializing new module helper ...
[2024-12-01 20:36:32.795] [LOG] Module helper loaded: MMM-ProfileControl
[2024-12-01 20:36:32.795] [LOG] No helper found for module: MMM-ProfileSwitcher.
[2024-12-01 20:36:32.795] [LOG] All module helpers loaded.
[2024-12-01 20:36:32.799] [LOG] Starting server on port 8080 ...
[2024-12-01 20:36:32.801] [WARN] You're using a full whitelist configuration to allow for all IPs
[2024-12-01 20:36:32.811] [LOG] Server started ...
[2024-12-01 20:36:32.812] [LOG] Connecting socket for: MMM-OpenWeatherForecast
[2024-12-01 20:36:32.812] [LOG] Starting node_helper for: MMM-OpenWeatherForecast
[2024-12-01 20:36:32.812] [LOG] Connecting socket for: MMM-EmbedURL
[2024-12-01 20:36:32.812] [LOG] Connecting socket for: MMM-ProfileControl
[2024-12-01 20:36:32.812] [LOG] Sockets connected & modules started ...
[2024-12-01 20:36:32.812] [INFO]
>>> Ready to go! Please point your browser to: http://0.0.0.0:8080 <<<
[2024-12-01 20:36:32.933] [INFO] System information:
### SYSTEM: manufacturer: HP; model: Docker Container; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: x64; kernel: 6.8.0-48-generic
### VERSIONS: electron: undefined; used node: 22.11.0; installed node: 22.11.0; npm: 10.9.0; pm2:
### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
[2024-12-01 20:36:34.726] [LOG] MMM-OpenWeatherForecastFetching url: https://api.openweathermap.org/data/3.0/onecall?lat=2&lon=-9.&exclude=minutely&appid=123456abcdef&units=imperial&lang=de |
The above error shows with the update. However, the weirdest thing is happening now. When I run MM on the rPi at first it hangs on Loading...however, when I connect to it from another terminal and refresh, everything then loads. |
Are the both logs are of the same run? There is a time gap of a couple of hours between the start and fetch errors. |
the first half is from your post, I was replying to your post.. 0|mm | [2024-12-01 13:54:10.988] [ERROR] [MMM-OpenWeatherForecast] 1-Dec-24 13:54 ** ERROR ** TypeError: fetch failed this is the error from my run |
Sorry. Was answering with my mobile phone and got confused cause of the small screen. Which node version do you use? |
pi@raspberrypi:~/MagicMirror/modules/MMM-OpenWeatherForecast $ node -v |
No more issues on the rPI. however, the instance running on docker has the same issue. |
Can you please check the node version of the Docker instance. As the module uses a build in node function to fetch the data it is the only thing remaining I can imagine. |
OK. That's strange. Did you run the Did you use the same user id the mirror runs in the container? |
Did you make any progress with this problem? |
Not really. I ran the container again yesterday and issue remains. I reverted to running mm directly on the pi. |
My module hangs on Loading. The debug is showing the following error.
That's the config for the module.
I verified the API and when I paste the API Call URL it returns data, so I know my API key is working.
Any ideas? I also tried the default weather module, no luck.
The text was updated successfully, but these errors were encountered: