Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: import_madavi for a different sensor ID (merge historical measurements for replaced device) #87

Open
ProBackup-nl opened this issue Dec 20, 2021 · 3 comments

Comments

@ProBackup-nl
Copy link
Contributor

Feature request: would be nice to have.

Imagine having desployed a few sensor boxes around at not so tech savvy friends and family. Something breaks in the sensor, for example a boot failure with beta firmware (don't install beta firmware on remote devices is what I have learned over the time).

How to solve this having the friend to climb up the ladder only once? Exchange the sensor box with a spare sensor box.

The downside turns to be that there is no historical data migration possible. The older measurements are still linked to the old sensor ID.

It would be nice if the Madavi data of the old sensor ID can be imported at the new sensor ID.

@trekawek
Copy link
Owner

If you configure the new sensor with the /api/update/... token from the aqi.eco, the sensor ID will be updated automatically in aqi.eco device settings, as soon as the new sensor sends its first update. You can run the madavi import then.

@ProBackup-nl
Copy link
Contributor Author

ProBackup-nl commented Dec 20, 2021

SensorNew is already configured with /api/update/...
SensorNew data is already imported using madavi import.
SensorOld data needs to be imported using madavi (into SensorNew).

I would like to (temporarily) override (the readonly sensorID) to import https://api-rrd.madavi.de/csvfiles.php?sensor=esp8266-1234old and insert that into aqi.eco sensor=1234new

@trekawek
Copy link
Owner

OK, I get it now. Yep, this use case makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants