Commit Graph
8 Commits
Author SHA1 Message Date
Phyxion 2a4641e933 Pr/40 (#45)
* Added basic Aquastream Hardware Support using HidLibrary from mikeobrien (https://github.com/mikeobrien/HidLibrary)

* * Using hidlibrary from Nuget and fixing ProductName.
* Added missing string Format for Gadget.
* Changed variable names to follow style.
* Added new newlines. Make AquacomputerGroup public accessible.
* Added aquacomputer Icon after they allowed me to use it ;-)

* Corrected spelling
Corrected Variable names

* Removed External/HidLibrary

* Aquastream

- Remove Debug.

* A

- Clean up remains.
2018-06-30 15:03:50 +02:00
Marcus Tillmanns fc0cd04b53 Adding a REST like web api and introducing Json.NET
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.
2017-09-18 23:49:48 +02:00
Michael Möller dcfa8ef3f9 Added additional exception handling to the http server. 2013-06-09 19:25:44 +00:00
Michael Möller 9a1d0d5c08 Fixed Issue 368. Fixed Issue 369. Fixed Issue 370. 2012-10-28 15:19:45 +00:00
Michael Möller 69b0050008 Changed the source formatting of the HttpServer class to match the rest of the project. 2012-10-28 14:06:50 +00:00
Michael Möller a3f3febfb3 Added a new icon for RAM hardware. 2012-07-25 15:33:16 +00:00
Michael Möller 4bebb21f12 Added a RAM hardware and sensor, fixed Issue 115. 2012-07-23 21:54:35 +00:00
Michael Möller 52c47c76e2 Added the remote web enhancement developed by Prince Samuel. 2012-05-27 20:15:32 +00:00