Re: [weewx-user] Bug in skin localization / units

2021-11-10 Thread itec
Thanks to you for fixing it immediately!
It would be nice to modify the configuration wizard (wee_config 
--reconfigure) also.
Do you think it makes sense to prompt user for language instead of (in 
addition to) prompting for units?

itec 

Il giorno giovedì 11 novembre 2021 alle 00:31:58 UTC+1 tke...@gmail.com ha 
scritto:

> Yes, that is a bug! Thanks for finding it.
>
> Fixed in commit f1afbab 
> <https://github.com/weewx/weewx/commit/f1afbab5b1302e8a65f8ae3b9e4102132d1112ab>
> .
>
> On Wed, Nov 10, 2021 at 3:10 PM itec  wrote:
>
>> I used the default settings during installation, changing units to metric 
>> only.
>> This is my entire section [StdReport]
>>
>>
>> ##
>>
>> #   This section specifies what reports, using which skins, to generate.
>>
>> [StdReport]
>> 
>> # Which language to use. Not all skins support all languages.
>> # You can override this for individual skins.
>> lang = en
>> 
>> # Which unit system to use. Choices are 'us', 'metric', or 'metricwx'.
>> # You can override this for individual skins.
>> unit_system = metric
>> 
>> # Where the skins reside, relative to WEEWX_ROOT
>> SKIN_ROOT = skins
>> 
>> # Where the generated reports should go, relative to WEEWX_ROOT
>> HTML_ROOT = public_html
>> 
>> # The database binding indicates which data should be used in reports.
>> data_binding = wx_binding
>> 
>> # Whether to log a successful operation
>> log_success = True
>> 
>> # Whether to log an unsuccessful operation
>> log_failure = True
>> 
>> # Each of the following subsections defines a report that will be run.
>> # See the customizing guide to change the units, plot types and line
>> # colors, modify the fonts, display additional sensor data, and other
>> # customizations. Many of those changes can be made here by overriding
>> # parameters, or by modifying templates within the skin itself.
>> 
>> [[SeasonsReport]]
>> # The SeasonsReport uses the 'Seasons' skin, which contains the
>> # images, templates and plots for the report.
>> skin = Seasons
>> enable = true
>> 
>> [[SmartphoneReport]]
>> # The SmartphoneReport uses the 'Smartphone' skin, and the images 
>> and
>> # files are placed in a dedicated subdirectory.
>> skin = Smartphone
>> enable = false
>> HTML_ROOT = public_html/smartphone
>> 
>> [[MobileReport]]
>> # The MobileReport uses the 'Mobile' skin, and the images and 
>> files
>> # are placed in a dedicated subdirectory.
>> skin = Mobile
>> enable = false
>> HTML_ROOT = public_html/mobile
>> 
>> [[StandardReport]]
>> # This is the old "Standard" skin. By default, it is not enabled.
>> skin = Standard
>> enable = false
>> 
>> [[FTP]]
>> # FTP'ing the results to a webserver is treated as just another 
>> report,
>> # albeit one with an unusual report generator!
>> skin = Ftp
>> 
>> # If you wish to use FTP, set "enable" to "true", then
>> # fill out the next four lines.
>> # Use quotes around passwords to guard against parsing errors.
>> enable = false
>> user = replace_me
>> password = replace_me
>> server = replace_me# The ftp server name, e.g, 
>> www.myserver.org
>> path = replace_me# The destination directory, e.g., /weather
>> 
>> # Set to True for an FTP over TLS (FTPS) connection. Not all 
>> servers
>> # support this.
>> secure_ftp = False
>> 
>> # To upload files from something other than what HTML_ROOT is set
>> # to above, specify a different HTML_ROOT here.
>> #HTML_ROOT = public_html
>> 
>> # Most FTP servers use port 21
>> port = 21
>> 
>> # Set to 1 to use passive mode, zero for active mode
>> passive = 1
>> 
>> [[RSYNC]]
>> # rsync'ing to a webserver is treated as just another report
>> skin = Rsync
>> 
>> # If you wish to use rsync, you must configure passwordless s

Re: [weewx-user] Bug in skin localization / units

