{
module: 'MMM-ProfileSwitcher',
config: {
includeEveryoneToDefault: true,
ignoreModules: ["alert", "updatenotification"],
enterMessages: false,
leaveMessages: false,
defaultTime: 15000,
timers: {
"PAGE2":{profile:"default"}, //Switch to defaultClass after defaultTime
}
}
},
{
module: 'MMM-Buttons',
minShortPressTime: 0,
maxShortPressTime: 1000,
minLongPressTime: 3000,
config: {
buttons: [
{
pin:23,
name: "change_profile_1",
longPress: undefined,
shortPress: {
notification: "CURRENT_PROFILE",
payload: "PAGE2"
}
},
{
pin: 22,
name: "change_profile_2",
longPress: undefined,
shortPress: {
notification: "CURRENT_PROFILE",
payload: "default"
}
}
]
}
},
Read the statement by Michael Teeuw here.
Posts made by Mar
-
RE: [MMM-Buttons] Connect multiple buttons to send configurable notifications
-
RE: PIR-Sensor - put your mirror to sleep if not used
Hey Dirk, i was having some issues and was using “/opt/vc/bin/tvservice -o” and “/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 2” to turn my screen on and off as that seems to be what everyone is using. This worked reliably since i started using the PIR sensor.
All of a sudden this started making my screen go white when it issued the monitor on command…and the screen would stay white for a few minutes and sometimes it would come back.
Using your “vcgencmd” commands in place of the previous in my monitor on/off scripts everything is back to working again.
I had a couple questions. Firstly i didnt understand what you mean by hdmi_blanking=1…what does this do/should i put this in my boot/config.txt?? And secondly what is the difference between the two ways of toggling the monitor?
(I did ask my question here: https://forum.magicmirror.builders/topic/1780/white-screen-after-screen-resumes-from-pir-or-sometimes-randomly-can-still-access-via-ssh-requires-restart-sometimes/4 incase but stumbled upon this after.)
-
RE: White screen after screen resumes from PIR, or sometimes randomly - can still access via ssh, requires restart sometimes
@strawberry-3.141 I went through 1-10 on that second chvt LOL. no difference.
After a bit of searching the following seemed to work to turn my screen on and off but im hesitant to change my monitor on/off script to these as Ive never had an issue with the commands above that everyone seems to use. (from: https://forum.magicmirror.builders/topic/52/pir-sensor-put-your-mirror-to-sleep-if-not-used/21)
vcgencmd display_power 0
vcgencmd display_power 1
The original commands have worked for a long time so not sure why they’ve stopped working? can anyone explain the difference between the above and below? And why the below would start displaying a white screen when turned back on?
/opt/vc/bin/tvservice -o
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2
-
RE: White screen after screen resumes from PIR, or sometimes randomly - can still access via ssh, requires restart sometimes
White screen happens when the PIR sensor does this command, then after a few mins the MM comes back:
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2
Im not sure if theres something wrong with the Pi and when I do:
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 1
it shows the terminal on the screen, then doing the command with 2 brings back the white screen on the MM. -
White screen after screen resumes from PIR, or sometimes randomly - can still access via ssh, requires restart sometimes
Im all of a sudden (no changes made I dont think, except updating ProfileSwitcher) getting a fully white blank screen when the pir detects motion and brings the screen back on. Sometimes it stays white for 15 mins and comes back to normal, other times it requires me to restart.
When the white screen happens I can still access via ssh. Also I’m not using PIR module, just a simple script on start that monitors the PIR sensor and send the monitor off/on request. I havent had any issues before and its been on for over a week at a time.
Update:
So when the mirror comes back from the white screen after xx minutes this is the error in the log:
0|mm | ** Message: console message: http://localhost:8080/ @0: WebSocket network error: Error sending data: Connection reset by peer
So seems like the PIR script I have running is still working fine but shutting and resuming the screen…just not sure why the white screen started happening all of a sudden. With the white screen I can still issue the screen off command:
/opt/vc/bin/tvservice -o
but issuing the on command brings me back to the white screen.
-
RE: [MMM-PIR-Sensor] Install failing
@Jay I forgot what I did here to fix this issue. But to be honest after I got this working it still wasnt perfect. I ended going the route of a script on startup that controls the PIR sensor and its been perfect since and simple.
-
RE: Internet Monitor
@Mykle1 As I posted up above, seems like others are having the same issue. I noticed that in the logs the internet monitor is posting the speed every few seconds so I was thinking this was a probably cause?
Though the amount of slowdown just to show the wifi indicator was a little too much
-
RE: [MMM-Buttons] Connect multiple buttons to send configurable notifications
@Jopyth No i had to switch the 1 and the 0 to make it work (0 first, then 1) so my code does differ slightly unfortunately. Suppose I’ll have to remember to manually make the change on updates unless it can be made a config option.
That could be a good option. We’d need a way for profile switcher to send over all unique profiles which would make it easy to do, rather than scrape the config file for “classes”.edit: Though I suppose thinking about this not relying on another module would be much quicker fix.
-
RE: Internet Monitor
Ive done quite a bit of testing and on the Zero this module really slows down my startup, and seems to cause a few other modules trying to connect to the internet to take forever to load, or timeout (i.e TubeStatus). Increases my startup from less than a minute to a few minutes. Im not really sure why, but as soon as i disable everything goes back to being smooth.