I made the suggested changes with a few small corrections but I got this 
error.


I don't know enough about how cheetahgenerator works to fix this problem. 
 I have everything up to date.  I'm using a Weatherflow Tempest for the 
data.  Is this a naming problem?


Any help?



Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: Generate failed with exception '<class 
'NameMapper.NotFound'>'*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: **** Ignoring template 
/etc/weewx/skins/ss/gauge-data.txt.tmpl*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: **** Reason: cannot find 'vecdir' while searching 
for 'hour.wind.vecdir'*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: ****  Traceback (most recent call last):*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: ****      unicode_string = 
compiled_template.respond()*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: ****    File 
"_etc_weewx_skins_ss_gauge_data_txt_tmpl.py", line 325, in respond*

Jun 03 22:40:26 pi3 python3[17442]: *weewx[17442] ERROR 
weewx.cheetahgenerator: ****  NameMapper.NotFound: cannot find 'vecdir' 
while searching for 'hour.wind.vecdir'*

On Monday, June 20, 2016 at 10:48:00 AM UTC-4, mwall wrote:
>
>
>
> On Monday, June 20, 2016 at 8:28:04 AM UTC-4, Jesus C. wrote:
>>
>> Hi,
>>
>> Installed the steel series gauges (2.5.13) and works well, but the wind 
>> rose was not shown. Following this thread Wind rose does not show in 
>> Steel Series 
>> <https://groups.google.com/forum/#!topic/weewx-user/cMUfs0vMnII> fixed 
>> it: Now is showed, with data in odometer and popup, but inside of gauge 
>> don't show colored patterns.
>>
>> Further investigation noted that value "WindRoseData" of gauge-data.txt 
>> is empty. Seems weewx is not feeding data into the variable.
>>
>
> you are correct - there is nothing in the gauge-data.txt.tmpl that makes 
> weewx populate the array that feeds the wind rose.
>
> as gary noted, you could modify gauge-data.txt to make this happen.
>
> you'll want something like this:
>
> ## emit the last 16 hourly wind directions for use in wind rose, oldest to 
> newest
> #set $rose_data = []
> #for $hour in $day.hours
> #$rose_data.append($hour.wind.vecdir)
> #end for
>
> then something like this in the actual data output:
>
> "WindRoseData": "$rose_data",
>
> i'm not sure how cheetah handles default formatting of an array, so you 
> might have to tweak the output a bit, but hopefully you get the idea...
>
> before you make changes, you might want to pull the latest from mark's 
> repository:
>
> https://github.com/mcrossley/SteelSeries-Weather-Gauges
>
> m 
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2fec5fa0-9486-4bca-b6ca-db6bb07c9cae%40googlegroups.com.

Reply via email to