Page 1 of 2
THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 3:34 pm
by freddie
As per the title. I hadn't noticed this myself, but user mdlawler did. So I checked my site and it too always appears to read 0.0. Any thoughts? We're both running build 3121.
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 4:29 pm
by ConligWX
looks like there maybe a bug. CumulsuMX reporting 0.0 here but weatherlink reporting 1.4 this is with 3.10.5 build 3122
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 4:30 pm
by mcrossley
Are you connected direct to your VP2 console, or using a WLL?
The WLL does not support THW or THWS.
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 4:31 pm
by ConligWX
WLL here. though weatherlink is reporting THW. perhaps it is calculated at weatherlink.com
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 4:52 pm
by freddie
mcrossley wrote: ↑Tue 06 Apr 2021 4:30 pm
Are you connected direct to your VP2 console, or using a WLL?
The WLL does not support THW or THWS.
I'm connected directly to the VP2 console. Michael has a third party logger.
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 4:57 pm
by mcrossley
Looks like there is a typo in websitedataT.json.
Line 58 should be..
Currently it has a lowercase "i"
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 5:12 pm
by freddie
mcrossley wrote: ↑Tue 06 Apr 2021 4:57 pm
Looks like there is a typo in websitedataT.json.
Line 58 should be..
Currently it has a lowercase "i"
I just changed my copy of websitedataT.json - now I have no data at all next to THW.
https://www.hosiene.co.uk/weather-mx-test/
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 5:26 pm
by mcrossley
You need to make the corresponding change to index.htm.
Line 126...
Code: Select all
<td><span data-cmxdata="THWIndex"></span></td>
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 5:47 pm
by freddie
Thanks Mark. I did that and now have "undefined" appearing next to the THW label.
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 6:44 pm
by ConligWX
freddie wrote: ↑Tue 06 Apr 2021 5:47 pm
Thanks Mark. I did that and now have "undefined" appearing next to the THW label.
there is no value for THWindex in the websitedata.json file on your website.
check the websitedataT.json template has the correct TAG name.
Line 58
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 6:47 pm
by ConligWX
plus looking at your websitedata.json its an hour old.
is CumulusMX running?
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 6:55 pm
by freddie
ConligWX wrote: ↑Tue 06 Apr 2021 6:47 pm
plus looking at your websitedata.json its an hour old.
is CumulusMX running?
I run on UTC

Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 7:02 pm
by freddie
ConligWX wrote: ↑Tue 06 Apr 2021 6:44 pm
freddie wrote: ↑Tue 06 Apr 2021 5:47 pm
Thanks Mark. I did that and now have "undefined" appearing next to the THW label.
there is no value for THWindex in the websitedata.json file on your website.
check the websitedataT.json template has the correct TAG name.
Line 58
If you look earlier in this topic you can see that Mark asked me to change my template away from this suggestion to use #THWIndex (note the capital "I")
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 7:13 pm
by ConligWX
freddie wrote: ↑Tue 06 Apr 2021 7:02 pm
ConligWX wrote: ↑Tue 06 Apr 2021 6:44 pm
freddie wrote: ↑Tue 06 Apr 2021 5:47 pm
Thanks Mark. I did that and now have "undefined" appearing next to the THW label.
there is no value for THWindex in the websitedata.json file on your website.
check the websitedataT.json template has the correct TAG name.
Line 58
If you look earlier in this topic you can see that Mark asked me to change my template away from this suggestion to use #THWIndex (note the capital "I")
look at the CumulsuMX Webtags, which I generate from CumulusMX each time I start the program shows
so changing to THWIndex will make the tag null and void. Unless Mark can tell me otherwise. the attached file was created today with 3.10.5 build 3122
Re: THW index always reads 0.0 on default site
Posted: Tue 06 Apr 2021 7:30 pm
by mcrossley
Hmm, I must have misread the src code, could have sworn it was a capital I, but no it looks like it was correct with a lower case.
I'll have a look later and see if I can see anything causing it to be zero. Any idea how long it c has been reporting zero? I don't recall the VP2 code changing in some time.