Page 1 of 1

DavisFirmwareVersion tag

Posted: Tue 07 Feb 2023 5:22 pm
by TheBridge
When I run this in my browser:
192.168.1.121:8998/api/tags/process.json?DavisFirmwareVersion

The response is correct:
{"DavisFirmwareVersion":"3.88"}

When I run these lines in a .htm file:
<td class="">Davis Total Packets Rec'd:</td>
<td class=""><span data-cmxdata="DavisTotalPacketsReceived"></span></td>
<td class="">Davis Total Packets Missed:</td>
<td class=""><span data-cmxdata="DavisTotalPacketsMissed"></span></td>
<td class="">Davis Firmware Version:</td>
<td class=""><span data-cmxdata="DavisFirmwareVersion"></span></td>

The first 2 produce correct response. The DavisFirmwareVersion line says ‘undefined’.

The webpage; which I am modifying to use a support page so I can see what’s what from time to time.
Climate.tommueller.com/Sys2.htm

P.S. this is a personal website and no affiliated with the city of Thousand Oaks government

Anyone spot a problem with my use of DavisFirmwareVersion web tag
Thank you,
Bridge

Re: DavisFirmwareVersion tag

Posted: Tue 07 Feb 2023 5:26 pm
by freddie
"undefined" smells like Javascript. Does the websitedataT.json file contain the DavisFirmwareVersion webtag?

Re: DavisFirmwareVersion tag

Posted: Tue 07 Feb 2023 5:56 pm
by TheBridge
This is where it gets a bit juicer.

It was not, and neither were the other Davis tags used on the web page. So I added them. One at a time and tested each new one I added. They worked UNTIL I came to adding DavisFirmwareVersion. When I put that one in (websitedataT) all the data would not show on the htm page. When I removed it from websitedataT and re-ran, all data comes back however the Davis Firmware field says back as ‘undefined’.

Re: DavisFirmwareVersion tag

Posted: Tue 07 Feb 2023 6:36 pm
by TheBridge
All ok. Rookie error. Ran the sequence again (including MX reboot) and all is good!