2021-11-10 Thread itec
]
# Uncommenting the following section frequently results in more
# attractive formatting of times and dates, but may not work in
# your locale.
TimeFormats
# day= %H:%M
# week   = %H:%M on %A
# month  = %d-%b-%Y %H:%M
# year   = %d-%b-%Y %H:%M
# rainyear   = %d-%b-%Y %H:%M
# current= %d-%b-%Y %H:%M
# ephem_day  = %H:%M
# ephem_year = %d-%b-%Y %H:%M

[[[Labels]]]
# Users frequently change the labels for these observation types
Generic
# inHumidity = Inside Humidity
# inTemp = Inside Temperature
# outHumidity= Outside Humidity
# outTemp= Outside Temperature
# extraTemp1 = Temperature1
# extraTemp2 = Temperature2
# extraTemp3 = Temperature3

##

Il giorno mercoledì 10 novembre 2021 alle 17:31:25 UTC+1 tke...@gmail.com 
ha scritto:

> Please post the *entire* section [StdReport].
>
>
>
> On Wed, Nov 10, 2021 at 8:28 AM itec  wrote:
>
>> Hi.
>> I cloned and installed the developement repository from git.
>> version = 4.6.0b7
>>
>> [StdReport]
>>
>> # Which language to use. Not all skins support all languages.
>> # You can override this for individual skins.
>> lang = en
>>
>> # Which unit system to use. Choices are 'us', 'metric', or 'metricwx'.
>> # You can override this for individual skins.
>> unit_system = metric
>>
>>
>> Thanks
>> itec
>> Il giorno mercoledì 10 novembre 2021 alle 17:21:26 UTC+1 tke...@gmail.com 
>> ha scritto:
>>
>>> 1. What version of the code are you using? Straight out of the git 
>>> repository? Or, one of the beta versions?
>>>
>>> 2. Please post your [StdReport] section from weewx.conf.
>>>
>>>
>>>
>>> On Wed, Nov 10, 2021 at 4:41 AM itec  wrote:
>>>
>>>> Hi.
>>>> I'm testing weewx developement.
>>>> In weewx.conf file, when I set unit_system = metric, units doesn't 
>>>> change.
>>>> I have to set lang = it.
>>>> It seems that unit_system is overridden by lang setting.
>>>> Could you please check?
>>>>
>>>> itec
>>>>
>>>> -- 
>>>> 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/10c587ca-1e30-47a6-a5ba-c6d620606c57n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/10c587ca-1e30-47a6-a5ba-c6d620606c57n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> 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/02bb631b-796e-41ae-866c-77d61b3546b3n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/02bb631b-796e-41ae-866c-77d61b3546b3n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/d7249a33-d986-4fb2-8a63-82bee95a3ea1n%40googlegroups.com.


Re: [weewx-user] Bug in skin localization / units

2021-11-10 Thread itec
Hi.
I cloned and installed the developement repository from git.
version = 4.6.0b7

[StdReport]

# Which language to use. Not all skins support all languages.
# You can override this for individual skins.
lang = en

# Which unit system to use. Choices are 'us', 'metric', or 'metricwx'.
# You can override this for individual skins.
unit_system = metric


Thanks
itec
Il giorno mercoledì 10 novembre 2021 alle 17:21:26 UTC+1 tke...@gmail.com 
ha scritto:

> 1. What version of the code are you using? Straight out of the git 
> repository? Or, one of the beta versions?
>
> 2. Please post your [StdReport] section from weewx.conf.
>
>
>
> On Wed, Nov 10, 2021 at 4:41 AM itec  wrote:
>
>> Hi.
>> I'm testing weewx developement.
>> In weewx.conf file, when I set unit_system = metric, units doesn't change.
>> I have to set lang = it.
>> It seems that unit_system is overridden by lang setting.
>> Could you please check?
>>
>> itec
>>
>> -- 
>> 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/10c587ca-1e30-47a6-a5ba-c6d620606c57n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/10c587ca-1e30-47a6-a5ba-c6d620606c57n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/02bb631b-796e-41ae-866c-77d61b3546b3n%40googlegroups.com.


[weewx-user] Bug in skin localization / units

2021-11-10 Thread itec
Hi.
I'm testing weewx developement.
In weewx.conf file, when I set unit_system = metric, units doesn't change.
I have to set lang = it.
It seems that unit_system is overridden by lang setting.
Could you please check?

itec

-- 
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/10c587ca-1e30-47a6-a5ba-c6d620606c57n%40googlegroups.com.


Re: [weewx-user] Seasons report all time

