ソースを参照

Refined output to CheckMK

Michael Honkoop 1 日 前
コミット
76b748656d
1 ファイル変更4 行追加4 行削除
  1. 4 4
      datasources/P1-Meter.py

+ 4 - 4
datasources/P1-Meter.py

@@ -61,13 +61,13 @@ def iterate_json(json_obj):
         else:
             if key.startswith("active"):
                 if key.endswith("_w"):
-                    print(f"P {key} Power={value};2100;2200;2300;0;2500 Current Watts:{value}")
+                    print(f"P {key} Power={value};2100;2200;0;2500 Current Watts:{value}")
                 if key.endswith("_v"):
-                    print(f"P {key} volt={value};252;253;260;0;300 Current Volts:{value}")
+                    print(f"P {key} volt={value};252;253;0;300 Current Volts:{value}")
                 if key.endswith("_a"):
-                    print(f"P {key} amps={value};8;10;15;0;20 Current Amps:{value}")
+                    print(f"P {key} amps={value};8;10;0;20 Current Amps:{value}")
                 if key.endswith("tariff"):
-                    print(f"P {key} tariff={value};;;;; Current Tariff:{value}")
+                    print(f"P {key} tariff={value};;;; Current Tariff:{value}")
 
 # Additional information is available, but not at current needed
 #            if key.startswith("external"):