Weird problem when asking for the server time from a mySensor node.

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
TheoL
Posts: 17
Joined: Tuesday 22 September 2015 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Weird problem when asking for the server time from a mySensor node.

Post by TheoL »

Version: 2024.7
Platform: Raspberry (latest version
Plugin/Hardware: MySensors
Description:
I'm testing out how I can use the receiveTime - that is on the MySensors side - in a mySensors project. That is the MySensors function to request the server time from Domoticz.

There are two issues I run into:
  1. Domoticz returns the local time. Not the UTC time as I would expect. It's weird you don't get a utc time, because now you have to translate the local time into UTC on your MySensors node.
  • Domoticz - as it seems - goes beserk when a query for the time at a whole hour.
    When you request the time at 0 minutes, Domoticz starts spamming your node for a whole minute long. Meaning like every other 40ms I receive the time for 1 minute. I just asked for it once. Also during this DDOS on my Node I sometimes get a time that is 2 january 1970. Which is weird. It took me some time to find out why the time on my node sometimes went from the correct time to a 00:30 time.
Now it's an assumption of mine, that this is not in the MySensors gateway or Node code. Because I see the transmition leds on my gateway flashing really fast. And the MySensors Gateway normally does 3 retries - of which I'm not even sure if that is in the gateway or Domoticz Code.
TheoL
Posts: 17
Joined: Tuesday 22 September 2015 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Weird problem when asking for the server time from a mySensor node.

Post by TheoL »

Just a quick follow up. I tested it with a different type of radio - RFM69HW instead of NRF24L01+ - so that also means a different Gateway. So far I haven't seen the same odd behaviour. I will keep testing. Possible causes:
  • Old/incompatible MySensors version: the first Gateway is/was still MySensors 1.5 and the new Gateway is the latest release
  • Bug in the NRF part? I highly doubt it, but you never know
I will keep testing. The fact that Domotics returns local time instead of UTC is still something that is unwanted for me. But I can imagine you can not change that easily, as a lot of nodes probably already use the current implementation. Maybe give us a choice if we want to receive UTC or Local time from Domoticz
User avatar
gizmocuz
Posts: 2478
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Weird problem when asking for the server time from a mySensor node.

Post by gizmocuz »

Let's assume it is not Domoticz

regarding the time in localtime

https://forum.mysensors.org/topic/2810/ ... me-handler

As mentioned in the above thread by 'admin', the mysensors node does not know anything about time/timezones, the controller does
Quality outlives Quantity!
TheoL
Posts: 17
Joined: Tuesday 22 September 2015 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Weird problem when asking for the server time from a mySensor node.

Post by TheoL »

Good to see you in here sir. Yes for most nodes doing an hourly time synch and getting local time could be a good strategy. But I'm working on a DLS aware node. I can work around it, but translating the local time to utc. Because I need to store utc in an rtc.

As in regard to the other problem. I'll try another NRF gateway and if that also doesn't show that behavior, I will report back and close it.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], PSUtec and 1 guest