This commit is contained in:
2022-01-09 18:47:38 +01:00
parent 83364d13cf
commit b67fbc21d1

View File

@@ -97,7 +97,7 @@ class InSyncState < StatePattern::State
# Write to EmonHub # Write to EmonHub
begin begin
TCPSocket.open("10.0.0.154",5050){|s| TCPSocket.open("printserver.home.local",5050){|s|
s.write(sprintf("8 %d %d\r\n", reading.current_kw_consumed*1000, reading.current_kw_produced*1000)) s.write(sprintf("8 %d %d\r\n", reading.current_kw_consumed*1000, reading.current_kw_produced*1000))
} }
rescue rescue