Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.8.4 (build 3094) - 14 September 2020 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Statistics DavisVP2+ are not given by webtags API

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

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Statistics DavisVP2+ are not given by webtags API

Post by HansR »

Using the webtag API to display the Davis VP2+ statistics it displays none.
Using logging I can determine the values are not given by the API. It used to work.
Seems to have stopped with build 3093 (not sure).
Below the corresponding debug/Data logging. If you need more, let me know. The data is in the console, I checked the statistics screens.
And it does not work either when using a file testT.txt (attached) and have it processed by CMX.
(no hurry ;) )

Code: Select all

2020-09-08 07:21:00.081 Writing log entry for 8-9-2020 07:21:00
2020-09-08 07:21:00.081 max gust: 12,1
2020-09-08 07:21:00.083 Written log entry for 8-9-2020 07:21:00
2020-09-08 07:21:00.087 Writing today.ini, LastUpdateTime = 8-9-2020 07:21:00 raindaystart = 516 rain counter = 516,2
2020-09-08 07:21:00.497 LOOP: Data - 3: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-16-CC
2020-09-08 07:21:00.497 LOOP: 3 - Data packet is good
2020-09-08 07:21:02.491 LOOP: Data - 4: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-16-CC
2020-09-08 07:21:02.492 LOOP: 4 - Data packet is good
2020-09-08 07:21:04.488 LOOP: Data - 5: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-16-CC
2020-09-08 07:21:04.488 LOOP: 5 - Data packet is good
2020-09-08 07:21:06.472 LOOP: Data - 6: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-16-CC
2020-09-08 07:21:06.472 LOOP: 6 - Data packet is good
2020-09-08 07:21:08.496 LOOP: Data - 7: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-52-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-01-DD
2020-09-08 07:21:08.496 LOOP: 7 - Data packet is good
2020-09-08 07:21:10.143 API tag: Processing API JSON tag request
2020-09-08 07:21:10.143 API tag: Input string = ?version&build&ProgramUpTime&NewBuildAvailable&NewBuildNumber&CpuCount
2020-09-08 07:21:10.153 API tag: Output string = {"version":"3.8.3","build":"3093","ProgramUpTime":"0 days 19 hours","NewBuildAvailable":"0","NewBuildNumber":"3093","CpuCount":"4"}
2020-09-08 07:21:10.492 LOOP: Data - 8: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-52-02-04-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-A9-6C
2020-09-08 07:21:10.492 LOOP: 8 - Data packet is good
2020-09-08 07:21:12.488 LOOP: Data - 9: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-52-02-04-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-A9-6C
2020-09-08 07:21:12.488 LOOP: 9 - Data packet is good
2020-09-08 07:21:14.484 LOOP: Data - 10: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-52-02-04-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-A9-6C
2020-09-08 07:21:14.485 LOOP: 10 - Data packet is good
2020-09-08 07:21:16.490 LOOP: Data - 11: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-52-02-04-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-A9-6C
2020-09-08 07:21:16.490 LOOP: 11 - Data packet is good
2020-09-08 07:21:18.495 LOOP: Data - 12: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-03-01-99-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-16-CC
2020-09-08 07:21:18.496 LOOP: 12 - Data packet is good
2020-09-08 07:21:20.488 LOOP: Data - 13: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-04-01-94-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-D2-19
2020-09-08 07:21:20.488 LOOP: 13 - Data packet is good
2020-09-08 07:21:20.556 API tag: Processing API JSON tag request
2020-09-08 07:21:20.557 API tag: Input string = ?DavisTotalPacketsReceived&DavisTotalPacketsMissed&DavisMaxInARow&DavisNumCRCerrors&DavisFirmwareVersion&DavisNumberOfResynchs&battery&txbattery
2020-09-08 07:21:20.557 API tag: Output string = {"DavisTotalPacketsReceived":"0","DavisTotalPacketsMissed":"0","DavisMaxInARow":"0","DavisNumCRCerrors":"0","DavisFirmwareVersion":"1.73","DavisNumberOfResynchs":"0","battery":"4,78","txbattery":"1-ok 2-ok 3-ok 4-ok 5-ok 6-ok 7-ok 8-ok"}
2020-09-08 07:21:22.483 LOOP: Data - 14: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-04-01-92-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-AA-26
2020-09-08 07:21:22.484 LOOP: 14 - Data packet is good
2020-09-08 07:21:22.814 Realtime[251]: Start cycle
2020-09-08 07:21:22.815 Realtime[251]: Creating realtime.txt
2020-09-08 07:21:23.914 Realtime[251]: End cycle
2020-09-08 07:21:24.469 LOOP: Data - 15: 4C-4F-4F-00-00-1E-06-89-75-B9-02-41-51-02-04-01-92-00-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-5D-FF-FF-FF-FF-FF-FF-FF-00-00-00-05-00-00-00-FF-FF-01-00-64-00-15-0A-06-00-2D-00-F5-07-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-2F-03-06-2C-8F-02-D4-07-0A-0D-AA-26
2020-09-08 07:21:24.470 LOOP: 15 - Data packet is good
You do not have the required permissions to view the files attached to this post.
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

Have you enabled fetching reception stats in the config?

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by HansR »

mcrossley wrote:
Tue 08 Sep 2020 8:05 pm
Have you enabled fetching reception stats in the config?
Yes I have.
And it's not only with me btw.
I checked some other cutils sites as well and e.g. Conligwx's site.
All no stats.
No big deal, needs to be done sometime.
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

