Razberry, Z-Uno, Timeparameter.set?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

Razberry, Z-Uno, Timeparameter.set?

Post 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.
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

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

Post 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??
amatilda
Posts: 61
Joined: 26 Sep 2021 22:09

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

Post 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.
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

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

Post 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.
amatilda
Posts: 61
Joined: 26 Sep 2021 22:09

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

Post 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+
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

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

Post by KGBEl »

Thank you for answering.

Can you give me an example or hint of how I can use COMMAND_CLASS_TIME for this?
amatilda
Posts: 61
Joined: 26 Sep 2021 22:09

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

Post 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
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

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

Post by KGBEl »

Thank you very much, i'll try that.
KGBEl
Posts: 35
Joined: 21 Feb 2023 00:37

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

Post 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?
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

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

Post by PoltoS »

Are you sure you are on the latest beta from the repo and not on the stable?
Post Reply