Allows my home wiz lights to be timed on and off according to a schedule.

Dependents:   heating

Committer:
andrewboyson
Date:
Tue May 18 16:23:57 2021 +0000
Revision:
5:ec0498d7d2c1
Parent:
0:9af80a39adcc
Made a number of changes to better handle local times. The problem seen was between 00h00 and 01h00 BST which corresponded to 23h00 and 00h00 UTC caused negative numbers.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:9af80a39adcc 1
andrewboyson 0:9af80a39adcc 2 extern void WizSchedInit(void);
andrewboyson 0:9af80a39adcc 3 extern void WizSchedMain(void);
andrewboyson 0:9af80a39adcc 4 extern void WizSchedParseEvent(char* text, char* pDatum, int16_t* pMinutes);
andrewboyson 0:9af80a39adcc 5 extern void WizSchedHttp (void);
andrewboyson 0:9af80a39adcc 6
andrewboyson 5:ec0498d7d2c1 7 extern int WizSchedMinutesUtcToLocal(int minutes);
andrewboyson 5:ec0498d7d2c1 8 extern int WizSchedMinutesLocalToUtc(int minutes);
andrewboyson 5:ec0498d7d2c1 9
andrewboyson 0:9af80a39adcc 10 extern void WizSchedSetName (int i, char* name);
andrewboyson 0:9af80a39adcc 11 extern void WizSchedSetOnEvent (int i, char datum, int16_t minutes);
andrewboyson 0:9af80a39adcc 12 extern void WizSchedSetOffEvent(int i, char datum, int16_t minutes);
andrewboyson 0:9af80a39adcc 13
andrewboyson 0:9af80a39adcc 14 extern void WizSchedMoveUp (int i);
andrewboyson 0:9af80a39adcc 15 extern void WizSchedMoveDown(int i);
andrewboyson 0:9af80a39adcc 16
andrewboyson 0:9af80a39adcc 17 #define WIZ_SCHED_MAX_ITEMS 5