Integrate prometheus

This commit is contained in:
Theo Arends 2020-06-27 11:52:44 +02:00
parent 74a3be49a4
commit 1866938cbd
3 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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))