Open and change device database for renaming devices?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
renerene
Posts: 356
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Open and change device database for renaming devices?

Post by renerene »

I have to change dozens of device names and I don't want to use the slow web interface.
Is there a way to open the database (ssh?) and edit the names in a text editor or database program?
SweetPants

Re: Open and change device database for renaming devices?

Post by SweetPants »

renerene wrote:Is there a way to open the database (ssh?) and edit the names in a text editor or database program?
You can try a SQlite editor.
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Open and change device database for renaming devices?

Post by freijn »

Can you please give me a longer hint ? ( How to ? perhaps? )

I am very interested too :-)

THanks !
SweetPants

Re: Open and change device database for renaming devices?

Post by SweetPants »

freijn wrote:Can you please give me a longer hint ? ( How to ? perhaps? )
I'm running linux and use Sqliteman
I general do:

1) Stop domoticz and make a backup of domoticz.db
2) copy domoticz.db to your system
3) slitleman domoticz.db
4) Open Tables->devicestatus
5) Change 'Name' like you want
6) Commit changes to the database
7) copy domoticz.db to your RPI
8) Start Domoticz
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Open and change device database for renaming devices?

Post by freijn »

Wauw !! Superfast response :-)

Many thanks..

Every tried to connect directly on the running domoricz ?
is there no port available ?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Open and change device database for renaming devices?

Post by Egregius »

You can use adminer on a live system ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest