Read the statement by Michael Teeuw here.
Sending notifications from python to MM
-
The link has to look like:
http://MAGIC_MIRROR_IP:PORT/remote?action=HIDE&module=module_7_newsfeedYou have to use the right module name, in my case it is “module_7_newsfeed”, you can find this out by opening your MM in your firefox browser and use F12 Button and check the HTML source, what the name of your newsfeed module is.
Hope this helps.
AxLED
-
@axled said in Sending notifications from python to MM:
You have to use the right module name, in my case it is “module_7_newsfeed”, you can find this out by opening your MM in your firefox browser and use F12 Button and check the HTML source, what the name of your newsfeed module is.
It does - the buttons work as required now. Thank you :)
So that looks like it’s the position of the module in the config file so it’ll remain static unless I change the config for some reason.
I really appreciate that. Thanks again. -
And how to trigger an alert from python or bash (curl)?
Is possible to show an image in the alert popup? -
@cyberdie
From python, the following will result in an alert>>> import requests >>> url = 'http://MAGIC_MIRROR_IP:PORT/remote?action=SHOW_ALERT&title="This is the title"&message="And this is the message"' >>> requests.get(url)
I can’t answer as to how you’d place an image within the alert though
-
Thanks @bream !