I finally reinstated "event modifiers" in my lightwaverf home automation
(/wiki/#code). Someone else addd them to [the repo](https://github.com/pauly/lightwaverf) 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 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](/wiki/#holiday)" then you set certain events to respond to that - "only when we're on holiday" by adding "@holiday" or "not when we're on holiday" by adding "!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, we are not away then, my [lightwaverf](/wiki/#lightwaverf) does not control my 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 here 1, 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" />
⬅️ World book day :: The rarely seen Habitat Radius ottoman ➡️
Paulʼs weblog - I live near Folkestone, Kent. Wednesday and dad to two, I am a full-stack web engineer, + I do js / node, some ruby, other languages etc. I like pubbing, running, eating, home automation 🤖 and other diy stuff, history, family tree stuff, telly 📺, squirrels, pirates ☠️, lego, + time travel.