Read the statement by Michael Teeuw here.
Magic Mirror Module Development - Powershell embeded
-
Hi All, How are you.
Please note I am not a developer, My question is … How can I embed and run a powershell script or code from a Magic Mirror module and return its result to a payload(or data).
I have a pwershell script which I’d like to convert to a Magic Mirror module and since my background is not too technical , I need help or any suggestions or ideas.
Thank you.
Regards.
-
@nkc so you need the node_helper side of the module to execute the PowerShell script and capture it’s output. then send that output up to the browser side to display
you can look at/enhance my python print to call PowerShell instead of python
https://github.com/sdetweil/MMM-PythonPrint
this runs a python script, captures it’s output and sends it up to the browser side to display.
mm is all javascript
-
@nkc Hi,
i think you can use my MMM-CommandToNotification module to call the script periodically and send it’s output as a notification.
You then can use my MMM-ValuesByNotification module to display the value of the notification. -
@wishmaster270 I was going to recommend your modules but strayed into notifications , and I think that took him off path
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