Thank you again Gary,...now after I have made these changes....how do I
actually "run" or whatever this template file?
On Tuesday, 15 January 2019 20:03:21 UTC+13, gjr80 wrote:
>
> A few comments.
>
> - the python inline code I provided to calculate max annual rainfall
> needs to have a # at the start of each line
> - not sure you really want the following your template, I just
> included it in my example code to show how you would use the tags:
>
> #if $max_rain_year is not None
> Maximum annual rainfall was $max_rain_vh.mm in $max_rain_year.format("%Y")
> #else
> No rainfall data available
> #end if
>
> - $alltime.rain.maxsumm should be $alltime.rain.maxsum
> - you still have some $year tags in the file relating to UV, ET and
> radiation. though unless you have a UV or radiation sensor on your station
> they will do nothing.
> - you have $alltime.rain.sum in a cell labelled Max Rain Year Total.
> As previously discussed $alltime.rain.sum will give you the sum of all
> rainfall data in your archive, not just for a rain year.
>
> Best way is to try it. You will need to fix the missing # and maxsumm typo
> but otherwise it should work. But how it looks and does it display what you
> want will be another thing completely :)
>
> Gary
>
> On Tuesday, 15 January 2019 14:54:43 UTC+10, monmul wrote:
>>
>> So, here is my first attempt at putting all the advice together into the
>> all time template......how am I doing?
>>
>> On Sunday, 6 January 2019 14:37:27 UTC+13, monmul wrote:
>>>
>>> I am new to weewx and am trying to set it up on my Rpi 3. I have a Davis
>>> Vantage weather station. I have a serial Envoy data logger attaced to my
>>> Rpi with a serial/usb converter. In following the set up instructions, I
>>> get these errors!
>>>
>>> sudo weewxd weewx.conf
>>> Traceback (most recent call last):
>>> File "/usr/bin/weewxd", line 64, in <module>
>>> weewx.engine.main(options, args)
>>> File "/usr/share/weewx/weewx/engine.py", line 835, in main
>>> sane = os.stat(config_path).st_ctime
>>> OSError: [Errno 2] No such file or directory: '/home/pi/weewx.conf'
>>> pi@Weatherpi:~ $ tail -f /var/log/syslog
>>> Jan 6 13:37:43 Weatherpi bluetoothd[843]: Endpoint unregistered:
>>> sender=:1.16 path=/MediaEndpoint/A2DPSink
>>> Jan 6 13:37:47 Weatherpi dhcpcd[498]: wlan0: no IPv6 Routers available
>>> Jan 6 13:37:48 Weatherpi dhcpcd[498]: eth0: no IPv6 Routers available
>>> Jan 6 13:37:57 Weatherpi systemd[852]: Time has been changed
>>> Jan 6 13:37:57 Weatherpi systemd[1]: Time has been changed
>>> Jan 6 13:41:05 Weatherpi rsyslogd-2007: action 'action 17' suspended,
>>> next retry is Sun Jan 6 13:41:35 2019 [try
>>> http://www.rsyslog.com/e/2007 ]
>>> Jan 6 13:41:06 Weatherpi weewx[1515]: engine: Initializing weewx
>>> version 3.8.2
>>> Jan 6 13:41:06 Weatherpi weewx[1515]: engine: Using Python 2.7.9
>>> (default, Sep 26 2018, 05:58:52) #012[GCC 4.9.2]
>>> Jan 6 13:41:06 Weatherpi weewx[1515]: engine: Platform
>>> Linux-4.9.35-v7+-armv7l-with-debian-8.0
>>> Jan 6 13:41:06 Weatherpi weewx[1515]: engine: Locale is 'en_GB.UTF-8'
>>> Jan 6 13:52:34 Weatherpi systemd[1]: Starting Cleanup of Temporary
>>> Directories...
>>> Jan 6 13:52:34 Weatherpi rsyslogd-2007: action 'action 17' suspended,
>>> next retry is Sun Jan 6 13:53:04 2019 [try
>>> http://www.rsyslog.com/e/2007 ]
>>> Jan 6 13:52:35 Weatherpi systemd[1]: Started Cleanup of Temporary
>>> Directories.
>>> Jan 6 13:55:28 Weatherpi wpa_supplicant[590]: wlan0: WPA: Group
>>> rekeying completed with 30:5a:3a:cd:e7:f0 [GTK=CCMP]
>>> Jan 6 13:55:28 Weatherpi rsyslogd-2007: action 'action 17' suspended,
>>> next retry is Sun Jan 6 13:55:58 2019 [try
>>> http://www.rsyslog.com/e/2007 ]
>>> Jan 6 13:55:28 Weatherpi wpa_supplicant[590]: wlan0: WPA: Group
>>> rekeying completed with 30:5a:3a:cd:e7:f0 [GTK=CCMP]
>>>
>>> Please where have I gone wrong?
>>>
>>>
>>> .....................................................................................................................................................
>>>
>>> Hi,
>>>
>>> It appears that you are in the /home/pi directory and hence weewxd is
>>> looking for weewx.conf in /home/pi. Use the full path for weewx.conf ie:
>>>
>>> $ sudo weewxd /etc/weewx/weewx.conf
>>>
>>> Gary
>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.