Purge or reset weewx db and graphics

1,337 views
Skip to first unread message

Francesco Galella

unread,
Aug 9, 2016, 3:47:40 AM8/9/16
to weewx-user
Hello everyone, I need to reset weewx, clear graphics and db. How can I do?

gjr80

unread,
Aug 9, 2016, 5:27:33 AM8/9/16
to weewx-user
Hi,

Assuming you did a setup.py install (ie weewx is located in /home/weewx) and are using SQLite:
  • stop weewx
  • remove all data in the database by deleting the file weewx.sdb from the folder /home/weewx/archive
  • to delete all of the weewx generated content (ie plots, html pages and NOAA fomatted reports) delete all of the folders/files in /home/weewx/public_html (if really do just want to delete the plots then only delete the image files (likely .png files))

For a deb or rpm package install you delete the same files/folders, it's just they are in different folders. If you did a deb package install then weewx.sdb will be in /var/lib/weewx and generated content will be in /var/www/weewx. For an rpm package install the generated content is in /var/www/html/weewx.


If you are using MySQL in lieu of SQLite then I assume you will be competent enough to drop your database :)


Gary

Reply all
Reply to author
Forward
0 new messages