mirror of https://github.com/arendst/Tasmota.git
Integrate prometheus
This commit is contained in:
parent
74a3be49a4
commit
1866938cbd
|
@ -590,8 +590,9 @@ void GetFeatures(void)
|
|||
#ifdef USE_LMT01
|
||||
feature6 |= 0x00080000; // xsns_74_lmt01.ino
|
||||
#endif
|
||||
|
||||
// feature6 |= 0x00100000;
|
||||
#ifdef USE_PROMETHEUS
|
||||
feature6 |= 0x00100000; // xsns_75_prometheus.ino
|
||||
#endif
|
||||
// feature6 |= 0x00200000;
|
||||
// feature6 |= 0x00400000;
|
||||
// feature6 |= 0x00800000;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
xsns_91_prometheus.ino - Web based information for Tasmota
|
||||
xsns_75_prometheus.ino - Web based information for Tasmota
|
||||
|
||||
Copyright (C) 2020 Theo Arends
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
|||
* Prometheus support
|
||||
\*********************************************************************************************/
|
||||
|
||||
#define XSNS_91 91
|
||||
#define XSNS_75 75
|
||||
|
||||
void HandleMetrics(void)
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ void HandleMetrics(void)
|
|||
* Interface
|
||||
\*********************************************************************************************/
|
||||
|
||||
bool Xsns91(uint8_t function)
|
||||
bool Xsns75(uint8_t function)
|
||||
{
|
||||
bool result = false;
|
||||
|
|
@ -207,7 +207,7 @@ a_features = [[
|
|||
"USE_WINDMETER","USE_OPENTHERM","USE_THERMOSTAT","USE_VEML6075",
|
||||
"USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM",
|
||||
"USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01",
|
||||
"","","","",
|
||||
"USE_PROMETHEUS","","","",
|
||||
"","","","",
|
||||
"","","USE_ETHERNET","USE_WEBCAM"
|
||||
]]
|
||||
|
@ -243,7 +243,7 @@ else:
|
|||
obj = json.load(fp)
|
||||
|
||||
def StartDecode():
|
||||
print ("\n*** decode-status.py v20200617 by Theo Arends and Jacek Ziolkowski ***")
|
||||
print ("\n*** decode-status.py v20200627 by Theo Arends and Jacek Ziolkowski ***")
|
||||
|
||||
# print("Decoding\n{}".format(obj))
|
||||
|
||||
|
|
Loading…
Reference in New Issue