-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON data to replace holiday names with actual date (next instance) #2010
Comments
@RVCTinker Why not use MQTT if you are using home automation software? FPP publishes its current status when it starts/stops a playlist. Couldn't you just use that to trigger events in your home automation software based on if a sequence is running? Note: Currently this isn't a high priority for the FPP developers. |
Because the home automation software is what turns on 2 out of 3 controllers, and 7 power supplies for the show. A script parses the FPP schedule to see what is scheduled, and if it is a playlist that requires the full or partial show display, it in turn schedules the appropriate equipment to turn on 5 minutes before the show starts. It then calculates when the show will end and schedules the off event for 5 minutes after the end of the show. So the home automation system is not reacting to the show, it is enabling the show. From a coding perspective, there should have always been a date field to go with friendly names like 'Christmas' anyway - if you have JSON communications, how even would MQTT be able to parse and handle 'Thanksgiving' which moves from year to year? |
The schedule api call (/api/fppd/schedule) returns the list of upcoming scheduled items and contains the actual date. It also contains the schedule itself which can be used to lookup the holiday name if you want. This is the API call that the schedule preview uses and it displays both the actual start date and the holiday name. |
Is your feature request related to a problem? Please describe.
I am using the JSON output of the scheduler to tell my home automation system when to turn on/off the devices that power my show. When I used a holiday name instead of a specific date, that name comes through in the JSON and so I have to convert it back to a real date.
Describe the solution you'd like
Either a duplicate of some of the API calls that returns schedule data to use the actual date of the next instance of the holiday instead of the holiday name, or an option on the HTTP GET that will cause that to happen.
Describe alternatives you've considered
Additional context

Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: