Commit Graph
22 Commits
Author SHA1 Message Date
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 c0d4125deb Merge branch 'Added customizable pen colors' 2016-11-06 15:03:14 +01:00
Michael Möller bb45f65447 Added a menu item to reset the pen color (to use again the plotColorPalette based color). Moved the saving/loading code to the SensorNode class (as with the other properties). 2016-11-06 15:02:12 +01:00
shrddr 9479c08df9 Added customizable pen colors
New node property, penColor, is null by default; this means that color
will be picked using the existing plotColorPalette method.
New node context menu item, Pen color, lets user choose the color to be
used when plotting this particular node.
This property is also saved/loaded from settings based on sensor
identifier.
2016-07-13 23:09:05 +03:00
DarthDestroyer 0469416627 Update SensorNode.cs 2016-04-28 19:57:12 +02:00
Michael Möller 2e3489e1f7 Changed the license to the Mozilla Public License 2.0 and update the licensing information. 2012-05-27 14:23:31 +00:00
Michael Möller f8867d671a Added a new sensor type "Factor" for dimensionless values (and similar) that are not to be shown as percent ("Level" type). Changed the write amplification sensor to use the new "Factor" sensor type. Added the temperature SMART attribute for Sandforce SSDs as hidden sensor (as it may show fake results on some hardware). 2012-02-14 23:07:55 +00:00
Michael Möller 7b66e3f1b5 Added code to save and restore the plot sensor selection. 2012-01-01 17:12:34 +00:00
Michael Möller de089a3d28 Modified and extended version of the patch v4 by Roland Reinl (see Issue 256). Main differences to the original patch: DeviceIoControl refactorings removed, SmartAttribute is now descriptive only and does not hold any state, report is written as one 80 columns table, sensors are created only for meaningful values and without duplicates (remaining life, temperatures, host writes and reads). Also the current implementation should really preserve all the functionality of the old system. Additionally there is now a simple SMART devices emulation class (DebugSmart) that can be used in place of WindowsSmart for testing with reported data. 2011-12-31 17:31:04 +00:00
Michael Möller 70c338cc63 Added support for Intel CPU power sensors (package and cores). 2011-07-27 18:27:16 +00:00
Michael Möller 58fcb67dcd Added some GUI improvements: Better handling of the row selection, minimal row spacing of 18 pixel (to get nice dotted lines) and 3 decimal digits for voltages. Also changed the tree view font rendering to get better quality without ClearType. 2011-05-15 20:48:52 +00:00
Michael Möller d9ae399ad2 Added a new sensor type "Level" for wear or charge level (or any other percentage based sensors that don't fit into Load or Control). 2010-10-07 19:34:36 +00:00
Michael Möller 2ec18bf862 Changed the project files to Visual Studio 2010. Fixed some Code Analysis warnings. 2010-08-12 20:53:27 +00:00
Michael Möller a2650ba983 Refactored the hardware monitoring code into a library (Issue 101). 2010-08-08 13:57:26 +00:00
Michael Möller dd67a0aa5c Fixed Issue 69. 2010-06-06 11:07:57 +00:00
Michael Möller b4203489bb Extended the ITE super I/O voltage reading by adding hidden voltage sensors for unknown channels. Added a few known DFI and Gigabyte mainboard voltage configurations. 2010-05-24 15:27:46 +00:00
Michael Möller 8e5e1d7d19 Fixed Issue 10. 2010-05-20 21:23:54 +00:00
Michael Möller fa260097d4 Added a sensor type Control (with unit percent) for (fan) PWM control sensors. Fixed Issue 2. 2010-05-15 14:16:00 +00:00
Michael Möller 61c007f0f6 Added a user interface to configure certain sensors as hidden. This fixed Issue 53. 2010-05-14 22:30:06 +00:00
Michael Möller ba9015c451 Added support for T-Balancer sensorhub and miniNG. Added a Flow sensor-type. 2010-02-21 18:10:30 +00:00
Michael Möller 5249183290 Release version 0.1.11. Added support for load percentage sensor type. Added load sensors for CPUs and ATI GPUs. 2010-02-03 20:35:10 +00:00
Michael Möller 39ca26510c Initial commit. 2010-01-26 22:37:48 +00:00