View Single Post
Posts: 46 | Thanked: 160 times | Joined on Jun 2010 @ Germany, Berlin
#14
Last night we had end of DST for this year here in Germany.
LiveView itself isn't aware of that, but after restarting device and reconnect to LiveViewServer.py it still gets pushed DTS time.
Printing out time.daylight in python still gives 1 today.

I had to change line 302 in LiveViewServer.py from
Code:
clientSocket.send(LiveViewMessages.EncodeGetTimeResponse(int(time.mktime(time.gmtime()) - (time.daylight * time.altzone) - time.timezone), is24HourClock))
to
Code:
clientSocket.send(LiveViewMessages.EncodeGetTimeResponse(int(time.mktime(time.localtime()) - time.timezone), is24HourClock))
Then time gets set correctly after restart LiveView device and reconnect to LiveViewServer.py .

@xes: I noticed that one of my LiveView devices has issues with its on/off switch. It doesn't pop out fully after pressing (sometimes). This leads into strange behavior when connecting and pairing (it switches off before finishing paring process).
 

The Following User Says Thank You to Ulle For This Useful Post: