Re: [weewx-user] possible bug in index.html.tmpl for skip_if_empty option

2023-02-26 Thread Tom Keffer
I was able to reproduce this.

I've created issue #847  to
track. Thanks for the bug report!

-tk

On Sat, Feb 25, 2023 at 10:59 PM William Garber 
wrote:

> I set skip_if_empty to False.  I listed the plots in plot_groups in
> weewx.conf if and only if I wanted to see them (even if empty).  This did
> not work.  It generated the plots for wind (even though there was no
> data).  That is what I wanted.  However the index.html.tmpl did not
> recognize the skip_if_empty = False i.e. it still skipped the plot because
> it had not changed.
>
> I made this change to index.html.tmpl in the skin (I customized it) and it
> worked:
>
>   #for plot_group in $plot_groups
> #set $show_plot = 0
> #*
>   The plot name is just the concatenation of the period and the plot
> group.
>   For example, 'year' + 'tempdew' yields 'yeartempdew'.
> *#
> #set $plot_name = $period + $plot_group
> #for obs in $getobs($plot_name)
> #* garberw commented out to always show plot e.g. not skip_if_empty
> #if $recent.check_for_data($obs)
> *#
> #set $show_plot = 1
> #* garberw commented out to always show plot e.g. not skip_if_empty
>   #end if
> *#
> #end for
> #if $show_plot
> 
> #end if
>   #end for
>
> but this is not ideal.
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/826729ab-f660-4e0c-a0a2-0a9a9bf43147n%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAE3Qj%3DvrzmFHEkc7UjbfvNDQC8ec-mfyY-eNaYFnOuMg%40mail.gmail.com.


[weewx-user] Bootstrap skin a.k.a "fuzzy-archer" v4.0 preview available

2023-02-26 Thread michael.k...@gmx.at
Hi all,

there is a new version of the Bootstrap skin in the pipeline. Last year 
this skin has been modernized and updated with interactive gauges and 
charts, also, using MQTT live updates were made available.

Preview: https://www.kainzbauer.net/weather/Rif/en/

The version is still under development, to install it anyway, download the 
"lang" branch here:

https://github.com/brewster76/fuzzy-archer/archive/refs/heads/lang.zip

wee_extension --install lang.zip

Although I've installed it on several test environments, I cannot guarantee 
everything will work flawlessly by now.

If you encounter problems, please file any issues 
here: https://github.com/brewster76/fuzzy-archer/issues and let me know in 
this thread. 

Version 4 now has few new features so far, but in another way it is 
completely new:

New in v4.0:

   - Complete and thorough overhaul of the skin, many breaking changes. It 
   is recommended to start over with a fresh install
   - This skin used to consist of three skins, now reduced to one
   - Localization is now done the WeeWX way (hopefully Tom doesn't disagree 
   on this one)
   - Less and easier configuration
   - Many customization can now be done by configuration only, no more need 
   to touch the templates
   - Day/night background in Live Charts (needs pyephem installed)
   - Bug fixes and other enhancements

However, there are still some things to do, help is needed doing the 
translations for:

   - traditional chinese
   - czech
   - spanish
   - finnish (there isn't even a language file stub yet)
   - french
   - greek
   - italian
   - korean (there isn't even a language file stub yet)
   - dutch
   - thai
   
Let me know, if you try you manage to run it without any issues also:)

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d08c1586-652b-40d5-87c5-cfbdef7f4041n%40googlegroups.com.


Re: [weewx-user] possible bug in index.html.tmpl for skip_if_empty option

2023-02-26 Thread William Garber
I think it needs to check if the .png file already exists.

On Sunday, February 26, 2023 at 5:45:11 AM UTC-8 Tom Keffer wrote:

> I was able to reproduce this.
>
> I've created issue #847  to 
> track. Thanks for the bug report!
>
> -tk
>
> On Sat, Feb 25, 2023 at 10:59 PM William Garber  
> wrote:
>
>> I set skip_if_empty to False.  I listed the plots in plot_groups in 
>> weewx.conf if and only if I wanted to see them (even if empty).  This did 
>> not work.  It generated the plots for wind (even though there was no 
>> data).  That is what I wanted.  However the index.html.tmpl did not 
>> recognize the skip_if_empty = False i.e. it still skipped the plot because 
>> it had not changed.
>>
>> I made this change to index.html.tmpl in the skin (I customized it) and 
>> it worked:
>>
>>   #for plot_group in $plot_groups
>> #set $show_plot = 0
>> #*
>>   The plot name is just the concatenation of the period and the plot 
>> group.
>>   For example, 'year' + 'tempdew' yields 'yeartempdew'.
>> *#
>> #set $plot_name = $period + $plot_group
>> #for obs in $getobs($plot_name)
>> #* garberw commented out to always show plot e.g. not skip_if_empty
>> #if $recent.check_for_data($obs)
>> *#
>> #set $show_plot = 1
>> #* garberw commented out to always show plot e.g. not skip_if_empty
>>   #end if
>> *#
>> #end for
>> #if $show_plot
>> 
>> #end if
>>   #end for
>>
>> but this is not ideal.
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/826729ab-f660-4e0c-a0a2-0a9a9bf43147n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5443c94b-8965-4c22-a5a8-786708fd3924n%40googlegroups.com.