Skip to content
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

Open
RVCTinker opened this issue Oct 19, 2024 · 3 comments
Open

JSON data to replace holiday names with actual date (next instance) #2010

RVCTinker opened this issue Oct 19, 2024 · 3 comments
Labels

Comments

@RVCTinker
Copy link

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

  • Converting it myself
  • Never using the holiday names in my schedule

Additional context
Add any other context or screenshots about the feature request here.
FPP-Holiday-Names

@ghormann
Copy link
Member

ghormann commented Feb 1, 2025

@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.

@ghormann ghormann added the Need Info Need additional Information or will close. label Feb 1, 2025
@darylc darylc added wontfix and removed enhancement Need Info Need additional Information or will close. labels Feb 1, 2025
@RVCTinker
Copy link
Author

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?

@cpinkham
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants