Page 1 of 1
Min Max not updating
Posted: Mon Dec 18, 2017 2:11 pm
by jay_hoehn
Well this seems to have been a problem with meteotemplateLive.txt being in the wrong format. Not sure how it happened but I deleted the file and had MeteoTemplate recreate it and all seems good. I will keep an eye on it.
I have WeeWx set up and running. But the Min and Max Temperature seems to be stuck. The current temp in the API works fine but the database uploads min and max are wrong. Where might I look to fix this?
Jay
http://www.jayswoodfurniture.com/meteo/indexDesktop.php
Re: Min Max not updating
Posted: Tue Dec 19, 2017 1:17 am
by wx_jon
Do you mean that Tmax = Tmin = T? Does wind and wind gust work correctly? I compared your api caches to mine and they look perfectly normal, so I'd be inclined to think it's a server or Meteotemplate issue, not weeWX.
Re: Min Max not updating
Posted: Tue Dec 19, 2017 6:51 pm
by jay_hoehn
Jon,
I'm not sure what caused the issue, but it looked like the meteotemplateLive.txt was being created wrong. I wish I would have saved a copy of that and looked at it more carefully. Once I deleted it off the server and had MeteoTemplate recreate it then all was fine. Maybe an issue with switching from Weather Display. Anyway all is working now.
Thanks,
Jay
Re: Min Max not updating
Posted: Thu Dec 21, 2017 10:52 am
by Luc
Hi Jay,
The weewx meteotemplate uploader has two options:
1. Send loop data
Current values are sent as soon as they are received from the weather station
No Tmin and Tmax are sent because these values are not provided by the weather station.
2. Send archive data each archive interval (default 5 minutes)
Weewx calculates Tmin and Tmax and sent these values to meteotemplate.
Hope this helps.
Luc
Re: Min Max not updating
Posted: Thu Dec 21, 2017 11:01 am
by Luc
Hi Jay,
I just realized what happened.
There is a problem with the automatic deletion of old values in the life data. Will be fixed in the next release of MT.
So, when you changed from weewx archive data to weewx loop data, the old Tmin and Tmax values of the archive option stayed in the life data.
Deleting once the life file is the current work-around (which you already did).
Sorry that I didn't think of this before.
Cheers,
Luc
Re: Min Max not updating
Posted: Thu Dec 21, 2017 1:23 pm
by jay_hoehn
Luc,
We'll I'm glad that you were able to see the issue. It was a small problem that I wish I would have seen quickly instead of two days later. I am going back and correcting the entries in the database and when that is done everything will be ok. Thanks for looking at the issue. So far Weewx is working great with MeteoTemplate.
Thanks,
Jay
Re: Min Max not updating
Posted: Thu Dec 21, 2017 6:58 pm
by wx_jon
Luc, that is interesting because I know that in my initial setup I did the same as Jay, switch from archive to loop, and never noticed a problem (I don't recall deleting Live.txt). Right now I have weeWX send both loop and archive, and I see no Tmin/Tmax in Live.txt...
Re: Min Max not updating
Posted: Thu Dec 21, 2017 8:55 pm
by Luc
Hi Jon,
Discarding old live data used to work in MT but got broken in a newer version.
It will be fixed in the next release.
You noticed no values of Tmin and Tmax in the live data, so I checked my system.
You are right and I think I'm getting (too) old.

I always thought the weewx uploader for MT and also the weewx export utility for MT contained Tmin and Tmax, (in some versions of some utilities it used to be!) but looking at the current version I noticed they are not.
This leaves me totally puzzled! No hairs left on my head to pull either! Where are the Tmin and Tmax values of Jay's system come from?
Luc