Re: [weewx-user] Seasons report all time

2021-10-21 Thread gjr80
Hi,

Unfortunately time_length can only be set in skin.conf or overriden from 
weewx.conf. and consequently there is no ability to dynamically set 
time_length.

Gary 

On Friday, 22 October 2021 at 08:38:27 UTC+10 itec wrote:

> 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/b0678a82-e879-41db-a755-5110eedd9b61n%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 Δημήτρης Βήχος
my aproach to this .

in my page i was replace in seasons skin in statistics page the "rain year" 
column with "all time records"  . thinking the "rain year" from the "year" 
statistics difrrents only in rain and all rest prices are the same.

firsy need to install the xstats extension of weewx. 

then need to replace the  statistics.inc page . in my case of course all 
the labes are in greek. this easily change

## statistics module for weewx skins
## Copyright Tom Keffer, Matthew Wall
## See LICENSE.txt for your rights
#errorCatcher Echo
#encoding UTF-8

#set $archive_data = [$day, $week, $month, $year, $alltime]


  
Στατιστικά Σταθμού
  
  


  

  
  
  Ημέρας
  Εβδομάδας
  Mήνα
  Ετους
  Aπό την αρχή


  $obs.label.outTemp
  $unit.label.outTemp
  #for $archive in $archive_data
  $archive.outTemp.max.format(add_label=False)
$archive.outTemp.maxtime
$archive.outTemp.min.format(add_label=False)
$archive.outTemp.mintime
  
  #end for


  $obs.label.heatindex
  $unit.label.heatindex
  #for $archive in $archive_data
  $archive.heatindex.max.format(add_label=False)
$archive.heatindex.maxtime
  
  #end for


  $obs.label.windchill
  $unit.label.windchill
  #for $archive in $archive_data
  $archive.windchill.min.format(add_label=False)
$archive.windchill.mintime
  
  #end for


  $obs.label.dewpoint
  $unit.label.dewpoint
  #for $archive in $archive_data
  $archive.dewpoint.max.format(add_label=False)
$archive.dewpoint.maxtime
$archive.dewpoint.min.format(add_label=False)
$archive.dewpoint.mintime
  
  #end for


  $obs.label.outHumidity
  $unit.label.outHumidity
  #for $archive in $archive_data
  $archive.outHumidity.max.format(add_label=False)
$archive.outHumidity.maxtime
$archive.outHumidity.min.format(add_label=False)
$archive.outHumidity.mintime
  
  #end for


  $obs.label.barometer
  $unit.label.barometer
  #for $archive in $archive_data
  $archive.barometer.max.format(add_label=False)
$archive.barometer.maxtime
$archive.barometer.min.format(add_label=False)
$archive.barometer.mintime
  
  #end for


  $obs.label.rain
  $unit.label.rain
  #for $archive in $archive_data
  $archive.rain.sum.format(add_label=False)
  #end for


  $obs.label.rainRate
  $unit.label.rainRate
  #for $archive in $archive_data
  
$archive.rainRate.max.format(add_label=False)
$archive.rainRate.maxtime
  
  #end for

#if $day.ET.has_data and $day.ET.sum.raw > 0.0
  
  $obs.label.ET
  $unit.label.ET
  #for $archive in $archive_data
  $archive.ET.sum.format(add_label=False)
  #end for
  
#end if

  Mέγιστη Ριπή
  
$unit.label.wind

  
  #for $archive in $archive_data
  
$archive.wind.max.format(add_label=False)
$archive.wind.gustdir.ordinal_compass
$archive.wind.maxtime
  
  #end for


  Μέση Ταχύτητα Αέρα
  $unit.label.wind
  #for $archive in $archive_data
  
$archive.wind.avg.format(add_label=False)
  #end for


  Αέρα RMS
  $unit.label.wind
  #for $archive in $archive_data
  $archive.wind.rms.format(add_label=False)
  #end for



  
Μέσο Διάνυσμα
Μέση Διέυθυνση
  
  
$unit.label.wind

  
  #for $archive in $archive_data
  
$archive.wind.vecavg.format(add_label=False)
$archive.wind.vecdir.ordinal_compass
  
  #end for


#if $day.UV.has_data

  $obs.label.UV
  $unit.label.UV
  #for $archive in $archive_data
  
$archive.UV.max.format(add_label=False)
$archive.UV.maxtime
$archive.UV.min.format(add_label=False)
$archive.UV.mintime
  
  #end for

#end if

#if $day.radiation.has_data

  $obs.label.radiation
  $unit.label.radiation
  #for $archive in $archive_data
  
$archive.radiation.max.format(add_label=False)
   

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 
> *. 

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.


Re: [weewx-user] Seasons report all time

2021-10-21 Thread Tom Keffer
That should work, although, of course, you have to specify what you want
plotted. Something like:

[[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



*[[[10yeartempdew]]]outTemp
dewpoint*

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
*.


On Thu, Oct 21, 2021 at 5:40 AM itec  wrote:

> 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
> 
> .
>

-- 
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/CAPq0zEC7D%3D-M7yw2%3D81%3D%2BZWLQp5RF04hajQmfQ9g6JK9fA1jrw%40mail.gmail.com.