Change light color based on holday


#1

What I’m looking for is if someone has a good piston that changes the color of their bulbs based on US holidays. I.e., Halloween, 4th of July, Christmas, st patties day etc

If you would like to share I’m interested. Want to Setup for my porch lighting


#2

Have a look there : Best format for date

You’ll get some ideas. I’ll post my full piston once completed :slight_smile:


#3

I should add a list of holidays to webCoRE, right? Problem starts with religious holidays, they have weird dates. Catholic and Orthodox Easter go by moon phases, Jewish Passover along the same lines, the islamic Ramadan is on a sliding moon calendar, etc. Argh


#4

You could use a way to reference a -remade list of us holidays. Google calendar has one.


#5

If you ask me, that would be too much of your precious time for the ROI. :slight_smile:

In any case, Isn’t there a trusted public API somewhere that does just that?


#6

If anyone finds an API… I’ll be glad to do it. Free software does not go by ROI :wink: the ads are there to cover hosting (about $50/mo currently for 4 servers) and other costs (domain registration some $20/yr/domain, Apple Developer Program $99/yr). As long as those costs are covered, I want not one penny more :wink: so no ROI really :wink:


#7

Meant ROI from a user standpoint, aka I think the returns for users is far superior with the mobile apps than the holidays, for exemple :smile:

That being said, I have no right to even discuss that. Thanks again for everything!


#8

Oh I am working on the mobile app first - then come the rest. I got NFL and holidays on my list. NFL in 9 days…


#9

Would that do? http://kayaposoft.com/enrico/

Definitely seems free, probably reliable enough for occasional polling…

Tried to make sense of it but it’s too late, seems a bit more complicated than what I’ve already done in the past (calling WU API).


#10

Not sure. But found this one. https://holidayapi.com

I currently use google calendar to add us holidays to my calendar. Then I use the smart app gcal search to find them in my calendar and make a virtual contact sensor or for that event. It returns some info that is useable, but not the start date by itself unfortunately. If webcore could use the summary and parse the date efficiently it would work (I think). You can use this for sports teams too.

Looking forward to the NFL option that your working on. Hopefully it will include the ability to set colors based on game time, scores, and we]heather or not favorite team is in the red zone. Don’t even get me started on the possibilities for fantasy football!

Thank you


#11

the holiday api certainly seems useful.

@ady624 if you do start adding country holidays, please consider having the holiday function() support accepting a country code to retrieve the list of holidays additional to the default holidays that may be incorporated based on location. i am sure there are many like me that enjoy partying to holidays from at least two countries if not three. :slight_smile:

thank you.


#12

I looked into this one before proposing Enrico. They don’t have a free plan that is actually relevant… had to register an account to see their plans. Free plan allows historical data and dummy future data. For what we need (valid future data), it’s $10 a month.