# Scheduler Widget

**URL:** <https://forum.arduino.cc/t/scheduler-widget/933653>\
**Category:** Cloud IoT\
**Created:** [December 8, 2021, 4:09pm UTC](https://forum.arduino.cc/t/scheduler-widget/933653 "2021-12-08T16:09:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobiReshet](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@RobiReshet](https://forum.arduino.cc/u/RobiReshet)\
**Post date:** [December 8, 2021, 4:09pm UTC](https://forum.arduino.cc/t/scheduler-widget/933653/1 "2021-12-08T16:09:26Z")

</div>

I need to know how work Scheduler Widget on Dashboard ?  
Because I see is not connect to variables.  
Where I can get all info about this ?

---

<div class="post-metadata">

**Author:** ![superryu](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@superryu](https://forum.arduino.cc/u/superryu)\
**Post date:** [March 25, 2022, 2:19am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/2 "2022-03-25T02:19:30Z")

</div>

I have a free account and and ESP32 and I can't make it work also.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [March 25, 2022, 8:55pm UTC](https://forum.arduino.cc/t/scheduler-widget/933653/3 "2022-03-25T20:55:05Z")

</div>

We would like to help you but No clue as to what you need. The Scheduler widget is a software package not intended for Arduino. Since it is a Google device contact them. You have a free account and ESP32 what is that all about? Post your code that is not working along with information what you are using to program.

---

<div class="post-metadata">

**Author:** ![eclipse1985](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/eclipse1985/32/278301_2.png) [@eclipse1985](https://forum.arduino.cc/u/eclipse1985)\
**Post date:** [March 28, 2022, 8:18am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/4 "2022-03-28T08:18:19Z")

</div>

@RobiReshet did you already add a variable of type 'Schedule' to your thing? Did you take a look at [this tutorial](https://docs.arduino.cc/cloud/iot-cloud/tutorials/cloud-scheduler)?

---

<div class="post-metadata">

**Author:** ![superryu](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@superryu](https://forum.arduino.cc/u/superryu)\
**Post date:** [April 1, 2022, 7:20am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/5 "2022-04-01T07:20:23Z")

</div>

Okay, here's the thing. I have generated my Sketch using an ESP32 as Device. I already have my getData variable with type Cloudschedule as shown below with the other essential variables:

CloudSchedule getData;  
bool lED\_RED;  
CloudTime local\_time;

Here is my simple sketch:

/\*  
Sketch generated by the Arduino IoT Cloud Thing "Humidit-Temp-Scheduled"  
[https://create.arduino.cc/cloud/things/0187e399-87e7-4fb6-807c-5477f072fa93](https://create.arduino.cc/cloud/things/0187e399-87e7-4fb6-807c-5477f072fa93)

Arduino IoT Cloud Variables description

The following variables are automatically generated and updated when changes are made to the Thing

CloudSchedule getData;  
bool lED\_RED;  
CloudTime local\_time;

Variables which are marked as READ/WRITE in the Cloud Thing will also have functions  
which are called when their values are changed from the Dashboard.  
These functions are generated with the Thing and added at the end of this sketch.

```cpp
*/

#define R_LED 15
byte latch = 0;

#include "thingProperties.h"

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
  
  pinMode(R_LED, OUTPUT);
  
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  
  if(getData.isActive())
  {
    // 2 secs has passed
    digitalWrite(R_LED, HIGH);
    lED_RED = true;
    latch = 1;
  } else {
    // not yet
    if(latch == 1)
    {
      digitalWrite(R_LED, LOW);
      lED_RED = false;
      latch = 0;
    } else {
      // do nothing.
    }
  }
  
  if(ArduinoCloud.connected()){
     local_time = ArduinoCloud.getLocalTime();
  }
  
}

/*
  Since LEDRED is READ_WRITE variable, onLEDREDChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onLEDREDChange() {
  // Add your code here to act upon LEDRED change
}

```

and here is my dashboard:

my variables getData and localtime are already linked to their respective widgets:

(same with localtime - I have 2 picture link max as a new user)

My question is, when I watch YouTube Videos about the Cloud scheduler, they schedule the time by just clicking on the widget. There is no response when I click the widget whether I'm in View mode or Edit mode.

Is this a normal response or am I missing something?

Thanks.

---

<div class="post-metadata">

**Author:** ![superryu](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@superryu](https://forum.arduino.cc/u/superryu)\
**Post date:** [April 1, 2022, 7:22am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/6 "2022-04-01T07:22:02Z")

</div>

The two links are here: (they won't allow it as I'm a new user)

[https://ibb.co/BKX8Gvz](https://ibb.co/BKX8Gvz)

[https://ibb.co/Tcnpy4Y](https://ibb.co/Tcnpy4Y)

---

<div class="post-metadata">

**Author:** ![eclipse1985](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/eclipse1985/32/278301_2.png) [@eclipse1985](https://forum.arduino.cc/u/eclipse1985)\
**Post date:** [April 1, 2022, 9:19am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/7 "2022-04-01T09:19:13Z")

</div>

Please double check that **CloudSchedule getData** is in READ/WRITE mode

---

<div class="post-metadata">

**Author:** ![superryu](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@superryu](https://forum.arduino.cc/u/superryu)\
**Post date:** [April 1, 2022, 9:23am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/8 "2022-04-01T09:23:25Z")

</div>

Yes! it's working now!! Thanks a lot!! @eclipse1985

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 28, 2022, 9:24am UTC](https://forum.arduino.cc/t/scheduler-widget/933653/9 "2022-09-28T09:24:24Z")

</div>

Closed on September 28, 2022, 9:24am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
