@jfarro said in My mini magic mirror (pyramid style) build video:
vanity
Excellent work and nice idea!
@jfarro said in My mini magic mirror (pyramid style) build video:
vanity
Excellent work and nice idea!
Hi kusselin,
use this ready skript from Proxmox VE Helper Scripts - it works like a charme.
"To create a new MagicMirror Server LXC, run the command below in the Proxmox VE Shell.
To Update MagicMirror, run the command below (or type update) in the LXC Console.
bash -c “$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/magicmirror.sh)”
⚡ Default Settings: 512MiB RAM - 3GB Storage - 1vCPU ⚡
MagicMirror Interface: IP:8080
⚙️ Configuration
It’s from this url: https://tteck.github.io/Proxmox/
Hi, you can operate the Shellys with MQTT. There is for the MagicMirror a Modul called MMM-MQTT (https://github.com/ottopaulsen/MMM-MQTT). I use this for my Shelly Plug S - works fine.
Greetings Michael
Hi jackyjoy123,
have a look to Xiaomi temperature and humidity-sensors (https://xiaomi-mi.com/sockets-and-sensors/xiaomi-mi-temperature-humidity-sensor/). There is a MMM-module (https://github.com/mirko3000/MMM-xiaomi). Works fine.
Regards Michael
Your monitor should handle the cec-signal (Consumer Electronics Control).
I use very successfull the following crontrab
59 7 * * 1-5 sudo pm2 stop all >/dev/null 2>&1
0 8 * * 1-5 sudo reboot now >/dev/null 2>&1
29 9 * * 0,6 sudo pm2 stop all >/dev/null 2>&1
30 9 * * 0,6 sudo reboot now >/dev/null 2>&1
0 8 * * 1-5 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1
#turn on monitor on weekend at 9.30 am
30 9 * * 0,6 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1
#turn off monitor daily at 8.30 pm
30 20 * * * echo ‘standby 0’ | cec-client -s -d 1 >/dev/null 2>&1
best regards Michael
I use via crontab the CEC-function of the Monitor:
0 8 * * 1-5 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1
30 9 * * 0,6 echo “on 0” | cec-client -s -d 1 >/dev/null 2>&1
30 20 * * * echo ‘standby 0’ | cec-client -s -d 1 >/dev/null 2>&1
this works like a charme since over one year
regards Mike
@CyruS1337 said in Cronjob:
Thanks for the link, but it still does not work :(
# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').# # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command # #MONTAG BIS SONNTAG UM 19:55 MAGICMIRROR RESTART 55 19 * * * pm2 restart mm.sh >/dev/null 2>&1 # #SAMSTAG REBOOT UM 12:00 MAGICMIRROR REBOOT 24 17 * * * sudo reboot #
Sounds strange. Maybe you first have to stop the pm2 process before restart, with pm2 stop mm.sh. Don’t forget to complete the line für den reboot am Samstag - sudo reboot >/dev/null 2>&1
regards Michael
@CyruS1337 said in Cronjob:
Good evening
I’d like to see my MagicMirror restart at a certain time each day. What should I enter in the crontrab? I have already tried x variants, but unfortunately it never worked.
27 17 * * * Command pm2 restart mm
The sudo reboot command works fine.
27 17 * * 5 sudo poweroff
Did you forget to write the full command? Try pm2 restart mm.sh
By the way: I prefere the online crontab generator (https://crontab-generator.org/). It’s very easy.
Regards Mike
@lovesicker OK. Did you try to start the module twice? Maybe this is the possibility to activate both gateways at the same time as you need it.
Regards Mike
@lovesicker Hi,
why do you use two gateways? It’s not necessary. I use one gateway for my complete house. I use 10 temperature and humity sensors. Have a closer look to my config.
Regards Mike.
@lovesicker Hi,
I think you are on the wrong way: You use gatewayIP and gatewayToken twice. Thats not necessary.
Look to my configuration - this works fine:
{
module: ‘MMM-xiaomi’,
position: ‘bottom_left’,
colored: true,
header: ‘Temperatur / Luftfeuchtigkeit’, // This is optional
config: {
gatewayIP: ‘192.168.160.xx’,
outsideSensorId: ‘15xxx0201dxxx’,
gatewayToken: ‘cd857eee1fc760d029767709cd50xxxx’,
showWindow: true,
showVentilation: true,
showLights: false,
showTend: false,
showNotifications: false,
audioNotifications: false,
rooms: [
{
name: 'Büro',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 1,
devices : ['158d0001c2cxxx']
},
{
name: 'Aussentemperatur ',
sortOrder: 20,
devices : ['15xxx00201d4xxx']
},
{
name: 'Wohnzimmer ',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 2,
devices : ['158d0001c2cxxx']
},
{
name: 'Schlafzimmer ',
sortOrder: 3,
minTemperature : 15,
maxTemperature : 30,
devices : ['1xxx000201dxxx', '15xxx001f49xxx']
},
{
name: 'Philipp',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 4,
devices : ['1xxd0001c14xxx']
},
{
name: 'Marco',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 5,
devices : ['15xxx01f54xxx']
},
{
name: 'HW-Raum',
minTemperature : 10,
maxTemperature : 35,
sortOrder: 7,
devices : ['15xxx002029xxx']
},
{
name: 'Garage',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 10,
devices : ['15xxx001c1xxx']
},
{
name: 'Keller',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 9,
devices : ['15xxx001c2axxx']
},
{
name: 'WC',
minTemperature : 15,
maxTemperature : 35,
sortOrder: 8,
devices : ['15xxx001c1axxx']
},
{
name: 'Bad',
minTemperature : 18,
maxTemperature : 35,
sortOrder: 6,
devices : ['15xxx001c2cxxx']
},
]