So, here is what happened....the report got ignored!!

i@raspberrypi:~ $ sudo tail -f /var/log/syslog
Jan 16 19:17:32 raspberrypi weewx[530]: cheetahgenerator: Generated 1 files 
for report xstats in 0.09 seconds
Jan 16 19:17:32 raspberrypi weewx[530]: ftpgenerator: ftp'd 1 files in 0.62 
seconds
Jan 16 19:17:34 raspberrypi weewx[530]: reportengine: Failed to read skin 
configuration file /etc/weewx/skins/Standard/skin.conf for report 
StandardReport: Duplicate keyword name at line 229.
Jan 16 19:17:34 raspberrypi weewx[530]:         ****  Report ignored
Jan 16 19:17:34 raspberrypi weewx[530]: cheetahgenerator: Generated 1 files 
for report xstats in 0.07 seconds
Jan 16 19:17:34 raspberrypi weewx[530]: engine: Launch of report thread 
aborted: existing report thread still running
Jan 16 19:17:34 raspberrypi weewx[530]: ftpgenerator: ftp'd 1 files in 0.62 
seconds
Jan 16 19:17:52 raspberrypi kernel: [  112.313399] Voltage normalised 
(0x00000000)
Jan 16 19:18:08 raspberrypi kernel: [  128.953478] Under-voltage detected! 
(0x00050005)
Jan 16 19:18:13 raspberrypi kernel: [  133.113393] Voltage normalised 
(0x00000000)

On Wednesday, 16 January 2019 13:00:18 UTC+13, gjr80 wrote:
>
> WeeWX generates reports from template files through a skin. Each skin has 
> a skin config file, skin.conf, which, among other things, tells weeWX 
> which templates to process. To complete the picture each skin to be 
> processed by weeWX is listed in weewx.conf under [StdReport]. Now that 
> you are getting into customizing reports/templates it's probably worth your 
> while have a read through the The standard reporting service, StdReport 
> <http://weewx.com/docs/customizing.htm#_________The_standard_reporting_service,_StdReport_______>
>  
> in the Customization Guide.
>
> You basically have two choices; create a new skin and add your template to 
> it or add your template to an existing skin. Since you are adding a new 
> page with similar look and feel to your existing site it makes sense to do 
> the latter and just add your template to the existing Standard skin. To 
> do this:
>
> 1. edit skins/Standard/skin.conf
> 2. locate the [[ToDate]] stanza which is under [CheetahGenerator]
> 3. you will see here all the other templates that weeWX is to process. 
> Just pick a spot and add in your template, I would put it after [[[year]]] 
> just to keep the pattern but it doesn't really matter. I will not tell you 
> what to enter, am sure you can work that out :)
> 4. save skin.conf
> 5. if you have not already done so make sure a copy of your template file 
> is in the skins/Standard directory
>
> That's it, weeWX should process your template on the next report cycle. 
> The proof will be your generated report (page/file) appearing in the same 
> directory as all the other Standard skin files. You can also monitor your 
> log for errors, if everything goes fine you will not see much in the log 
> just one extra file being generated for the Standard skin, if there are 
> errors you should see them in the log.
>
> I guess you will; let us know how you go!
>
> You might also want to have a read through the [CheetahGenerator] section 
> <http://weewx.com/docs/customizing.htm#[CheetahGenerator]> of the 
> Customization Guide.
>
> Gary
>
> On Wednesday, 16 January 2019 05:57:22 UTC+10, monmul wrote:
>>
>> 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.

Reply via email to