2021-10-21 Thread itec

>
> firsy need to install the xstats extension of weewx. 
>

Wow, this is amazing!
I can create a new extension, and xstats is a good base.
What I can't undestand is how to set the right time_length in order to 
create graphs with imagegenerator.
itec

-- 
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/24e77c42-0a86-4fdd-b92d-4c594c8ad964n%40googlegroups.com.


Re: [weewx-user] Seasons report all time

2021-10-21 Thread itec

>
> To create a tag similar to $year, but works for ten years, you will have 
> to create a search list extension.The *Customizing Guide* has an example 
> of how to do this. See the section *Extending the list 
> <http://www.weewx.com/docs/customizing.htm#extending_the_list>*. 

I found that "alltime" example is exactly what I was looking for.
I'll try to add it in a user script.
Do you think it would be useful to add it in the main code, exacly like 
$year field?

How can I use alltime to set "time_length" correctly in skin.conf?

thanks
itec

-- 
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/ae07335c-fcb9-4c17-93ff-5d0d07dc76een%40googlegroups.com.


[weewx-user] Seasons report - Hide some data

2021-10-21 Thread itec
Hi.
I'd like to hide some data in the Seasons report: Inside Temperature, 
Inside Humidity and Signal quality should not be published on my site
I can do it in 3 ways:
1 - Deleting data from db and setting [[Corrections]] in config to set new 
values to NULL
2 - Removing graphs from Seasons skin
3 - Changing skin in order to show/hide graphs based on a varible I can set 
in config

What do you think it would be the better way to do it?

Thanks
itec

-- 
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/348694a7-486f-4143-93d8-da6622f1a18an%40googlegroups.com.


[weewx-user] Seasons report all time

2021-10-21 Thread itec
Hi all.
I'm trying to add a new panel to seasons report.
I found I have more than 10 years of data, I think it would be useful to 
graph all the data available.
I don't know how to set the "time_length" parameter to get all the period 
time.
"#if $year.UV.has_data" shoud be changed also, but I didn't find a variable 
for all the time.

Now I tested it with fixed time:
[[10year_images]]
x_label_format = %Y
bottom_label_format = %x %X
time_length = 31536000 # 3650 days
aggregate_type = avg
aggregate_interval = week
show_daynight = false

Thanks
itec

-- 
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/8ddef76b-7ea6-40fc-b817-29c1a9aeae20n%40googlegroups.com.


Re: [weewx-user] Database merged - Wview e weewx

2021-10-21 Thread itec
Hi.
What do you mean for "This unfortunately doesn't works correctly."? What's 
wrong?
I think that decimals are not important.
Have you tried to run "wee_database --drop-daily" and "wee_database 
--rebuild-daily"?
Then delete /var/www/html/weewx/ and run "wee_reports" to regenerate all 
reports

Il giorno domenica 10 ottobre 2021 alle 22:05:50 UTC+2 kha...@gmail.com ha 
scritto:

> hi,
> when i started to use weewx i used a new database. Few months later i 
> merged two database.
>
> Il giorno lunedì 4 ottobre 2021 alle 17:24:35 UTC+2 tke...@gmail.com ha 
> scritto:
>
>> Hello, and welcome to weewx.
>>
>> I don't know what I'm looking at. What do the red lines mean?
>>
>> What do you mean by you merged "the old database with the new one"? There 
>> is no difference between the wview and weewx databases. You should be able 
>> to just copy over the old database to the weewx installation.
>>
>> Did you read the section *Compatibility with wview 
>> * in the 
>> User's Guide?
>>
>> On Mon, Oct 4, 2021 at 8:18 AM kha...@gmail.com  wrote:
>>
>>> Hello,
>>> until to late 2017 i used wview and then weewx.
>>> When i switched to weewx i merged the old database with the new one.
>>> This unfortunately doesn't works correctly.
>>> Now i'd like to recover the old data (database is very big, more than 
>>> 170mb).
>>> Checking the differences between the two DB,  biggest difference seems 
>>> the decimal. 
>>> Could be the problem?
>>> Is possibile to fix it?
>>> Thanks in advance!
>>>
>>> -- 
>>> 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/fb76f0f2-cc79-4b2a-ae16-c058caa848f4n%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/85173544-09e7-4646-8ca1-e6540089f40cn%40googlegroups.com.