Got it!
In the user crontab:
30 2 * * * /usr/local/bin/node /usr/local/bin/pm2 restart mm
Restarts the mirror every day at 2:30 am local time.
As always, thanks for your quick response!
Bill
Got it!
In the user crontab:
30 2 * * * /usr/local/bin/node /usr/local/bin/pm2 restart mm
Restarts the mirror every day at 2:30 am local time.
As always, thanks for your quick response!
Bill
Hi,
I’m trying to restart my mirror nightly with “pm2 restart mm” using a cron job. I’ve tried everything I can think of or find online but nothing works. I’ve created python and bash scripts, used the system crontab and the user crontab. I’ve tried it with and without “sudo” and also running it under the “pi” user. It always works interactively at the command line but not via crontab. Any suggestions?
Also, I saw the warning post about the April 1st upgrade and Pi Zero W. Does that also apply to the Zero 2W?
@KristjanESPERANTO Perfect! Thanks. I had tried the performance hints but they didn’t really help. This is a good alternative.
@KristjanESPERANTO I updated to the latest MM and the horizontal scroll works but it stutters badly on a Zero2W. I’ve tried changing the settings but none of them give an acceptable appearance. I have a request for an enhancement of the Vertical scrolling feature.
The ticker scrolls up until it gets to the last instrument, then scrolls in the opposite direction. This is fairly ugly. Can it be made to continually scroll in one direction?
@KristjanESPERANTO I’m running an old version of MM and this update just killed it completely. The reason I stayed with Version 1 was because I’m using a Pi Zero2W and the MMM-Jast ticker was painfully slow when scrolling. I guess I have no choice now.
I saw another post about issues with Yahoo Finance which is the source for MMM-JAST. Has anyone seen a fix or workaround?
@wyovino The current temperature displaying is now correct. I’m guessing this was an issue at the source.
The default value is 10 minutes, so it should never go above the free limit.
@sdetweil Do you know how frequently MM reaches out to pull down the weather data? I’d rather not exceed the daily free limit.
@sdetweil
I appreciate your efforts. The reason I’m using a Zero2W is that my mirror is in a tiny bathroom and when I used a Pi4 I could hear the hum of the fan. The Zero2W worked well except for the stock ticker which became very jerky. For the weather module, maybe I need a new API key. I’ll give that a try.
The MMM-Jast module doesn’t work properly on a Zero2W with more recent versions which is why I did a fallback to this version. Is this related to the Weather API change I saw in the pinned post? Here’s my config. The “current” doesn’t work properly but the “forecast” does.
{
module: “weather”,
position: “top_right”,
config: {
weatherProvider: “openweathermap”,
type: “current”,
location: “Rockville Centre”,
locationID: “5134203”,
apiKey: “{myAPIKey}”
}
},
{
module: “weather”,
position: “top_right”,
header: “Weather Forecast”,
config: {
weatherProvider: “openweathermap”,
type: “forecast”,
location: “Rockville Centre”,
locationID: “5134203”,
apiKey: “{apikey}”,
fade: false
}
},
MM V2.24.0, Pi Zero2W, Raspbian 10 (Buster)
I haven’t made any changes to my magic mirror since the beginning of February. I’m using the default Weather module and haven’t changed any related settings for that in over a year. The location is showing the correct city. The forecast for the next few days seems correct. The current temperature and today’s high and low are incorrect by about 20F degrees. I’ve tried rebooting and complete shutdown/unplug. Any suggestions?
@sdetweil Good idea but I don’t think it’s the case with this. I monitor the temps of all of my Raspberry Pis. Anyway, I re-imaged the usb drive from a backup and it appears to be working. If I set it up to reboot automatically nightly, should I have it stop MM first or is that unnecessary?
@sdetweil I’m in the process of re-imaging the USB drive from a backup. Hopefully that works. I don’t understand why it would work from a cold start but not a restart or reboot, but we’ll see what happens. It’s very consistent.
Update: Restarting MM and rebooting had no affect. A shutdown and power disconnect fixed the issue, at least for now.
MM V2.24.0, Pi Zero2W, Raspbian 10 (Buster)
MM stopped working yesterday. The PM2 log is showing this error:
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
If I reinstall Electron, do I need a specific version? If so, how can I tell which version I currently have, and how would I do it?
@rkorell Nice work! You didn’t specify the type of mirror you were considering. I would suggest a real glass mirror instead of acrylic. It’s more expensive but looks infinity better. I tried acrylic first and it was a waste of money.
CBS news feed is working for me https://www.cbsnews.com/latest/rss/main
I see a thread on Reddit where people are saying they lost the Yahoo RSS feed on Oct 29, which is when I noticed the problem on my Magic Mirror. I’m guessing that they either dropped the feed or it has a different link. Google AI thinks the feed is still in existence. I haven’t seen any official notice from Yahoo. Does anyone have a link for another general news source? I just check the top 10 RSS feeds on a website and the only one that actually exists is Politico. I really don’t want to add politics to my mirror.