wswartz Posted December 10, 2019 Posted December 10, 2019 I'm interested in saving the ISY log to a file that I can use to view or store in a database. My thought would be to have a script run every 5 or so minutes to grab the log via REST. My concern is that for each call, I'll get a full list of events that are duplicated with the last call. I guess that my script will need to pull a log file, then dedup what was pulled from the previous call, then save the difference. Is this a correct assumption or is there a way to just get the last updates to the log? Bill
Michel Kohanim Posted December 10, 2019 Posted December 10, 2019 @wswartz, It's best to use something that subscribes to ISY and then logs to the database. There are couple of open source libraries that can do this for you: https://www.universal-devices.com/isy-developers (under Legacy) With kind regards, Michel
wswartz Posted December 11, 2019 Author Posted December 11, 2019 Thanks for the reply. I'm getting a "404 not found" for every link in the Legacy section. Do you have a better place to get this information? Bill
wswartz Posted December 14, 2019 Author Posted December 14, 2019 Figured out the URL's... reading... thanks.
wswartz Posted December 18, 2019 Author Posted December 18, 2019 So, from what I've been seeing, I need to use websockets to subscribe to the ISY. I looked at the mentioned libraries. While the code for Psisy is on Github, I couldn't' find any documentation. There is a link for information on the library, but the link is dead. I was able to get ISYlib to work a little bit - wrote a few lines to print print some info on my ISY which worked. But I'm not a programmer - I have to Google for every line of code I write. I found the documentation on ISYlib to be extremely light and searching for additional examples both here and on Google came up wanting. Wondering if there is a source for more documentation on ISYlib - or better yet, anyone have some example code that would do what I'm trying to accomplish? Thanks, BS
wswartz Posted December 24, 2019 Author Posted December 24, 2019 Hello? Looking for some sample code, anything that shows how to do a subscription using ISYlib. I can probably figure it out from there. Thanks!
Recommended Posts