Added errlog, custom http headers

This commit is contained in:
Magnus Persson
2022-01-27 14:00:12 +01:00
parent b106ebfa20
commit 63fd80e750
23 changed files with 411 additions and 187 deletions

View File

@ -41,6 +41,8 @@ URL: (http://gravmon.local/device)
:width: 800
:alt: Device Settings
The button `view error log` will show the last 15 errors on the device. This can be useful for checking errors without
the need to connect to the serial port.
* **Version:**
@ -156,6 +158,20 @@ Push Settings
Password or blank if anonymous is accepted
* **HTTP Headers**
.. image:: images/config-popup1.png
:width: 300
:alt: HTTP Headers
Its now possible to define 2 http headers per push target. This is avaialble via a pop-up window but dont forget
to press the save buttons on the post section to save the values.
Mozilla has a good guide on what options exist; `HTTP Headers <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers>`_
Refer to the documentation on what headers would be needed for a specific service target.
Gravity Settings
++++++++++++++++
@ -360,7 +376,11 @@ Other parameters are the same as in the configuration guide.
"temp-format": "C",
"brewfather-push": "http://log.brewfather.net/stream?id=Qwerty",
"http-push": "http://192.168.1.50:9090/api/v1/Qwerty/telemetry",
"http-push-h1": "",
"http-push-h2": "",
"http-push2": "http://192.168.1.50/ispindel",
"http-push2-h1": "",
"http-push2-h2": "",
"influxdb2-push": "http://192.168.1.50:8086",
"influxdb2-org": "Qwerty",
"influxdb2-bucket": "Qwerty",
@ -485,6 +505,10 @@ Used to update push settings via an HTTP POST command. Payload is in JSON format
"id": "ee1bfc",
"http-push": "http://192.168.1.50/ispindel",
"http-push2": "",
"http-push-h1": "",
"http-push-h2": "",
"http-push2-h1": "",
"http-push2-h2": "",
"brewfather-push": "",
"influxdb2-push": "http://192.168.1.50:8086",
"influxdb2-org": "Qwerty",
@ -599,6 +623,10 @@ present or the API call will fail.
json = { "id": id,
"http-push": "http://192.168.1.1/ispindel",
"http-push2": "",
"http-push-h1": "",
"http-push-h2": "",
"http-push2-h1": "",
"http-push2-h2": "",
"brewfather-push": "",
"influxdb2-push": "",
"influxdb2-org": "",

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -3,6 +3,18 @@
Releases
########
v0.8.0
------
* Added option to set http headers (2 per endpoint)
* Added possibility to view last 10 errors on device page.
v0.7.1
------
* Defined mqtt port was ignored, used default values.
* Extended length of HTTP url fields from 100 to 120 chars.
v0.7.0
------