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

Dependents:   heating

Committer:
andrewboyson
Date:
Wed Jun 09 09:23:54 2021 +0000
Revision:
7:3035a540ef65
Parent:
5:ec0498d7d2c1
Changed WizSchedMinutesUtcToLocal function so that local midnight in summer is 00h00 rather than 24h00.

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