On Thursday, February 9, 2017 at 6:54:19 PM UTC-5, Thomas Carlin wrote:
>
> I would like to be able to create images with the same data value, but 
> from multiple time ranges. For the yearly say, have the last 365 days as 
> one line, but then have another line that has the same date range, but from 
> 1 year ago.  Is something like this possible with the current image 
> generator?
>
> I would also like to be able to generate historic graphs.  Is there a way 
> to do this historically, and moving forward, so next year I can look at 
> this February's graph?
>

unfortunately there is not (yet) a mechanism to do this.

it would be nice if you could specify (time_start, time_length) or 
(time_start, time_end) or (time_length, time_end).  and the plot generator 
should be smart enough to know that any plot whose time parameters are not 
a function of 'now' only needs to be generated once.

perhaps it could look something like this:

[ImageGenerator]
    ...
    [[yesterday_images]] # like day_images, but for 24 hour period up to 24 
hours ago
        time_length = 86400
        time_end = now - 86400
        ...
    [[last_year_images]]
        time_length = 31536000 # one year
        time_start = 1451606400 # 1 january 2016
        ...

so time_start and time_end must be an epoch or a 'now' expression.  a 'now' 
expression is now plus or minus some offset, in seconds.

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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to