11Dec/110
[Linux] Import your historical temperature data into Domogik
Here is a non-detailled tutorial on how I grabbed my old database containing my temperatures into my new Domogik installation
Domogik has a quite modular database approach, I was quite lucky as my schema was quite close to theirs.
- Install apache2 + php5 + phpmyadmin on your domogik host
$ sudo aptitude install phpmyadmin
- On your old host
Go to your table, Operations > Copy table to
Choose Structure + data, new table should be named `core_device_stats`
- Check the schema used by domogik, at the time of my writing columns are as follows :
id date timestamp skey device_id value_num value_str
- Check the device numbers used in domogik DB, table is `core_device`
- Match your sensors ids with domogiks
- Rename / edit your column to match domogik's schema
- Export as CSV
- Imports onto Domogik host
Enjoy !
If you need help, please add a comment, I'll help if the question is clear enough.
Related posts: