Page 1 of 2
Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 4:09 am
by TheBridge
I found the note in the Wiki Forum, about Cumulus webtags, that Davis Webtags not yet supported in MX. Any idea when that may come about?
- Bridge
Re: Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 7:52 am
by mcrossley
I think nearly all the tags are supported, this wiki page may be slightly out of date...
https://cumuluswiki.org/a/Webtags#Davis
Where did you see in the wiki that they were not supported?
Re: Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 12:29 pm
by TheBridge
Re: Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 12:45 pm
by TheBridge
I have added StormRain and StormRainStart to Index (now) page but comes up as ‘undefined’
I’m running latest MX
Website: Climate.tommueller.com
Bridge
Re: Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 12:50 pm
by Mapantz
TheBridge wrote: ↑Mon 29 Aug 2022 12:45 pm
I have added StormRain and StormRainStart to Index (now) page but comes up as ‘undefined’
I’m running latest MX
Website: Climate.tommueller.com
Bridge
Works OK for me:
Code: Select all
|stormrain|storm1|<#StormRain>|!
|stormrainstart|storm2|<#StormRainStart>|!
Code: Select all
|stormrain|storm1|2.8|!
|stormrainstart|storm1|25/08/2022|!
Re: Davis VP Webtag support in MX
Posted: Mon 29 Aug 2022 2:11 pm
by TheBridge
Thanks for checking it.
I’ll go hunting for my setup error.
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 2:23 pm
by TheBridge
I seem to be dense as lead on this. Davis ‘StormRain’ and ‘StormRainStart’ webtags are correctly shown in my index.htm (now) code however they result in ‘undefined’. Mark and others confirm Davis tags are implemented. As much as I have poured through a number of Wiki pages, not seeing what I have missed…although I feel like there is an elephant in front of me and I just don’t see it.
Climate.tommueller.com (‘Now’ page under rainfall)
Bridgeman
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 2:50 pm
by freddie
You also need to add the tags to websitedataT.json which can be found under the "web" folder in your MX installation. If you look at the format of other tags in that file, you should find it easy to add the appropriate tags. Note that this file is the template file for the websitedata.json file that is sent to your web server and is used to populate the values on the pages. As this template is part of the distribution, it will be overwritten when you upgrade to a new release - so you may find yourself re-adding the tags each time you upgrade.
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 2:50 pm
by water01
Could we see the code that is failing please.
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 3:30 pm
by TheBridge
Thanks Freddie and Water01,
Previously I have tried adding the following 2 Davis centric webtags to websitedateT.json. The result was the website menus and some data no longer showed.
"StormRain":"<#StormRain>",
"StormRainStart":"<#StormRainStart>",
I modified IndexT.htm and added the lines in yellow area.
index-htm.png
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 4:41 pm
by freddie
TheBridge wrote: ↑Wed 31 Aug 2022 3:30 pm
Thanks Freddie and Water01,
Previously I have tried adding the following 2 Davis centric webtags to websitedateT.json. The result was the website menus and some data no longer showed.
As that behaviour happened then it strongly suggests you introduced a syntax error into the JSON file. I would give it another try. Add them somewhere between line 8 and line 247 - best location would be line 70, just after the "r24hour" tag. Make sure you use identical syntax to the other lines - including the comma at the end of the line, and open/close quotation marks around both label and tag.
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 5:11 pm
by Mapantz
I don't use the provided template, but I thought you wouldn't need the # at the beginning ?
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 5:28 pm
by PaulMy
Hi,
I modified IndexT.htm and added the lines in yellow area.
Possibly I am misunderstanding the issue, but the
https://climate.tommueller.com/ is the current CMX web template.
indexT.htm is no longer part of that unless it is customized and added as Extra web files and processed and updated by CumulusMX.
As Mapanz notes, from a source view It looks like you have modified index.htm but it is not in the same way as the other variables (you have an extra '#')
Code: Select all
<tr class="w3-theme-l3">
<td>Rainfall Since Midnight</td>
<td><span data-cmxdata="rmidnight"></span> <span data-cmxdata="rainunit"></span></td>
<td>Rainfall Last 24 Hours</td>
<td><span data-cmxdata="r24hour"></span> <span data-cmxdata="rainunit"></span></td>
</tr>
<tr class="w3-theme-l3">
<td>Rain Storm Total</td>
<td><span data-cmxdata="#StormRain"></span> <span data-cmxdata="rainunit"></span></td>
<td>Rain Storm Start</td>
<td><span data-cmxdata="#StormRainStart"></span></td>
</tr>
Enjoy,
Paul
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 8:57 pm
by TheBridge
Hi Freddie and PaulM,
I appreciate your responses. Still working on this and needing additional ideas and thoughts.
Freddie, I have done what you suggested several times with correct syntax and location as you noted in the JSON file. The result, as noted in my previous post, data disappears and the menu does not show up. When I remove these lines, all missing items return,
PaulMy, MX is processing IndexT.htm because when I modify this file by adding the desired ‘Storm Total’ and ‘Storm Total Start’ (literal text) items, they appear appear on the webpage (not the console pages, the webpages my neighbors view). However next to each of these 2 (field) labels it say ‘undefined’.
Best,
Bridgeman
Re: Davis VP Webtag support in MX
Posted: Wed 31 Aug 2022 9:30 pm
by PaulMy
MX is processing IndexT.htm
Still don't understand why as you have the new version website which doesn't use the indexT.htm?
And I can't see "StormRain" or"StormRnStart" in your websitedata.json
https://climate.tommueller.com/websitedata.json
Enjoy,
Paul