Fixed IP address
This commit is contained in:
@@ -97,7 +97,7 @@ class InSyncState < StatePattern::State
|
|||||||
|
|
||||||
# Write to EmonHub
|
# Write to EmonHub
|
||||||
begin
|
begin
|
||||||
TCPSocket.open("raspberrypi.home.local",5050){|s|
|
TCPSocket.open("10.0.0.154",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
|
||||||
|
|||||||
Reference in New Issue
Block a user