Ah sorry… the MMM was missing. should be this:
http://your.raspberry.ip.address:8080/remote?action=HIDE&module=module_0_MMM-ImageSlideshow
And
http://your.raspberry.ip.address:8080/remote?action=SHOW&module=module_0_MMM-ImageSlideshow
Ah sorry… the MMM was missing. should be this:
http://your.raspberry.ip.address:8080/remote?action=HIDE&module=module_0_MMM-ImageSlideshow
And
http://your.raspberry.ip.address:8080/remote?action=SHOW&module=module_0_MMM-ImageSlideshow
Try these commands in the *.sh files:
vcgencmd display_power 1
and
vcgencmd display_power 0
I need to update my post ^^
Maybe with a relay? :)
take a look at point 5.2
https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1
edit: but the normal MMM-PIR module can use a relay, too ;)
hmm…
To start it hidden just open your remoteControl with http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote.html
Go to “Edit view” and hide the module. Then press “SAVE”
Note: Every time you change your config u need to do this again ;)
so now to your button problem…
please try this:
open a browser on your pc and type:
http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=HIDE&module=module_0_ImageSlideshow
http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=SHOW&module=module_0_ImageSlideshow
This should hide and show the module as these are the comments which the remote control is using.
If this works its probably a configuration problem with the PIN.
note that:
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | IN | 1 | 3 || 4 | | | 5v | | |
| 3 | 9 | SCL.1 | IN | 1 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 0 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | OUT | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | |
| 22 | 3 | GPIO. 3 | OUT | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
| | | 3.3v | | | 17 || 18 | 0 | OUT | GPIO. 5 | 5 | 24 |
| 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | |
| 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 |
| 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8 |
| | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7 |
| 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1 |
| 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | | |
| 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 12 |
| 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | |
| 19 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 1 | OUT | GPIO.27 | 27 | 16 |
| 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | GPIO.28 | 28 | 20 |
| | | 0v | | | 39 || 40 | 0 | IN | GPIO.29 | 29 | 21 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
Don’t know what type u are using (BCM, w-pi, physical ??)
In your config you wrote Pin: 18, but in your first post u said 15…
Maybe try another one. For example u could use GPIO 29, which is physically Pin 40, which is BCM Pin 21…
So in your config u must write, that u are using Pin 21!
i would use pm2 for that.
sudo nano /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
59 23 * * * pi pm2 restart mm
#
should work…
@xela
As i can see there is no image module which allows sending/receiving notifications.
but how about just hide and how the module?
U would need MMM-RemoteControl, too.
MMM-Buttons:
{
module: 'MMM-Buttons',
config: {
maxShortPressTime: 1000,
buttons: [
{
pin: 15,
name: "MMM-ImageSlideshow",
shortPress: {
notification: "REMOTE_ACTION",
payload: {
action: "SHOW",
module: "module_0_MMM-ImageSlideshow"
}
},
longPress: {
notification: "REMOTE_ACTION",
payload: {
action: "HIDE",
module: "module_0_MMM-ImageSlideshow"
}
},
},
]
}
},
edit:
the module_0_MMM-ImageSlideshow means, that this module is on the first position in your config.js.
So u need to count to this module beginning with 0.
If the module is at third position in your config it would be module_2_MMM-ImageSlideshow
afaik this isn’t possible with Easy-Pix. (please correct me)
But maybe u give MMM-ImagesPhotos a try. With that u can set an update interval. Just put your only Photo in the directory
i agree with @barnosch
the power supply is not causing the heat problem! Well, if u can call it a problem… 66-70° while running magic mirror is ok. As barnosch said u probably can reduce it by removing unused stuff. :)
@howi42
maybe same recommendation here. Remove unused stuff. Thats the reason, why i am a fan of using the Lite versions of raspbian ^^
Alexa-pi is maybe waiting all the time for your voice and that also needs CPU Power. And MagicMirror can raise the temp, too when using much modules. Especially when using modules with animation…
Just to say:
I am running my Magic Mirror in a completely closed frame (without any holes). Just put the small heatsinks u can buy everywhere on eBay on it and i have temperatures about 58-63°. When the monitor is on for about 10 minutes it will raise to max. 66-67°.
For using a fan regulated by the Pi’s temperature u can check this: https://forum.magicmirror.builders/topic/6495/temperature-regulated-fan-on-rpi/3
@mykle1
Didn’t see your post, cause i was writing.
But i never understood your temperature and your System Load :D
even with using raspbian Lite and just installing MM i never got this results. Even when the Pi lays on my table with heatsinks.^^
was always above 50°
Maybe u are sitting in an igloo XD
i did the same mistake on my first time. Think this is a german guys problem XD