MM to periodically run a python or JS script?
Im still relatively new to the world of Magic Mirror and programming as well. As per topic, I have created a script that generates a JSON file as an output and i would like MM to make use of this output in one of my modules.
is this possible?
I am not sure if you still need it, but just in case:
As far as I know there is the “python-shell” library which lets you do exactly that.
Paul-Vincent Roll used it in his facial recognition module, that’s how I found out.
Hi @tosti007 ,
I found out that by making use of the “exec” command works too. I came across this command while i was looking at the PIR sensor module ( https://github.com/paviro/MMM-PIR-Sensor ) . Thanks for sharing anyway!
@zichao92 ah nice, that’s way easier aswell. Thanks for letting me know, might come in handy once!