fc0cd04b53094cce56c3f1e60e484ea0b0cbe04e
Adds the ability to handle simple REST like api calls to the Webserver. If a POST request is received by the webserver it calls HttpServer::HandlePostRequest "Get" Action Example: http://localhost:8085/Sensor?action=Get&id=/ltc/example/0 This will return a JSON response containing either the value of the Sensor or an error message. Example response: If it succeeded: { "result" : "ok", "value" : "42" } If it failed: { "result" : "fail" , "message" : "Some error message" } "Set" Action Example: http://localhost:8085/Sensor?action=Set&id=/ltc/example/0&value=42.0 This will try to set the Control value of the specified Sensor. Example response: If it succeeded: { "result" : "ok" } If it failed: { "result" : "fail" , "message" : "Some error message" } The TestScripts folder contains 3 python scripts that demonstrate the usage of the WebServer and the WMI provider.
…
…
LibreHardwareMonitor
Libre Hardware Monitor, home of the fork of Open Hardware Monitor
We will happily accept pull requests.