Hi Bob, Thanks for your reply. I would say it would be great to send there the computer time every midnight. This would avoid both the timezone and the "minute" problem, also the time difference between the displayed time and computer time would be marginal, it is just 24hrs., the internal clock will make it. The computer has the right timezone set by user, I suppose that using the same time would be ok.
Not sure about the crc checksum error, the documentation should be actual. I keep my fingers crossed... Thank you and have a nice day. Pavel Dne pondělí 13. dubna 2020 22:31:05 UTC+2 Bob Atchley napsal(a): > > Hi Pavel, > > I have written a setTime function (not yet tested). I then looked in the > weewx engine to see how this is invoked ... and we have a problem. The > engine calls the getTime function first, so that also needs writing. I > know how to write this but unfortunately the ws6in1 protocol only provides > the time to the minute so will always be between 0 and 59 seconds out from > the correct time. So it seems a bit pointless to write it. Instead I 'm > thinking of automatically setting the time once every 24 hours (i.e. > ignoring the engine). Just not yet quite comfortable with that. So more > thinking time .... > > The setTime also poses 2 problems: > 1) I have no idea how it deals with time zones. This is not a problem for > me I have my rpi2 set at permanent UTC time (no summer time correction) - > but maybe for others (so please let me know if this causes a problem) > 2) The evidence I have shows that when setting the date and time the crc > checksum bytes are sent the wrong way around. It could be because of a > defect in the console, or a defect in the official software and the console > doesn't actually check the crc checksum. Initially I'm sending the bytes > in the correct order - once I test the updated driver I will know the > answer > > So work in progress, but I'm confident I can provide both setting the > console time and the 7 extra sensor data that you are after > > Bob > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0f352d54-88bc-4361-8864-9a59b8954384%40googlegroups.com.
