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