sounds much better to say recorded or listed undocumented features!!!


On Monday, 4 February 2019 16:27:02 UTC+2, Thomas Keffer wrote:
>
> Sounds like an oxymoron: documented undocumented features.
>
> -tk
>
> On Mon, Feb 4, 2019 at 6:25 AM Andrew Milner <[email protected] 
> <javascript:>> wrote:
>
>> Tom
>> It would be lovely to have all the undocumented, unsupported, untested 
>> gems gathered together somewhere - so that at least they are recorded in 
>> one place!!!!!
>>
>>
>>
>> On Monday, 4 February 2019 15:37:50 UTC+2, Thomas Keffer wrote:
>>>
>>> The $current object has an undocumented feature that allows a timestamp 
>>> to be specified. It looks something like this (NOT TESTED):
>>>
>>> #set $yesterday=$current.dateTime.raw - 86400
>>> <p>The temperature 24 hours ago was 
>>> $current(timestamp=$yesterday).outTemp </p>
>>>
>>> Because a timestamp 24 hours ago may not fall precisely on when a record 
>>> is available, the feature also allows a "max delta" to be specified. A 
>>> record that falls within max_delta is considered "good enough." So, if 
>>> you're willing to accept anything within 10 minutes, the template would 
>>> look like:
>>>
>>> <p>The temperature approximately 24 hours ago was 
>>> $current(timestamp=$yesterday, max_delta=600).outTemp </p>
>>>
>>> Note that this is undocumented, unsupported, and untested. It's a little 
>>> clumsy, so it's also likely to change at some future point. Still, I'd be 
>>> interested in your experience using it.
>>>
>>> -tk
>>>
>>> On Mon, Feb 4, 2019 at 5:08 AM phopwooduk via weewx-user <
>>> [email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>>  
>>>>
>>>> I am new here and this is my first post.
>>>>
>>>>  
>>>>
>>>> I am using a modified version of the NeoWx skin, I would like to show 
>>>> Temperature at this time yesterday.  I can see there are methods for 
>>>> showing aggregation of values min, max etc in the past.  But I can only 
>>>> see 
>>>> how to get down to a resolution of 1 hour.  
>>>>
>>>>  
>>>>
>>>> So the question is, is it possible to show the temperature this time 24 
>>>> hours ago, or the nearest value to 24 hours ago, if it is possible how 
>>>> would I do this.
>>>>
>>>>  
>>>>
>>>> All the best.
>>>>
>>>> Peter
>>>>
>>>> -- 
>>>> 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.
>>>>
>>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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