jneilliii / OctoPrint-TPLinkSmartplug

105 stars 57 forks source link

[Feature Request]: Remove all telemetry data / reset #283

Closed GrimWreeper closed 3 years ago

GrimWreeper commented 3 years ago

Firstly, love the plugin, been using it since I got my ender,

A way to clear all the plugs previous telemetry history and start again, without having to remove & replace plug. {It's fully possible that this exists and I've just missed it :D }

jneilliii commented 3 years ago

It is possible to do, but not from the UI. You would have to delete the 'energy_data.db' file in /home/pi/.octoprint/data/tplinksmartplug

GrimWreeper commented 3 years ago

No problem I can do that. If I shut down octoprint. delete the db, will I recreate itself?

jneilliii commented 3 years ago

Yes, it will when OctoPrint initializes.