tsathishkumar / MySController-rs

Controller for MySensors, exposes WoT APIs for the sensors. It supports OTA firmware updates, and also acts as proxy for all requests.
GNU Affero General Public License v3.0
20 stars 9 forks source link

Add support for requestTime() #8

Open tsathishkumar opened 6 years ago

tsathishkumar commented 6 years ago

Add feature to respond for requestTime calls from nodes.

tsathishkumar commented 6 years ago

@flatsiedatsie I have added the feature in the latest commit. Could you do a round of testing and let me know if it works. Thanks.

flatsiedatsie commented 6 years ago

I will!

flatsiedatsie commented 6 years ago

My alarm clock node does not seem to pick up the time :-(

I couldn't find any code in the project relating to "I_TIME"?

I had a look at the documentation, and it seems a time request will be something like.

; (NODE_ID) ; (CHILD_ID) 3; (internal request) 0; (if we request an ACK or not) 1; (I_TIME type: the time is being requested)

It should return "local time adjusted for DST."

flatsiedatsie commented 6 years ago

Hey, wait, I think it works now!

The time seems to be one hour off?

pi@gateway:~ $ date
Thu Nov 29 15:00:10 CET 2018

But the time on the alarm clock says 14:00.

Perhaps it's a summertime/wintertime thing?

tsathishkumar commented 5 years ago

I assume so. I think the time sent by the controller is UTC and UTC is 1 hr behind CET.