Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Davis Webtags returning 0 value

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Davis Webtags returning 0 value

Post by flort »

Hi,

This afternoon I upgraded to Build 3169 and noticed that 2 of my Davis webtags for my ISS are now returning a 0 value -

"DavisReceptionPercent":"<#DavisReceptionPercent>", results in "DavisReceptionPercent":"0",
"DavisTxRssi1":"<#DavisTxRssi tx=1>", results in "DavisTxRssi1":"0",

Strangely enough it is still getting a Rssi value for the WLL -

"DavisTxRssi0":"<#DavisTxRssi tx=0>", results in "DavisTxRssi0":"-50",

Is anyone else having an issue with this?

Regards,
Trevor
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

Any thoughts Mark? I haven't changed anything and they were working this morning.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

Are you using the Vue or the WLL to feed MX?
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

WLL is feeding MX. I don't have a console.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

Can you have a look in your MXdiags file around the quarter hours to see if there are any errors?
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Davis Webtags returning 0 value

Post by SJG1976 »

Mine seems ok as well

You can see mine at

Https://cm2weather.co.uk/tags2.php

I think I'm still missing some tags but it gives you an idea.
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Davis Webtags returning 0 value

Post by SJG1976 »

Oops.

Sorry, just noticed the build version.
I'm still a few behind.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

Hi Mark,

There are no errors in the MXDiags file (attached). I've proved it's nothing to do with the new Build as I rolled back to my previous Build and still return 0 values for both of those readings. I also tried turning off my WLL but the issue still persists.

Any ideas as these were being populated up until yesterday morning?

Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

The requests to get health data from wl.com are working so no. Switch on data logging for a good half hour to catch a couple of health data requests and post the log file again please.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

Hi Mark,

I switched on data logging for just over 30 minutes. File is attached. Hope you can find something in there to shed some light on what is going on.

Regards,
Trevor
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

Yes, so as expected wl.com is sending the health data.

But from the log file I can see the issue appears to be how you are consuming them.

Are you referring to them being zero in your CMX local API request...

Code: Select all

?DavisTotalPacketsReceived&DavisTotalPacketsMissed&DavisMaxInARow&DavisNumCRCerrors&txbattery
This would have been useful to know ;)

- DavisTotalPacketsReceived : is not used by the WLL
- DavisTotalPacketsMissed : this requires a "tx" parameter, with no parameter it defaults to 0 which is the VP2 value
- DavisMaxInARow/DavisNumCRCerrors : these also require a "tx" parameter, with no parameter it defaults to 0 which is the VP2 value

If you want values for those web tags from the local API then you will have to use the POST method with a body where you can specify parameters not the GET method.

Also, you are requesting the values every 2 seconds, as they only update every 15 minutes there isn't much point in doing that!
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

Hi Mark,

The only place where I am requesting the values is in websitedata.json which updates at the realtime interval of 60 seconds. These are the health data lines I have in that file to populate my website -

"OsVersion":"<#OsVersion>",
"SystemUpTime":"<#SystemUpTime>",
"CPUTemp":"<#CPUTemp>",
"DavisReceptionPercent":"<#DavisReceptionPercent>",
"DavisFirmwareVersion":"<#DavisFirmwareVersion>",
"DavisTxRssi0":"<#DavisTxRssi tx=0>",
"DavisTxRssi1":"<#DavisTxRssi tx=1>",
"battery":"<#battery>",
"txbattery":"<#txbattery channel=1>",
"ConsoleSupplyV":"<#ConsoleSupplyV>",
"MulticastGoodPct":"<#MulticastGoodPct>",

This is the output from the processed file which I am using directly in my web pages -

"OsVersion":"Unix 5.10.63.7",
"SystemUpTime":"1 days 18 hours",
"CPUTemp":"45.8",
"DavisReceptionPercent":"0",
"DavisFirmwareVersion":"2020-07-30",
"DavisTxRssi0":"-51",
"DavisTxRssi1":"0",
"battery":"5.84",
"txbattery":"OK",
"ConsoleSupplyV":"4.67",
"MulticastGoodPct":"97.01",

So all of the above are returning values except for DavisReceptionPercent and DavisTxRssi1, but they were until a couple of days ago. This is why I'm confused. According to the Wiki these webtags should work exactly as I have them specified.

Also, you say I am requesting the values every 2 seconds but I don't know where that request is coming from. I'm not aware of any setting in the Cumulus Dashboard that refers to requesting health data and I'm not aware of any other changes I've made that would be wanting them at 2 second intervals. I haven't done anything with the local API as I don't understand that side of things very well.

Appreciate your help so far.

Regards,
Trevor
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Davis Webtags returning 0 value

Post by mcrossley »

flort wrote: Wed 02 Feb 2022 11:20 pm
So all of the above are returning values except for DavisReceptionPercent and DavisTxRssi1, but they were until a couple of days ago. This is why I'm confused. According to the Wiki these webtags should work exactly as I have them specified.

Also, you say I am requesting the values every 2 seconds but I don't know where that request is coming from. I'm not aware of any setting in the Cumulus Dashboard that refers to requesting health data and I'm not aware of any other changes I've made that would be wanting them at 2 second intervals. I haven't done anything with the local API as I don't understand that side of things very well.

Appreciate your help so far.

Regards,
Trevor
Hi Tevor,

All I can say is that every couple of seconds something on your network is querying the CMX local API tag processor - nothing that comes with CMX does this.

There are two queries every 2.5 seconds (not 2 seconds). The first one is fetching...

Code: Select all

http://<whatever>:8998/api/tags/process.json?DavisTotalPacketsReceived&DavisTotalPacketsMissed&DavisMaxInARow&DavisNumCRCerrors&txbattery
the other...

Code: Select all

http://<whatever>:8998/api/tag/process.jsons?TempRecordSet&RainRecordSet&PressureRecordSet&WindRecordSet
MX does not log the source address - maybe it should!

As I said above you are fetching the VP2 values for those tags, they will return zero for the WLL, you need to use the tx=n parameter with the WLL as in the wiki.
The tags as they stand would only have returned values when connected to a Vue/VP2.
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: Davis Webtags returning 0 value

Post by flort »

Hi Mark,

Thanks for the response. I have no idea what is querying the CMX local API tag processor. The only things accessing the WLL is CMX and the WLL app. It is sending data to Weather Underground but that is only every 5 minutes.
As I said above you are fetching the VP2 values for those tags, they will return zero for the WLL, you need to use the tx=n parameter with the WLL as in the wiki.
The tags as they stand would only have returned values when connected to a Vue/VP2.
Isn't that what I'm doing with "DavisTxRssi1":"<#DavisTxRssi tx=1>"?

Regards,
Trevor
Post Reply