Thanks for the explanation.

I had target_report = SeasonsReport, and there are 2 unit definitions for 
some.
                 km_per_hour =% .0f
                 km_per_hour2 =% .1f
                 knot =% .0f
                 knot2 =% .1f
                meter_per_second = %.1f
                meter_per_second2 = %.1f
                mile_per_hour = %.0f
                mile_per_hour2 = %.1f

  I have now redefined target_report = LoopDataReport, now it works as 
desired

Am Mittwoch, 12. August 2020 14:56:16 UTC+2 schrieb John Kline:
>
> > Where can I find a description of what a “Rain Year” is?
>
> By default, rainyear is the same as year.  It’s the 12-month period for 
> which the cumulative rain amount is measured.
> See: https://en.wikipedia.org/wiki/Water_year
> To set the rain year, see:  
> http://weewx.com/docs/usersguide.htm#rain_year_start
>
> > Where and how can I set that $wind.rms.formatted and 
> $windGust.max.formatted have a decimal place at km / h?
>
> I’m assuming you mean <period>.rms.formatted and 
> <period>.windGust.max.formatted (where <period> is 10m, day, week, month, 
> year or rainyear).
>
> Also assuming you want to see one decimal position in these values.
>
> In the LoopDataReport section of weewx.conf, there is already 1 decimal 
> place specified for km_per_hour (“%.1f”), unless you have changed it:
>        [[[Units]]]
>             [[[[StringFormats]]]]
>                 mile_per_hour = %.1f
>                 degree_C = %.1f
>                 km_per_hour = %.1f
>                 degree_F = %.1f 
>
> I suspect you have a different target report specified:
> Let’s imagine your [LoopData] section looks like this where the 
> target_report is WeatherBoardReport:
>
> [LoopData]
>     [[FileSpec]]
>         loop_data_dir = /home/weewx/gauge-data
>         filename = loop-data.txt
>     [[Formatting]]
>         target_report = WeatherBoardReport
>
> In this case, you would to specify the decimal for km_per_hour under 
> WeatherBoardReport, since that is the report you have specified for 
> conversion and formattting.  You would want that report to specify the 
> decimal place for km_per_hour.
>
> [[WeatherBoardReport]]
>        [[[Units]]]
>             [[[[StringFormats]]]]
>                 km_per_hour = %.1f
>
>
> On Aug 11, 2020, at 11:01 PM, Geni 0815 <geni08...@gmail.com <javascript:>> 
> wrote:
>
> 
> Hi John, Thanks for the new version.
> I still have the following questions:
> Where can I find a description of what a "Rain Year" is?
> Where and how can I set that $wind.rms.formatted and 
> $windGust.max.formatted also have a decimal place at km / h?
> Current Livelink <https://affolter.familyds.net/wetter/loopdata/>
>
> Am Mittwoch, 12. August 2020 03:20:18 UTC+2 schrieb John Kline:
>>
>> OK, I found the issue.  My tests simulate running weewx and processing 
>> packets.  The issue was at startup where I use daily summaries to create 
>> accumulators for day, week, year and rainyear.  That code was missing the 
>> first daily summary of each of these periods.
>>
>> I’ve fixed this issue in v2.7.  Please give it a try.
>>
>> On Aug 11, 2020, at 9:41 AM, John Kline <jo...@johnkline.com> wrote:
>>
>> 
>> It does not look like you have installed from head on github.
>>
>> Go to this page:
>>
>> https://github.com/chaunceygardiner/weewx-loopdata
>>
>> Click “Code” and then click download zip.  Install that zip file.
>>
>> When you do that, after time_delta in the log, you should see week_start 
>> and rainyear_start.
>>
>> On Aug 11, 2020, at 9:37 AM, Geni 0815 <geni08...@gmail.com> wrote:
>>
>> 
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> tmpname            : /tmp/LoopDataz7h4ntn0
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> enable             : 0
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> remote_server      : www.foobar.com
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> remote_port        : None
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> remote_user        : root
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: remote_dir   
>>       Af: /home/weewx/loop-data
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> compress           : 0
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> log_success        : 0
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> ssh_options        : -o ConnectTimeout=1
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> timeout            : 1
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> skip_if_older_than : 3
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> time_delta         : 10800
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> trend_obstypes     : ['barometer', 'outTemp']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> rainyear_obstypes  : ['outTemp', 'wind', 'windSpeed', 'windDir', 
>> 'windGust', 'windGustDir', 'rain']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> year_obstypes      : ['outTemp', 'wind', 'windSpeed', 'windDir', 
>> 'windGust', 'windGustDir', 'rain']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> month_obstypes     : ['wind', 'windSpeed', 'windDir', 'windGust', 
>> 'windGustDir', 'rain', 'outTemp']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> week_obstypes      : ['wind', 'windSpeed', 'windDir', 'windGust', 
>> 'windGustDir', 'rain', 'outTemp']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> day_obstypes       : ['windGust', 'wind', 'windSpeed', 'windDir', 
>> 'windGustDir', 'rain', 'outTemp']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> ten_min_obstypes   : ['windGust', 'wind', 'windSpeed', 'windDir', 
>> 'windGustDir', 'rain', 'outTemp']
>> Aug 11 18:05:41 Wetter-Raspi weewx[1211] INFO user.loopdata: 
>> baro_trend_descs   : {<BarometerTrend.RISING_VERY_RAPIDLY: 1>: 'Rising Very 
>> Rapidly', <BarometerTrend.RISING_QUICKLY: 2>: 'Rising 
>>
>> Am Dienstag, 11. August 2020 18:12:01 UTC+2 schrieb John Kline:
>>>
>>> OK, before we look at the daily summaries in your database, please 
>>> install loopdata at head.  I’ve added logging for week_start and 
>>> rainyear_start at startup.  Let’s make sure that the extension thinks 
>>> week_start is 0.  Install the the extension. Restart weewx and then paste 
>>> in the lines from the log.  They should look something like this:
>>> Aug 11 09:09:14 ella weewx[5404] INFO user.loopdata: week_start         
>>> : 0
>>> Aug 11 09:09:14 ella weewx[5404] INFO user.loopdata: rainyear_start     
>>> : 1
>>>
>>> On Aug 11, 2020, at 8:49 AM, geni08...@gmail.com <geni08...@gmail.com> 
>>> wrote:
>>>
>>>  week_start = 0
>>>
>>> jo...@johnkline.com schrieb am Dienstag, 11. August 2020 um 16:08:18 
>>> UTC+2:
>>>
>>>> When does your week start?
>>>>
>>>> You should see something like this is weewx.conf:
>>>>     # Start of week (0=Monday, 6=Sunday)
>>>>     week_start = 6
>>>>
>>>> What value do you have for week_start?
>>>>
>>>> On Aug 11, 2020, at 3:20 AM, geni08...@gmail.com <geni08...@gmail.com> 
>>>> wrote:
>>>>
>>>> I found a syntax.
>>>>
>>>>
>>>> Question: for example "Hi Out Temp, week", shouldn't it be the highest 
>>>> temp since Monday? But this is not true for me! Why?
>>>>
>>>> geni08...@gmail.com schrieb am Dienstag, 11. August 2020 um 10:57:03 
>>>> UTC+2:
>>>>
>>>>> @John: I installed version 2.6.
>>>>> how do i get the values:
>>>>>     <td id='$(archive[1]).outTemp.max.formatted' 
>>>>> style='white-space:pre;'></td>
>>>>>     <td id='$(archive[1]).outTemp.min.formatted' 
>>>>> style='white-space:pre;'></td>
>>>>>     <td id='$(archive[1]).wind.rms.formatted' 
>>>>> style='white-space:pre;'></td>
>>>>>     <td id='$(archive[1]).windGust.max.formatted' 
>>>>> style='white-space:pre;'></td>
>>>>>     <td id='$(archive[1]).rain.sum.formatted' 
>>>>> style='white-space:pre;'></td>
>>>>
>>>> -- 
>>>> 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/282de9d8-ff84-4c29-b302-2893aded408fn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/282de9d8-ff84-4c29-b302-2893aded408fn%40googlegroups.com?utm_medium=email&utm_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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/40bdd07b-16f1-4413-b532-05222b4a8b5en%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/40bdd07b-16f1-4413-b532-05222b4a8b5en%40googlegroups.com?utm_medium=email&utm_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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/19d7ca5f-76a7-4df4-9249-d5931cd15f6eo%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/19d7ca5f-76a7-4df4-9249-d5931cd15f6eo%40googlegroups.com?utm_medium=email&utm_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...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/97674298-ca29-40a9-a2f1-eae84d93f8f2o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/97674298-ca29-40a9-a2f1-eae84d93f8f2o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <loop-data.txt>
>
>

-- 
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/123d55ea-e969-4205-b93c-001e91c7c6fdo%40googlegroups.com.

Reply via email to