How to use clock widget?

I need to use clock widget in thinger.io.How to retrieve time from clock in my program?

Hi, the clock widget is just for printing your local time. If you want to print the clock from your device, just create a String resource with your time, and then associate this resource with a text/value widget. The resource could be something like the following:

thing["time"] >> [](pson& out)
{
  String t = String(hour()) + ":" + String(minute());
  out = t;
};

Bests!

1 Like

Hi , Can you Help me more for use clock widget??
I want to Condition on clock.
sorry I can write English well :joy: