Hi all,
I’m using MMM-RemoteControl also from other devices to HIDE/SHOW modules (e.g. MMM-iFRAME with a video stream) via HTTP Get requests and that works nicely.
http://My_MM_IP:8080/remote?action=SHOW&module=module_11_MMM-iFrame
http://My_MM_IP:8080/remote?action=HIDE&module=module_11_MMM-iFrame
This command is send from a Raspi running Motion with a connected USB CAM and will show/hide the videostream when this RasPi detects any motion. This works great.
Now I’m also using MMM-traffic but would like to show the module only in the mornig hours during the working days and hide afterwards.
I tried something like:
// SHOW traffic module on weekdays between 6:00 and 9:30
{notification: 'REMOTE_ACTION', schedule: '0 6 * * MON-FRI', payload: {action: "SHOW&module=module_15_MMM-Traffic"}},
{notification: 'REMOTE_ACTION', schedule: '30 9 * * MON-FRI', payload: {action: "HIDE&module=module_15_MMM-Traffic"}}
but the module does not hide.
For testing purposes I also tried this:
{notification: 'REMOTE_ACTION', schedule: '*/2 * * * MON-FRI', payload: {action: 'SHOW {"identifier":"module_15_MMM-Traffic"}'}},
{notification: 'REMOTE_ACTION', schedule: '1-59/2 * * * MON-FRI', payload: {action: 'HIDE {"identifier":"module_15_MMM-Traffic"}'}}
Actually the moudle should be sown/hidden every other minute. In PM2 log I can see that there is some action going on, but I expect that simply my paload description is wrong.
Any hints?
Many thanks form Neuss/DE