Page 1 of 2

Razberry, Z-Uno, Timeparameter.set?

Posted: 03 Mar 2024 13:34
by KGBEl
Hello.

In ZUNO - Reference - zunoGetTimeStamp() example is the first remarks:

// This sketch uses TimeParameter command class to setup RTC value from controller.
// You have to call TimeParameter.Set according to you z-wave controller manual.

I don't understand how I call TimeParameter.set?

I have looked i Expert UI but I only sees how I change parameters on devices...

I have a Z-Uno ver2, rel 3.0.10, controller Razzberry 7 pro on a RaspBerry 4.
SDK version 7.15.00

Hope for help in this matter.

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 04 Mar 2024 17:51
by KGBEl
So I think I figured out how to call TimeParameter.set
With help ofExpert UI I made this call:
http://192.168.50.71:8083/ZWave.zway/Ru ... s[139].Set()
And that updated the time.
Next problem is that the updated time is my location -1, means the time is showing one hour to much.
In Expert UI my location is right, how can I deal with this??

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 12 Mar 2024 11:12
by amatilda
KGBEl wrote:
04 Mar 2024 17:51
Next problem is that the updated time is my location -1, means the time is showing one hour to much.
In Expert UI my location is right, how can I deal with this??
Hello.
TimeParameter uses UTC time, so adjustments to local time must be done manually in the sketch.

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 12 Mar 2024 18:14
by KGBEl
Thank you.
I tried that and it worked perfekt, unfortunally the internal RTC drifts to much.

Is it possible to do the http://-call from z-Uno program?
In that case I can update internal rtc periodically.

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 13 Mar 2024 21:24
by amatilda
KGBEl wrote:
12 Mar 2024 18:14
Is it possible to do the http://-call from z-Uno program?
In that case I can update internal rtc periodically.
There is no such possibility. But you can use COMMAND_CLASS_TIME, but for this you need to use 3.0.12b+

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 14 Mar 2024 21:24
by KGBEl
Thank you for answering.

Can you give me an example or hint of how I can use COMMAND_CLASS_TIME for this?

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 15 Mar 2024 17:39
by amatilda
KGBEl wrote:
14 Mar 2024 21:24
Thank you for answering.

Can you give me an example or hint of how I can use COMMAND_CLASS_TIME for this?
There is no example yet - the command class is not fully completed.
To use it, just do this:

Code: Select all

ZUNO_ENABLE(
			WITH_CC_TIME
);
And it will ask the controller for time every 8 hours.
to reduce the update period, you need to specify the desired period in microseconds in the file ZWCCTime.cpp

Code: Select all

#define TIME_PERIOD_REPEAT								((uint64_t)8 * 60 * 60 * 1000 * 1000)//8 hours

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 17 Mar 2024 13:43
by KGBEl
Thank you very much, i'll try that.

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 17 Mar 2024 17:16
by KGBEl
Sorry for interruping again, I can't find any ZWCCTime.cpp.
Ther are ZWCCTimer.cpp and ZWCCTimerParametrs.cpp but niether of them contains:

#define TIME_PERIOD_REPEAT ((uint64_t)8 * 60 * 60 * 1000 * 1000)//8 hours

What have I done wrong?

Re: Razberry, Z-Uno, Timeparameter.set?

Posted: 19 Mar 2024 04:14
by PoltoS
Are you sure you are on the latest beta from the repo and not on the stable?