Set up new power meters in Space 4

This commit is contained in:
polyfloyd 2024-08-15 18:24:04 +02:00
parent d866b50448
commit 3ac81cbbeb
4 changed files with 12 additions and 10 deletions

View file

@ -5,12 +5,12 @@
import paho.mqtt.client as mqtt
import paho.mqtt.subscribe as subscribe
from time import sleep
import os
import sys
import requests
mqtt_host = '{{ mqtt_internal_host }}'
(net, sdm630_host) = os.argv[1].split('/')
(net, sdm630_host) = sys.argv[1].split(':')
client = mqtt.Client()