@MilkShake the actions run locally on the mirror, they are TRIGGERED from the module… not as callbacks I don’t think
(i haven’t done that myself, but it seemed logical before) the old recipe stuff
you just create a little script in maybe the new A2D but old assistant had it to to trigger events…
here is fiddling with the radio on the mirror
How I do URL calls in python is through urllib.request - import that library then:
Depends on how far outside you wanna go outside the MM ecosystem.
edit: reminds me, I gotta re-write that for the new config, pi-hole and the mirror being two different units now.
@BKeyport but u have to use a helper to launch the python code…
way overhead for a fetch or post
@sdetweil True, if you’re staying in the MM ecosystem - in my case, I couldn’t get the modules I wanted to work the way I wanted, so I wrote up a python script to cover it, and it runs independently of MM
He wanted a python method, so I gave him options.
I went the way of dataplicity.io/wormhole, NGINX, IFTTT and MMM-NotificationTrigger. That way I should be able to use a webhook to execute the python script.
@Bugsounet Thanks Bugs! I will look into that when I have time for it.