Read the statement by Michael Teeuw here.
MM to periodically run a python or JS script?
-
Hi there,
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.
link: https://github.com/paviro/MMM-Facial-Recognition -
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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login