Hi,
I'm preparing a new image for my raspberry and have a problem with the copy service.
The retrieving of the data from the weather station (WH1080) and the handling of the data with my templates works.
Therefore I have the files in the output directory.
I added in the weather.ini the configuration to copy the files to the local www directory.
But nothing happens.
I also see no errors in the log output.
My config:
- Python 3.7
- pywws 22.10.0 (installed with pip3 from the repository)
#### weather.ini ####
[config]
ws type = 1080
logdata sync = 1
day end hour = 0, False
rain day threshold = 0.2
template encoding = iso-8859-1
gnuplot encoding = iso_8859_1
language = en
usb activity margin = 3.0
asynchronous = False
frequent writes = False
gnuplot version = 4.2
pressure offset = 50.6
[paths]
work = /home/mypywws/weather_data/tmp/
templates = /home/mypywws/weather_data/templates/templates/
graph_templates = /home/mypywws/weather_data/templates/graph_templates/
local_files = /home/mypywws/weather_data/results/
modules = /home/mypywws/weather_data/modules/
datastoretype = filedata
[live]
services = []
plot = []
text = []
[logged]
services = [('copy', 'livedata.log', '3hrs.log')]
text = ['livedata.log', '3hrs.log']
plot = []
[hourly]
services = [('copy', '24hrs.log'), ('copy', 'my_forecast.txt'), ('copy', 'my_forecast_icon.txt')]
text = ['24hrs.log', 'my_forecast.txt', 'my_forecast_icon.txt']
plot = []
[12 hourly]
services = []
text = []
plot = []
[daily]
services = []
text = []
plot = []
[Zambretti]
north = True
baro upper = 1050.0
baro lower = 950.0
[copy]
directory = /var/www/html/weather/data/
####
+++++++++++++ snipped of log output ++++++++
2023-01-20 08:59:03:pywws.regulartasks:Templating livedata.log
2023-01-20 08:59:03:pywws.regulartasks:Templating 3hrs.log
2023-01-20 08:59:35:pywws.weatherstation:live_data missed
2023-01-20 09:00:03:pywws.weatherstation:live_data new ptr: 000be0
2023-01-20 09:00:03:pywws.process:Generating summary data
2023-01-20 09:00:03:pywws.regulartasks:doing task sections ['logged', 'hourly']
2023-01-20 09:00:03:pywws.regulartasks:Templating livedata.log
2023-01-20 09:00:03:pywws.regulartasks:Templating 3hrs.log
2023-01-20 09:00:06:pywws.regulartasks:Templating 24hrs.log
2023-01-20 09:00:06:pywws.regulartasks:Templating my_forecast.txt
2023-01-20 09:00:06:pywws.regulartasks:Templating my_forecast_icon.txt
2023-01-20 09:01:07:pywws.weatherstation:live_data new ptr: 000bf0
2023-01-20 09:01:07:pywws.process:Generating summary data
2023-01-20 09:01:08:pywws.regulartasks:doing task sections ['logged']
2023-01-20 09:01:08:pywws.regulartasks:Templating livedata.log
2023-01-20 09:01:08:pywws.regulartasks:Templating 3hrs.log
2023-01-20 09:02:03:pywws.weatherstation:live_data new ptr: 000c00
2023-01-20 09:02:03:pywws.process:Generating summary data
2023-01-20 09:02:03:pywws.regulartasks:doing task sections ['logged']
2023-01-20 09:02:03:pywws.regulartasks:Templating livedata.log
2023-01-20 09:02:03:pywws.regulartasks:Templating 3hrs.log
2023-01-20 09:03:03:pywws.weatherstation:live_data new ptr: 000c10
2023-01-20 09:03:03:pywws.process:Generating summary data
2023-01-20 09:03:03:pywws.regulartasks:doing task sections ['logged']
2023-01-20 09:03:03:pywws.regulartasks:Templating livedata.log
2023-01-20 09:03:03:pywws.regulartasks:Templating 3hrs.log
2023-01-20 09:04:03:pywws.weatherstation:live_data new ptr: 000c20
2023-01-20 09:04:03:pywws.process:Generating summary data
2023-01-20 09:04:03:pywws.regulartasks:doing task sections ['logged']
2023-01-20 09:04:03:pywws.regulartasks:Templating livedata.log
2023-01-20 09:04:03:pywws.regulartasks:Templating 3hrs.log
+++++++++++++++++++++++