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

Adding the user customization profile in 3 House application? #81

Closed
amarpulli1994 opened this issue Apr 19, 2016 · 1 comment
Closed

Comments

@amarpulli1994
Copy link

Hello,
I need to add new feature to 3 House application for OpenHAB Home automation.According to my understanding will give flowchart of how to add user customization profile
openhab.
Where I put it code for working the "Add Profile" Button in your 3House.I creating the "Add Profile" button in sitemap.xml layout file .screenshot from 2016-03-29 12-00-35
In this flow chart user profile saved into the database.The OH Communicator fetching user profiles and providing the sitemaps and items to that user profiles.That user Profiles display like below screenshotscreenshot from 2016-03-29 12-04-00.
Thanks,
Amar.

@ibaton
Copy link
Owner

ibaton commented Apr 25, 2016

Hi Amar. You can now use Realm.io to save the profile in database.
https://realm.io/.

Create a profile object extending RealmObject.
Then use get the realm default and save it with

Realm realm = Realm.getDefaultInstance();
realm.beginTransaction();
realm.copyToRealmOrUpdate(profile);
realm.commitTransaction();

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

No branches or pull requests

2 participants