Assistance Needed with Arduino MKR WiFi 1010 and Arduino IoT Cloud Scheduling

Hello everyone,

I'm working on a project that involves controlling some elements of a smart garden using an Arduino MKR WiFi 1010 and the Arduino IoT Cloud. My code includes elements for controlling a water pump, a cooling fan, and artificial lights, and the state of these elements is displayed on a screen. I'm also trying to use the ScheduleVariable feature to control the timings of these elements.

However, I'm facing two main challenges:

  1. My ScheduleVariable.isActive() function seems to always return 0, which means my schedule isn't activating when I expect it to. I'm unsure of why this is happening, as I believe my code setup is correct.
  2. I'm based in Lisbon, Portugal, and I'm having difficulty figuring out the time synchronization between my local time and the UTC time used in the Arduino IoT Cloud for scheduling. I've attempted to convert my local time to UTC, but I'm unsure if I'm doing it correctly.
    I would greatly appreciate any assistance or guidance you could provide to help me resolve these issues.

Thank you in advance.

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