Blog2017 ≫ "New" event modifiers in my lightwaverf google calendar home automation

I finally reinstated "event modifiers" in my lightwaverf home automation

(/wiki/#code). Someone else addd them to the repo1 a long time ago, though I never used it. So when I updated [the calendar](/wiki/#calendar) part a while ago I didn't port this over. The basic idea is; you have repeating events in your [calendar](/wiki/#calendar) like "lounge light on", this turns the lights on and off every day. If you add a "modifier" event to a range of days say "#holiday" then you set certain events to respond to that - "only when we're on [holiday](/wiki/#holiday)" by adding "@[holiday](/wiki/#holiday)" or "not when we're on [holiday](/wiki/#holiday)" by adding "![holiday](/wiki/#holiday)". In the example below [the heating](/wiki/#heating) would come on from 6pm - 10pm every weekday, but not on the 28th, 1st, and 2nd because this period is tagged "away". Also at 11pm every day the bedroom light will come on for a short period, but *only* from the 28th to the 2nd because that event is set to only happen when we're away. These are completely fictitious events of course, that is not my real [calendar](/wiki/#calendar), we are not away then, my [lightwaverf](/wiki/#lightwaverf) does not control my [heating](/wiki/#heating), and also I don't really have a [shed](/wiki/#shed) disco.
I'll deploy this one soon, I'm [running](/wiki/#running) it locally for a while first.
Got an image here2, can I embed it?
<img src="https://lh3.googleusercontent.com/mkKci3UkJmrbPwbgkdpdKLQIxbDKo-ZdG1QTCxj7M_JuuxWblfIkTdA1e9mwYwuN7EH_fYdtYaWq_piHp36CT3rhs6jG4GwXAcDCGFUPRUYIQOdUbnU266hylaiGo6kpHFLVVY2lrdjPCWcO0q1saB8WRbuwPxptFqT_QIvgQgV3iYK6yQHtYqnnxLzzrQCxwtfjL17geUuw_OPMbJeHONTq581pUVixSwWS_bRylg9RxeJibvtnrf599lG4tFssZ9wCdUYPoLMkZtt3DCAYM0G-U42WVMKSLfTgXNVhi-tUXuXnwyTicPRQfmYslcDhJg5pjYCOJXE5xwLJHDXJakS7rtPAbAjl9EGFE3WRkaXZKgPrHsWuqimbpHKe5sM-9bBC1c-WCUefrmPdKnTOaCiwq-GQiTTSqmMjHlBjellhob6TlkCAqWAqE6SRHcTXRDjKB7Q_5y_O4ah__57nBoIqgh24iEV9AECj09C_q3rH-BFWtODu2HT8xxg9g7tovp0BkS15KBg8mKPJFolsuJzaFmoxgyqsH_d_mh42Hml7b1aEuSFRY-9_CUZDJvy00ddvCHiD7Z8OJ9rERFlXWn_iiwuPCRoio_z8tJup4zewzO0ENK0fDtaroWaCVD-DxDplCsRdT3dSTWCGzqCEP_9vQN0jxNr267L4fx8ivaE=w1806-h1022-no" />

5k: Five km, about three miles to you.

⬅️ :: ➡️

Paul Clarke's blog - I live in Hythe near Folkestone. Wed and dad to 2, I am a full-stack web developr, + I do js / Node, some ruby, python, php ect ect. I like pubs, parkrun, restaurants, home-automation and other diy stuff, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.