Read the statement by Michael Teeuw here.
Posts
-
RE: default calendar fetching issues
-
RE: default calendar fetching issues
@sdetweil
Yes I agree, the memory is very limiting.
Although mine is a Pi3 model A, but the memory is 512mb like the pi02w.
When I started the project I had something different in my mind and now I’m pushing it to the limit.But as I said I checked everytime the CPU temperature, memory and generally resources usage from “htop” command.
This morning MM started with calendar error, I did a “pm2 restart mm” and goes OK.
Now I put “sleep 120” inside mm.sh as first line
I restarted it nowMemory BEFORE restart was this
total used free shared buff/cache available
Mem: 427 156 90 70 179 147
Swap: 1023 231 792Not so good but not so bad, same time.
I’ll check if this delay could help.
Is there a way to put a little delay between the loading of every module ? Maybe 5/10 seconds, I though it could be very helpful on a limited machine like mine :) -
RE: default calendar fetching issues
@sdetweil
behaviour seems the same. I suspect this, could this issues be related to the raspberry pi 3 computing capacity? could it be not enough?Is there a way to delay the pm2 automatic startup.
For example I though to try a delay of 1-2 minutes so:
1- raspbian startup
2- delay of 1-2 minutes to make sure all the services are up and the cpu is idle
3- mm startup
4- if it’s possible, I will add a delay to the modules startup also, maybe 20 seconds between every module loadingHonestly I checked his capacity a lot of times using the htop, free and cpu temperature command.
With my amazement I see everytime an amount of free memory, low cpu load and good cpu temp (like 40 to 50 degrees)But if there is a way to delay everything, I’ll just check if with a “calmly” startup It will go better
-
RE: default calendar fetching issues
@sdetweil
I did it.
I usually put the “disabled: true” before the module name line, instead of after
Is it different? -
RE: default calendar fetching issues
Recreated 2 times.
First time calendar loaded Holidays calendar only
[2025-03-19 22:23:55.917] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/**MYCAL**>
[2025-03-19 22:23:56.467] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/**HOLIDAYPUBLICCAL**/publ>
[2025-03-19 22:23:56.675] [LOG] Create new newsfetcher for url: https://www.ansa.it/sito/ansait_rss.xml - Interval: 300000
[2025-03-19 22:23:56.698] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:23:56.836] [LOG] MMM-Formula1 received a notification: CONFIG
[2025-03-19 22:23:56.838] [LOG] MMM-Formula1 is requesting the SCHEDULE on url https://api.jolpi.ca/ergast/f1/2025.json
[2025-03-19 22:24:02.687] [INFO] updatenotification: Updater Class Loaded!
[2025-03-19 22:24:02.733] [INFO] updatenotification: Checking PM2 using…
[2025-03-19 22:24:02.735] [INFO] updatenotification: [PM2] You are not using pm2
[2025-03-19 22:24:02.740] [INFO] Checking git for module: MMM-CalendarExt3
[2025-03-19 22:24:03.525] [INFO] Checking git for module: MMM-Growatt
[2025-03-19 22:24:03.850] [INFO] Checking git for module: MMM-Formula1
[2025-03-19 22:24:04.283] [INFO] Checking git for module: MMM-RAIN-MAP
[2025-03-19 22:24:07.693] [INFO] Checking git for module: MagicMirror
[2025-03-19 22:24:08.072] [LOG] MMM-Formula1 is returning the SCHEDULE for the season
[2025-03-19 22:24:40.393] [INFO] Newsfeed-Fetcher: Broadcasting 28 items.
[2025-03-19 22:24:45.457] [INFO] Calendar-Fetcher: Broadcasting 61 events from https://calendar.google.com/calendar/**MYPRIVCAL**>
[2025-03-19 22:24:46.745] [INFO] Calendar-Fetcher: Broadcasting 36 events from https://calendar.google.com/calendar/**PUBLICHOLIDAYCAL/>
[2025-03-19 22:24:57.986] [LOG] Publishing GROWATT data
[2025-03-19 22:25:51.745] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:25:54.191] [LOG] Publishing GROWATT data
[2025-03-19 22:27:51.368] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:27:53.447] [LOG] Publishing GROWATT data
2nd time I got the error and no calendar loaded:
[2025-03-19 22:32:06.388] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/**PUBLICHOLIDAYCAL**>
[2025-03-19 22:32:07.767] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/**MYPRIVCAL**>
[2025-03-19 22:32:07.881] [LOG] Create new newsfetcher for url: https://www.ansa.it/sito/ansait_rss.xml - Interval: 300000
[2025-03-19 22:32:07.903] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:32:08.057] [INFO] updatenotification: Updater Class Loaded!
[2025-03-19 22:32:08.059] [INFO] updatenotification: Checking PM2 using…
[2025-03-19 22:32:08.063] [INFO] updatenotification: [PM2] You are not using pm2
[2025-03-19 22:32:08.066] [INFO] Checking git for module: MMM-CalendarExt3
[2025-03-19 22:32:08.132] [LOG] MMM-Formula1 received a notification: CONFIG
[2025-03-19 22:32:08.134] [LOG] MMM-Formula1 is requesting the SCHEDULE on url https://api.jolpi.ca/ergast/f1/2025.json
[2025-03-19 22:32:08.516] [INFO] Checking git for module: MMM-Growatt
[2025-03-19 22:32:10.043] [INFO] Checking git for module: MMM-Formula1
[2025-03-19 22:32:11.007] [INFO] Checking git for module: MMM-RAIN-MAP
[2025-03-19 22:32:14.346] [INFO] Newsfeed-Fetcher: Broadcasting 28 items.
[2025-03-19 22:32:14.404] [LOG] MMM-Formula1 is returning the SCHEDULE for the season
[2025-03-19 22:32:14.414] [INFO] Checking git for module: MagicMirror
[2025-03-19 22:32:48.815] [INFO] Calendar-Fetcher: Broadcasting 61 events from https://calendar.google.com/calendar/**MYPRIVCAL**>
[2025-03-19 22:32:50.508] [INFO] Calendar-Fetcher: Broadcasting 36 events from https://calendar.google.com/calendar/**PUBLICHOLIDAYCAL**>
[2025-03-19 22:32:51.949] [LOG] Publishing GROWATT data
[2025-03-19 22:34:08.485] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:34:14.955] [LOG] Publishing GROWATT data
[2025-03-19 22:36:06.721] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:36:09.906] [LOG] Publishing GROWATT data
[2025-03-19 22:37:16.339] [INFO] Newsfeed-Fetcher: Broadcasting 28 items.
[2025-03-19 22:38:07.502] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:38:10.302] [LOG] Publishing GROWATT data
[2025-03-19 22:40:09.496] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:40:12.087] [LOG] Publishing GROWATT data
[2025-03-19 22:42:11.495] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:42:13.869] [LOG] Publishing GROWATT data
[2025-03-19 22:42:16.743] [INFO] Newsfeed-Fetcher: Broadcasting 28 items.
[2025-03-19 22:44:13.525] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:44:15.562] [LOG] Publishing GROWATT data
[2025-03-19 22:46:15.496] [LOG] MMM-Growatt: GROWATT_GET_DATA
[2025-03-19 22:46:17.289] [LOG] Publishing GROWATT data
[2025-03-19 22:47:17.588] [INFO] Newsfeed-Fetcher: Broadcasting 28 items.
[2025-03-19 22:47:20.690] [LOG] Shutting down server…
[2025-03-19 22:47:20.696] [LOG] Stopping module helper: calendarHonestly… I don’t see nothing strange.
But when this error appear, if I left MM on for a day, it wont load calendar entries.I have to restart it one or more time till it show entries
-
RE: default calendar fetching issues
It’s very long.
I checked the end paragraph ad I saw just errors from growatt module.
Do I have to search something in particular? -
RE: default calendar fetching issues
git branch
- _fix_clipping
master
Error appeared now:
" Error in the calendar module. Check logs for more detail."I don’t know where to find calendar logs but with “pm2 logs”
I don’t see any errors information about calendar issue, just something about another module./home/MYUSER/.pm2/logs/mm-error.log last 15 lines:
0|mm | socket: {
0|mm | localAddress: 'MMIPADDRESS,
0|mm | localPort: MMPORT,
0|mm | remoteAddress: undefined,
0|mm | remotePort: undefined,
0|mm | remoteFamily: undefined,
0|mm | timeout: undefined,
0|mm | bytesWritten: 322,
0|mm | bytesRead: 0
0|mm | }
0|mm | }
0|mm | }
0|mm | [2025-03-19 13:30:59.574] [ERROR] Failed to retrieve repo info for MMM-Growatt: Error: Command failed: cd /home/MYUSER/MagicMirror/modules/MMM-Growatt && git fetch -n --dry-run
0|mm | fatal: unable to access ‘https://github.com/dekinet/MMM-Growatt.git/’: Empty reply from server
0|mm |I don’t think this could be related to calendar issue
- _fix_clipping
-
RE: default calendar fetching issues
@sdetweil I though I applied the fix in the past, although I’m not 100% sure.
But I don’t think the issue is ext3 related.In my opinion sometimes default calendar don’t fetch the calendars, especially at the morning.
When it happen I don’t see any lines and a error message appear.
I don’t remember the message and now it’s working.
In the last one hour I tried to restart MM some times but now seems working, everything ok, no error message.
If it will appear, I’ll write it here -
default calendar fetching issues
I’m using default calendar with calendarExt3
Actually I’m using 2 .ics, one for holidays and one for private, both are Google cals and sometimes module has fetching issues.
I can’t figure what the problem is because behaviour is strange.These are the cases that happened to me, everytimes on startup:
- no default calendar events, no ext3 events
- default and ext3 shows only holiday events
- default shows nothing, ext3 shows some events
-
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
@sdetweil
Yes, I knew how CEC work, but in my case I have an LCD controller and I have check his behaviour.Lucky me, when video signal is off, the controller stay in standby with a completely black screen.
This will be perfect, but only if the RemoteControl command will stop or cut-off the video signal, instead of sending a CEC turning off signal.
That was my doubt -
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
@sdetweil So in your opinion my idea Home-Presence+RemoteControl+Scheduler could work?
Or should I have to throw it in the wastebin? :) -
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
@sdetweil noticed another little problem. My phone is connected to wifi but the flag on Home-Presence turn off sometimes, especially when the screen is locked.
I tried to disable the “wifi private address option” on the phone and it seem working well but sometimes the flag goes off so I suppose that, after configuration, the monitor will turn on off itself a lot of times -
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
@sdetweil Oh, thank you!
So you modify the module to send notification when it detect one or more presence?
I installed it and configure the notification “string”
Now I have a module that send a virtual notification “string” to other modules.
So now I’m toughing about install MMM-RemoteControl and MMM-ModuleScheduler.When someone is at home ModuleScheduler will receive the “string” and it will send a command to RemoteControl for turning on the display.
And when no one is at home? ModuleSchedule won’t receive any notification so RemoteControl should exec the MONITOROFF commands.
I know it can’t work like this, maybe I’ve lost some steps in my mind.I was also thinking about the electronics I’m using.
Mine is an LCD taken from a digital frame, connected to rasbperry through a lcd controller.
The controller turning off monitor itself when there isn’t hdmi signal for a while and it should stay in stand-by waiting for signal.
My doubts are:- In your opinion, module will send command every 10 seconds, so is this could be a problem?
- Do you have experience if the “MONITORON” “MONITOROFF” commands acts as CEC commands or a simple “turning ON/OFF the raspberry’s video out”?
Because if it work as CEC command… I think it will not work, in my case with an LCD controller
-
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
@sdetweil ok, I don’t think a newbie like me could do it but it was a good idea, if only Home-Presence had a notification option by default. Thanks
-
RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)
Hello, I know this is an old topic but I think it’s very interesting.
I have an idea but I’m a newbie to programming.
In my mind I was thinking about using one or more modules like these:MMM-ModuleScheduler
MMM-Home-Presence
MMM-RemoteControlto have a way to turning off the monitor when one member of the family is at home.
For “is at home” I mean when the phone is connected to wifi and the MMM-Home-Presence detect his presence.
Might be MMM-RemoteControl could communicate with MMM-Home-Presence and turn off/on the monitor?
What do you think about it?
Thanks -
RE: MMM-GoogleCalendar stopped working "INVALID_GRANT"
@sdetweil Ok, so I set your standard calendar module with google ics url; it should read google events and broadcast to CalendarExt3.
I hope I understand your message well.
Using ICS instead of OAuth my question is: does it update automatically or I have to manually update it?
Can I add more than one calendar? If you, which is the correct formattation?
Is the configuration under here correct?calendars: [ { url: "ht****lendar.google.com/MYURLCALENDAR.ics", fetchInterval: 7 * 24 * 60 * 60 * 1000, fade: "false", name: "MYCALENDARNAME", // <= RECOMMENDED to assign name color: "blue", // <= RECOMMENDED to assign color customEvents: [{keyword: 'Birthday', symbol: 'birthday-cake', color: 'Gold'},{keyword: 'Dinner', symbol: ' pizza-slice', color: 'red'}], -
RE: MMM-Growatt
@mumblebaj I fix it by myself, butI just though you were interested about the two errors for other people.
Anyway thank you for everything, exportedPower is not a problem but is there a way to just enhance charachter dimension? -
MMM-GoogleCalendar stopped working "INVALID_GRANT"
After a week I got “INVALID_GRANT” does the token expire every 7 days because my app is in “testing”?
In fact my “app” in not an app, is just an authorization token for my calendar so my question is, if I publish the app, does my calendar datas could become public?
And how much time will be the OAuth token duration?
Eventually, which are your advice to another type of calendar?
Honestly I don’t wann become slave for the calendar authentication.
Thanks -
RE: MMM-Growatt
@mumblebaj First of all, thak you again.
I might found 2 syntax errors:{ module: "MMM-Growatt", position: "middle_center", //Works best at middle_center. May not display all that well in other positions disabled: false, config: { username: "username", password: "password", usServer: true, // only used by US Registered users debug: false, // set to true if you want to create a debug log mode: "dual", // Specify 'dual' when running https://github.com/mumblebaj/MMM-Growatt.git and https://github.com/mumblebaj/MMM-Growatt-Stats.git together else specify 'single' view: "table", // Only add this if you want a minimalystic table view rowToDisplay: [ "loadPower", "batteryPower", "solar", "loadPower" ] //Remove items you do not want to display on the table. Table will be ordered in the same order as items appear in the list. Not required of view is not table updateInterval: 1000*60*30 //Update every 30 minutes }},
inside the rowToDisplay line, after the closing square comma, a comma is missing
and between the two square commas there are two “loadPower” so I wrote"gridPower" instead and seems working but in that moment solar power is higher than load so I don’t have any valor in it.Two question: can I enhance the charachters dimension?
can I add “exportedPower” to it?Thanks
-
RE: MMM-Growatt
@mumblebaj Thank you, I put the star
Now I’m trying to installing it but I have the dekinet’s one and the folder has same name of yours.
Do I have to uninstall dekinets one or is there a way to try your module without uninstall the other one?
Thanks