(24-Oct-2019, 09:25 AM)mkysimes Wrote: That's great info agent_kith! I'm a little behind the times I guessI'm a lot behind the times as well. Just can't find the time to expand on the Wiki. There is a reason why I chose to use a REST API with the current version of Snakeoil - for automationI do have the LMS machine set up and it does work when I use the app on my phone, just wasn't sure if there was an option in Snakeoil web config. Of course the LMS machine is running Snakeoil as well so I can shut it down easily with the web app.

At the moment these things are not available in the web config (because I'm doing this externally). Once the startup/shutdown links are included, you can perform some simplier automations. This is a open API, with no OAUTH or any form of authentication. You hit the API entry points, and it'll execute the commands. I'm trying to make this as simple as possible so as not to introduce any additional overheads (for latency sake).
E.g. you can add this to your client PC in the shutdown scripts, and it will shutdown the LMS Snakeoil server remotely.
curl -d "" -X POST http://the_snakeoil_pc_to_shutdown/api/system/shutdown
Documenting the API is in one of my TODO list. And once that is available, technically anybody can use that as a reference to:
- Write their own user interface (i.e. a different version of the Snakeoil web app)
- Interface Snakeoil into their home automation system
Getting a universal remote control is one of the things to do. And once that is done, imagine the things I can do.... Via Home Assistant, I hope to:
- Play a specific song on specific date/time (e.g. Play some birthday songs on birthdays, or anniversaries)
- Voice control, probably have to cheat on this a little via IFTTT
- infinite possibilities

