@bkeyport and Sam: thanks for the inputs. I went through my logs and the referenced thread, and now do have DynamicWeather working. Much appreciated!
Read the statement by Michael Teeuw here.
Best posts made by JohnGalt
-
RE: Black Screen with some modules + linux-armv Error
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I wasn’t sure you [still] wanted me to do that before you had a chance to see the extended pm2 logs outputs. I will do it now and get back to you.
-
RE: Temperature/humidity on Magic Mirror
@sdetweil Thanks, Sam. I may take a look at that Ecobee API and/or the charting. The Ecobee is currently not in use in my new house, but this may give me the added incentive to get going on that. Thanks again.
-
RE: Upgrade errors?
@sdetweil - Thanks, the log file is on its way to you…
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I was able to search out a fix.
For the benefit of anyone else running Wayland and wanting or needing to switch back to x11, see: https://linuxconfig.org/how-to-use-x-instead-of-wayland-on-ubuntu-22-04 where you are asked to edit one line in a file, then reboot.
sudo nano /etc/gdm3/custom.conf
I will mark this as solved now.
-
RE: one call api open weather
@KristjanESPERANTO - am I misreading or does MMM-OpenWeatherMapForecast appear on both the first and last list? THANKS for the thorough review!
-
RE: Upgrade errors?
@sdetweil - Thanks for the help here and offline. My problem is solved, and for the sake of others following is the resolution.
Problem: MagicMirror install script outputs node.js errors on new RaspbianOS install running under VirtualBox.
Diagnosis [by sdetweil]: “so, the problem is that the intel raspian is a hybrid, x86_64 kernel with a i386 user runtime.
and they stopped making a nodejs for i386 after node 12”Solution: Rebuilt the virtual machine using Ubuntu instead of RaspbianOS. [I’m sure any Debian or other Linux distribution would work just fine…]
Thanks again - I can now use this as a dev machine and spare myself the risks associated with fiddling with the production machine!
-
RE: The most popular 3rd party modules
Kristian - do the links to the modules listed as numbers 7-10 need some validation? :)
Latest posts made by JohnGalt
-
RE: MMM-WeatherAlerts
@mmmallday – Update: I now have this running. I made two changes and it now displays alerts.
It is not clear why these changes made any difference, because when i revert the changes the module still works. I would expect that if either or both made a difference, the module behavior would have changed back…
The first change was to remove a line I had added in the config to specify the endpoint, which is now removed
weatherEndpoint: "/onecall",
The other change was to reduce the number of decimal points in the lat and lon from the six (6) produced by Google Maps to four(4), which I recall having used in the past.
As I said, it’s not clear what I did, but it’s working now so I will leave this module alone and go on to something else. Before I mark this as solved, I will wait a bit to see if anyone had further input as to the actual resolution.
Thanks for your time and attention.
-
RE: MMM-WeatherAlerts
@mmmallday – I already have a ver 3.0 API key, so if that is what you are referencing it’s covered.
Query: When you say “It’s not there…”, what “it” are you referencing? If you mean the weather in general, it’s definitely there - pulled from openweathermap and displayed on two different modules. I see it on my Magic Mirror as we speak on the default weather module and on MMM-OpenWeatherMapForecast.
I’m asking specifically about the alert information that gets delivered along with current conditions, forecasts, etc. This module [MMM-WeatherAlerts] should pull the weather data from openweathermap and display when [and only when] there is an active alert for the designated location. That is what is not happening… [FWIW, AFAIK other modules should also display alerts, e.g: MMM-OpenWeathermapForecast.]
I just now confirmed that openweathermap is actually sending the data. My location had a warning but it just expired, so I used my API key and queried them for a location the National Weather Service says is under a tornado warning.
Testing this is relatively straightforward. Go to the NWS alerts page to find a location with a current alert: https://alerts.weather.gov/search?region_type=land
Once you have a candidate location get the lat + lon from Google Maps, then use that and your API key to get the data in the browser, e.g.: https://api.openweathermap.org/data/3.0/onecall?lat=35.0194&lon=-97.3709&exclude=minutely&units=metric&lang=en&APPID=123456789123456789
Following is a snippet of the data retrieved (it’s at the very bottom of the page):
alerts 0 sender_name "NWS Norman OK" event "Flood Watch" start 1730730660 end 1730764800 description "* WHAT...Flooding caused by excessive rainfall continues to be\npossible.\n\n* WHERE...Portions of Oklahoma, including the following counties,\nAtoka, Blaine, Bryan, Caddo, Canadian, Carter, Cleveland, Coal,\nComanche, Cotton, Garfield, Garvin, Grady, Grant, Hughes, Jackson,\nJefferson, Johnston, Kay, Kingfisher, Kiowa, Lincoln, Logan, Love,\nMarshall, McClain, Murray, Noble, Oklahoma, Payne, Pontotoc,\nPottawatomie, Seminole, Stephens and Tillman and northern Texas,\nincluding the following counties, Archer, Baylor, Clay, Foard,\nHardeman, Knox, Wichita and Wilbarger.\n\n* WHEN...Until 6 PM CST this evening.\n\n* IMPACTS...Excessive runoff may result in flooding of rivers,\ncreeks, streams, and other low-lying and flood-prone locations.\nFlooding may occur in poor drainage and urban areas.\n\n* ADDITIONAL DETAILS...\n- Additional rounds of heavy rain will be possible through\nMonday, ending from west to east Monday afternoon. Many areas\nin the watch have seen 2 to 4 inches of rainfall, with some\nlocations 5 to 8 inches. The additional rain could lead to\nrapid flooding, especially in low lying and poorly drained\nareas.\n- http://www.weather.gov/safety/flood" tags 0 "Flood"
So my question remains - why is it that the National Weather Service is creating alerts, onerweathermap is collecting and delivering the alerts, but the alerts aren’t being processed by our modules?
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I was able to search out a fix.
For the benefit of anyone else running Wayland and wanting or needing to switch back to x11, see: https://linuxconfig.org/how-to-use-x-instead-of-wayland-on-ubuntu-22-04 where you are asked to edit one line in a file, then reboot.
sudo nano /etc/gdm3/custom.conf
I will mark this as solved now.
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – OK, thanks for the effort!
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – Humm, I see what you mean. unfortunately this isn’t running on an actual Raspberry Pi so I don’t have that utility available to me.
It’s a VM running Ubuntu 23.10. If you can point me in the right direction, I’d be willing to give it a shot.
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I did the pm2 work you asked for, and still have the same results.
As this is a dev instance it’s not as critical as it might be for the regular [production] instance we use to get actual information. Am I better off just re-installing Magic Mirror from scratch on this machine?
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I wasn’t sure you [still] wanted me to do that before you had a chance to see the extended pm2 logs outputs. I will do it now and get back to you.
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I sent you an email with extended pm2 logs output.
-
RE: MM won't start after upgrading to 2.29.0
@sdetweil – I can do that. Would you want it here or email?
-
MM won't start after upgrading to 2.29.0
@sdetweil and others – I ran Sam Detweil’s update script. Trial mode didn’t show anything worrying, so I re-ran it and applied the changes. I was running pm2 logs in another terminal window and saw it stall…
I’ve rebooted the machine, and it is stuck in a loop now. What looks like the relevant section of the logs is pasted below. This repeats over and over…
@sdetweil - I sent you the upgrade log by email.
0|MagicMirror | [2024-10-29 15:16:06.807] [LOG] Starting node helper for: newsfeed 0|MagicMirror | [2024-10-29 15:16:06.807] [LOG] Connecting socket for: MMM-DynamicWeather 0|MagicMirror | [2024-10-29 15:16:06.808] [LOG] Sockets connected & modules started ... 0|MagicMirror | Authorization required, but no authorization protocol specified 0|MagicMirror | [123146:1029/151606.810294:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY 0|MagicMirror | [123146:1029/151606.810429:ERROR:env.cc(258)] The platform failed to initialize. Exiting. 0|MagicMirror | /home/al/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV PM2 | App [MagicMirror:0] exited with code [1] via signal [SIGINT] PM2 | App [MagicMirror:0] starting in -fork mode- PM2 | App [MagicMirror:0] online 0|MagicMirror | > magicmirror@2.29.0 start 0|MagicMirror | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMirror | [2024-10-29 15:16:13.638] [LOG] Starting MagicMirror: v2.29.0 0|MagicMirror | [2024-10-29 15:16:13.664] [LOG] Loading config ... 0|MagicMirror | [2024-10-29 15:16:13.666] [LOG] config template file not exists, no envsubst 0|MagicMirror | [2024-10-29 15:16:14.116] [INFO] Checking config file /home/al/MagicMirror/config/config.js ... 0|MagicMirror | [2024-10-29 15:16:14.230] [INFO] Your configuration file doesn't contain syntax errors :) 0|MagicMirror | [2024-10-29 15:16:14.231] [INFO] Checking modules structure configuration ... 0|MagicMirror | [2024-10-29 15:16:14.329] [INFO] Your modules structure configuration doesn't contain errors :) 0|MagicMirror | [2024-10-29 15:16:14.331] [LOG] Loading module helpers ... 0|MagicMirro