* Experimental Prometheus support
Refactors text response to accept responseType
Generates a plaintext output in prometheus format using standard units and factors
Only called if and when endpoint (/metrics) is accessed
Exceptions are reported in the text output
This tries to minimize changes and uses no extra dependencies
* Changed strings to interpolation and raw literals to improve readability
* Fixed a typo
* Adding the Async HttpServer from Master
* Added back the http headers to SendResponseAsync
* Adding no-cache to sensor and prometheus
* Remove redundant second null check for sensor value
* Add base formatted raw values to data.json for consistent units
* Update HttpServer.cs
---------
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
* Add Selectable Network Interface in Web Server
Update the Web Server port form to allow for editing the network interface the web server is run on. Added storage of the interface to the settings so it is persisted.
This should resolve issue #1089 .
* Update HttpServer.cs
---------
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
* Add support for electrical conductivity measurements
* Add Aqua Computer high flow NEXT support
* Expose alarm flags as hidden binary sensors
* Update HighFlowNext.cs
* Update ISensor.cs
---------
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
* Add CSV file rotation method
Add a new option to choose how the csv file is being rotated.
Before it was everyday, which meant that we had to make sure the csv file was deleted before recording a new session.
Now by default it's set to "Per session" meaning anytime you start a new session it create a new CSV file.
Unless the daily method is used, in this case it will behave like before (1 file per day)
* Scale up the first TreeView column ("Sensor") on resize
The first ("Sensor") column being the most important and most likely the one that need the more space as hardware names can be pretty long.
I've changed so that the first column is the one scaling up when the tree view is being resized (instead of the last one)
* Change treeview column resize behaviour
I've made so that the separator a controlling the size of the column to the left instead of the right.
This make a lot easier to scale up the last column, but worth for the first one.
Thought the previous commit made it so that the first column size is resize by the total with of the tree view.
Sounds weird like that, but feel much more natural than before, and there is no overflow anymore.
* Fix typo in daily file rotation menu item tool tip
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
* Fix requested changes
---------
Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>