OK, I think I have it. There a re a few 'formatting' rules we need to
follow in gauge-date.txt.tmpl:
1. in gauge-data.txt.tmpl change the following line (circa line 281):
"dateFormat":"y.m.d h:m",
to
"dateFormat":"y/m/d",
2. LastRainTipISO needs to consist of date followed by one or more spaces
then time.
3. LastRainTipISO time needs to be formatted as %H:%M
4. LastRainTipISO date needs to be in y m d order and the individual y m d
elements need to be separated by a / or -
5. LastRainTipISO date individual elements need to be numeric
So something like:
$last_rain.format("%Y-%m-%d %H:%M")
should work.
Gary
On Friday, 10 March 2017 07:35:09 UTC+10, gjr80 wrote:
>
> Yes that is exactly the case, I am just trawling through gauges.js now
> working out how it processes the date. I suspect there will only a be a
> limited number of formats that it will accept.
>
> Gary
>
> On Friday, 10 March 2017 07:10:32 UTC+10, Robert Mantel wrote:
>>
>> Makes me think that there is something in the gauges.js that isn't
>> handling this field correctly?
>>
>> On Thursday, 9 March 2017 16:09:19 UTC-5, Robert Mantel wrote:
>>>
>>> That's the strange thing, is shows the correct date:
>>>
>>> "LastRainTipISO":"07 March 2017 07:56",
>>>
>>> On Thursday, 9 March 2017 14:47:35 UTC-5, gjr80 wrote:
>>>>
>>>> Ok, just noticed you said 'in the top right corner of the plot'. Let's
>>>> forget about the plot and look at the source, gauge-data,txt. Exactly what
>>>> appears in gauge-data.txt against field 'LastRainTipISO'?
>>>>
>>>> Gary
>>>>
>>>
--
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.