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

Automatic Item Discovery #14

Open
juanpintom opened this issue Nov 27, 2015 · 4 comments
Open

Automatic Item Discovery #14

juanpintom opened this issue Nov 27, 2015 · 4 comments

Comments

@juanpintom
Copy link
Member

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

@juanpintom
Copy link
Member Author

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

@juanpintom
Copy link
Member Author

Well, I worked on it and it's near to be done! =)

I will notice soon.

Regards

@juanpintom
Copy link
Member Author

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

@juanpintom
Copy link
Member Author

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

No branches or pull requests

1 participant