AD2Pi and SmartThings integration error

General Discussion

Re: AD2Pi and SmartThings integration error

Postby kevin » Tue Dec 26, 2017 1:30 pm

Sometimes when auto scanning zones it inserts a bad character into the zones table - this needs to be fixed, but temporarily you can edit the database table to remove the invalid character in the 'zones' table of /opt/alarmdecoder-webapp/instance/db.sqlite (download this file, open with sqlitebrowser or other sqlite editing tool, replace file) or you can start with a fresh database and input zones manually
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: AD2Pi and SmartThings integration error

Postby Lyubo » Thu Dec 28, 2017 6:35 am

This is a little over my head. I looked at the documentation, but did not see how to get to the database or start with a fresh one. Is there a document that covers that?
Thanks,
Lyubo
Lyubo
newt
newt
 
Posts: 8
Joined: Fri Dec 01, 2017 11:12 am

Re: AD2Pi and SmartThings integration error

Postby kevin » Thu Dec 28, 2017 12:21 pm

To start with a fresh database:

ssh to the pi
cd /opt/alarmdecoder-webapp
sudo rm instance/db.sqlite
python manage.py initdb

That will put the webapp back to stock
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: AD2Pi and SmartThings integration error

Postby Lyubo » Thu Dec 28, 2017 3:25 pm

Thanks Kevin!
I was able to edit the database and remove the invalid characters. Learning so much here...
Lyubo
newt
newt
 
Posts: 8
Joined: Fri Dec 01, 2017 11:12 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 14 guests

cron