-
Checklist
VersionV1.19.02 Have you submitted your log files from the About page? Note that outbound email must be working for logs to be submitted.I have not submitted logs What is/are your question(s)?Any ideas on how to send a setremote command via a python script running on the same raspberry pi? I've tried using the web api but get an unknown command response. Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The ClientInterface.py program in the root folder of the project will take what the user types and send it to genmon as a command. This uses the library file in ./genmon/genmonlib/myclient.py to handle the TCP socket interface for sending the command. To use the web interface you can use this example. This example assumes you are using HTTPS with a user name and password. The URL used for the setremote command would be something like this: http://localhost:8000/cmd/setremote?setremote=off change "off" to the remote command you want to use. The main options are for the commands are start,stop and starttransfer. Other commands are in the code here: genmon/genmonlib/generac_evolution.py Line 1529 in f849906 however not all of them work on all firmware and controller variants. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
one clarifiaction, the "off" command is only for Evolution Liquid Cooled models. start, stop and starttransfer are the main commands to start, stop and start with the transfer switch activated. |
Beta Was this translation helpful? Give feedback.
The ClientInterface.py program in the root folder of the project will take what the user types and send it to genmon as a command. This uses the library file in ./genmon/genmonlib/myclient.py to handle the TCP socket interface for sending the command.
To use the web interface you can use this example. This example assumes you are using HTTPS with a user name and password. The URL used for the setremote command would be something like this:
http://localhost:8000/cmd/setremote?setremote=off
change "off" to the remote command you want to use. The main options are for the commands are start,stop and starttransfer. Other commands are in the code here:
genmon/genmonlib/generac_evolution.py
…