Adding the weewx repository
wget -qO - http://weewx.com/keys.html | apt-key add -
wget -qO - http://weewx.com/apt/weewx-python3.list | tee /etc/apt/sources.list.d/weewx.list
Update and install
apt update
apt install weewx
Now, go through the setup when it prompts to do so.
This allows the config of the weather station being used. Make sure the ISS is set correctly in weewx.conf
wee_config --reconfigure
To enable Weewx to upload complete, generated html pages to a remote web server, using rsync, use the following config.
In /etc/weewx/weewx.conf
[[RSYNC]]
enable = true
server = weather.domain.com
port = 22
user = weewx
path = /var/www/weather.getbent.us/mytown
delete = 1
Change LOOP interval
wee_device --set-interval=10
To remove weather data from WeeWX it must be removed directly from the database.
Open the database
sqlite3 /var/lib/weewx/weewx.sdb
Remove the records that are older than X, where X is a timestamp (unix epoch)
DELETE FROM archive WHERE dateTime < X
The following will change the interval to 5 minutes. (I wouldn't set the archive interval lower than 5 minutes. The reports that are run can take some time depending on how much data has to be processed.)
wee_device --set-interval=5