Import historical data

Moderator: leecollings

Post Reply
friso82
Posts: 25
Joined: Friday 04 February 2022 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Import historical data

Post by friso82 »

Hi,

I installed Domoticz and have a lot of pre-domoticz historical data. E.g. daily utility counter values. I was thinking of importing those into the MultiMeter_Calendar table in the correct format to have this historical data in Domoticz as well.

How to approach this? I already created the required records in a csv file in the correct format. Is updating the MultiMeter_Calendar table with the additional rows sufficient or do I need to take other dependencies into account?

Thanks!

Cheers, Friso
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Import historical data

Post by waltervl »

Yes, this would be the easiest way to do so. You can use "DB Browser for SQLite" https://sqlitebrowser.org
Always make a backup of domoticz.db first!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest