This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[How to] Backup Insight data on another device
WRos
Member
I thought the data in Insight was stored for 6 month. But that's wrong. A Full Reset of Homey has removed the data.
The Insight data is imported for me the make analyses over years. That's the reason the investigate possibilities to download the data.
A Raspberry Pi is every evening downloading the data. Now I'm sure, I never loss my data. Because this data is also in sync with another device in another neighborhood.
I want to share this Script with the Homey community. So you could all use this same method.
It's a bash script that make a script with a lot of Curl command to download the data. In Linux, you need the curl and the jq commands.
The Insight data is imported for me the make analyses over years. That's the reason the investigate possibilities to download the data.
A Raspberry Pi is every evening downloading the data. Now I'm sure, I never loss my data. Because this data is also in sync with another device in another neighborhood.
I want to share this Script with the Homey community. So you could all use this same method.
It's a bash script that make a script with a lot of Curl command to download the data. In Linux, you need the curl and the jq commands.
Comments
This give a great logfile:
Nice to hear that the log file in Homey would be "Endless".
To be secured that I don't lost any data, I would automatic backup the data on another device.
Have somebody got the knowledge to download or push the data to another device?
Don't know about automation but there is a thread here about storing values in a google spreadsheet through ifttt...
For other people who wants to download the values automatically too:
curl -H "Authorization: Bearer 12345678910asdfghjkluytre1234" -o Temperatuur.log "https://tralalalhomeyididididid.homey.athom.com/api/manager/insights/log/homey:device:0f0dcd68-32cf-49bc-ae2b-2b3deb2dafaa/measure_temperature/entry?access_token=undefined"
https://github.com/WesRos/download.insight.homey/blob/master/homeydatascript
This Script is bash: curl and jq are needed to execute.
This script is creating another script, with all the curl command to download the data in right named log files.
The script generated many, many logfiles for backup, of to integrate in another monitorings tool.
I think the reason is that Homey is writing into the log.
The same response from the web interface.