Open juanpintom opened 8 years ago
Hi, Im thinking how we can accomplish this. The easy way will be create a python script to take data on a json structure (with Zozzariello or UDP) and modify the OH items and sitemap files with the values retreived from json.
Im looking for some info to learn how python can append or modify text files, we only need to create a "section" inside this files and edit with python script. The update script can be launched from OH with a button that launches the script and restart OH.
What do you think about the Ideas? I can help on this because I want to learn Python. Here I post some links I've readed to add some refererences on this comment.
http://stackoverflow.com/questions/1325905/inserting-line-at-specified-position-of-a-text-file-in-python/1325927#1325927 http://www.zopatista.com/python/2013/11/26/inplace-file-rewriting/
Regards
Well, I worked on it and it's near to be done! =)
I will notice soon.
Regards
Hi all, a few weeks I was made a python script to automatically create a .items file, but now Zozzariello its removed from Souliss app, have you any idea to make this in other way?? (I can keep and old Souliss version, but we need to move forward)
Thanks
Here is the code: https://github.com/juanpintom/Souliss_to_OH_Autoitems_Python
Hi, I saw before you are working on a way to add items from nodes to OH automatically, is this function still possible?
Ty for your work on this binding :P Its awesome
Regards