Hi,
I have a touch phat that I’d like to use to interact with modules, but the libraries for it are python only.
That’s fine as I’m familiar with python, but I have no java script experience.
The interactions that I’m thinking of are similar to those of the MMM-ModuleScheduler, e.g. hiding and displaying etc.
I think my best bet is to make use of the notifications system and send post requests using the MMM-API module (though I’d be happy to receive other suggestions).
My problem is that I can’t figure out what the post request should look like.
The readme on the MMM-API gives this example :
http://MAGIC_MIRROR_IP:PORT/api/v1/modules/MODULE_NAME/ACTION?payload1key=payload1value&payload2key=payload2value
but I can’t figure out what the payloadxkey and payloadxvalues should be for, say, hiding or showing a module.
I’ve looked at js of the MMM-ModuleScheduler and the MMM-Remote-Control but I can’t figure it out.
Could someone provide me with example post request urls to hide and show the calendar module please, or suggest a better method please?