User avatar
ConligWX
Posts: 882
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus +DFARS
Operating System: Ubuntu 20.04.01 LTS
Location: Bangor, NI
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by ConligWX »

HansR wrote:
Tue 08 Sep 2020 8:18 pm
mcrossley wrote:
Tue 08 Sep 2020 8:05 pm
Have you enabled fetching reception stats in the config?
Yes I have.
And it's not only with me btw.
I checked some other cutils sites as well and e.g. Conligwx's site.
All no stats.
No big deal, needs to be done sometime.

You mean these ones?

Code: Select all

Total Data Packets received	0	 
Total Data Packets missed	0	 		
Number of Console to ISS resynchs	0	 		
Number of Packets with CRC errors	0
yep these were usually low if not zero on my end when I installed the WLL. Marks site shows zeros too at this time.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • CumulusMX •

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

Whilst I'm away, you could try <#DavisTotalPacketsReceived tx=0>
The VP2 stats are all on tx=0 - which should be the default if you do not supply a tx=n parameter, but!...

The WLL records the stats per transmitter ID, so if you have a WLL then you need to specify the tx=n parameter for each transmitter you have configured.
The VP2 only records the stats for the ISS transmitter, which I save to tx=0 for backwards compatibility.

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by HansR »

I tried, did not work with the testT.txt file.
Will try it in cutils but to be honest, that is basically the same: just through the interface.
So assume no luck unless reported otherwise.
Thanks anyway ;)
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

I tried this on my debug build with a VP2 console and the stats show OK.
Tried on an old 3.7.2 build I'd left running on pi zero, and it is working OK there too - different VP2 console obviously.

Code: Select all

http://192.168.50.135:8998/api/tags/process.json?DavisTotalPacketsReceived&DavisTotalPacketsMissed&DavisMaxInARow&DavisNumCRCerrors&DavisNumberOfResynchs

Code: Select all

{"DavisTotalPacketsReceived":"16629","DavisTotalPacketsMissed":"185","DavisMaxInARow":"614","DavisNumCRCerrors":"47","DavisNumberOfResynchs":"0"}
¯\_(ツ)_/¯

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

Ah, I spoke too soon, I see sometimes it is not getting the response it expects and sets the values to zeros instead of ignoring or retrying. More looking required...

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by HansR »

Ok.
Btw: i use 'localhost'.
Can't be, can it?
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

User avatar
ConligWX
Posts: 882
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus +DFARS
Operating System: Ubuntu 20.04.01 LTS
Location: Bangor, NI
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by ConligWX »

mcrossley wrote:
Mon 14 Sep 2020 3:40 pm
I tried this on my debug build with a VP2 console and the stats show OK.
Tried on an old 3.7.2 build I'd left running on pi zero, and it is working OK there too - different VP2 console obviously.

Code: Select all

http://192.168.50.135:8998/api/tags/process.json?DavisTotalPacketsReceived&DavisTotalPacketsMissed&DavisMaxInARow&DavisNumCRCerrors&DavisNumberOfResynchs

Code: Select all

{"DavisTotalPacketsReceived":"16629","DavisTotalPacketsMissed":"185","DavisMaxInARow":"614","DavisNumCRCerrors":"47","DavisNumberOfResynchs":"0"}
¯\_(ツ)_/¯

3.8.3 on mine shows:

Code: Select all

{"DavisTotalPacketsReceived":"0","DavisTotalPacketsMissed":"0","DavisMaxInARow":"0","DavisNumCRCerrors":"0","DavisNumberOfResynchs":"0"}
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • CumulusMX •

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

I have found an issue, it surfaces particularly if the option to enable barometer reads is enabled (which is shouldn't be for 99% of Davis users I suspect).
I have rewritten the functions that get reception stats, get the firmware version, and force the baro update to use some common code that should be more robust than the byte counting used originally.

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by HansR »

mcrossley wrote:
Mon 14 Sep 2020 5:46 pm
I have found an issue, it surfaces particularly if the option to enable barometer reads is enabled (which is shouldn't be for 99% of Davis users I suspect).
I have rewritten the functions that get reception stats, get the firmware version, and force the baro update to use some common code that should be more robust than the byte counting used originally.
OK. We'll see. Don't understand the baro issue btw.
Hope you had a nice holiday ;)
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

User avatar
mcrossley
Posts: 6922
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by mcrossley »

I'm still on holiday - off again tomorrow, but doing a bit of poking around tonight.

Baro thing is...

ForceVPBarUpdate=0

User avatar
HansR
Posts: 1375
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by HansR »

Ah, that's for the 1 minute update versus the 15 minute update?
But how do I know if I should use that?

Anyway, thanks. Saw the new release.
Enjoy the rest of the holidays :!:
https://meteo-wagenborgen.nl / Cumulus 3.6.8 (build: 3084)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.51-v7+ armv7l (before: 4.19.118)
Mono JIT compiler version 6.10.0.104 (before: 6.8.0.123)

freddie
Posts: 870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux Ubuntu 18.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Statistics DavisVP2+ are not given by webtags API

Post by freddie »

HansR wrote:
Tue 15 Sep 2020 5:45 am
Ah, that's for the 1 minute update versus the 15 minute update?
But how do I know if I should use that?
It's a VP firmware version thing. Older versions only did a barometer read every 15 min but you could force more frequent reads by using this ini file switch. Newer firmware versions read the barometer more often. If you search the forum you will find the firmware version before which you would need to use the switch.
Freddie
Image

Post Reply