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

Store IR code commands locally on SPIFFs and transmit by simplified json #186

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dham1012
Copy link

Stored codes can be sent by simplified json command (no need to copy the code or raw data to sending services (IFTTT etc). e.g. http://xxx.xxx.xxx.xxx:80/json?btn[1]. Where 1 is the stored button name.

The same command URL (bar IR controller IP) can be used across multiple IR Controllers (assuming the same stored IR command name is used)

Updated to including some detail on storing and sending remote control commands
Store received codes from home page as local JSON files on the SPIFFs file system. Stored codes can be sent using /json?btn['btn nane','btn name2'...]
Test received codes directly from home page
Upload back to esp previously downloaded and/or updated json files.
Backup stored json files

I have added in bootstrap required libraries to make some of the interface changes work, if there is a more efficient way to deliver this work please update!
I have tested adding many stored codes, and tried to keep the code as efficient as possible, though i only have basic programming abilities. I haven't tested these changes with the alexa integration as I don't currently use.
I have moved some of the original code about, just to make it easier for me to update bits. 
I have commented some sections out that only print to serial to save space
Updated to handle state for stored commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant