Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.5 (build 3282) - 23 February 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

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 drop-down menus to 2030)

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

Problem with website barometer text b3183

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

SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Problem with website barometer text b3183

Post by SamiS »

Hi,

I upgraded yesterday from 3160 to 3183, and got a very small but visible problem to my website index page. On the barometer it shows current pressure and pressure change values properly, but instead of ”falling, steady, rising etc” it just shows ”Pressure trend”.

My system is Rpi4 with bullseye with finnish locale, station is fine offset.

If it makes any difference, I have localised the barometer texts via strings.ini and it has worked properly on previous builds. Standard logging does not show any errors or other clues about any problem. Any tips how to proceed from here? Anyone else noticed same behaviour?
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

I just checked my "live" install and the <#presstrend> tag seems to be working OK...

http://<CMX_IP>:8998/api/tags/process.json?presstrend
User avatar
PaulMy
Posts: 3760
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Problem with website barometer text b3183

Post by PaulMy »

Hi,
Mine seems to be showing correctly - i.e. http://komokaweather.com/cumulusmx/
Pressure (sea level)
Barometer 1022.9 hPa Falling slowly -0.3 hPa/hr
Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

mcrossley wrote: Mon 09 May 2022 4:50 pm I just checked my "live" install and the <#presstrend> tag seems to be working OK... :shock:

http://<CMX_IP>:8998/api/tags/process.json?presstrend
This api call works for me too, responds properly with

{"presstrend":"Putoaa"}

So why it is not getting to website anymore? :?
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

OK, that shows that the web tag is working as expected.

So now you need to check the file that is being used to send the data to your web site.

Are you using the Cumulus supplied web site or some other template?
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

I use the default website, except that I have made a big work with localizing major parts of it to finnish. @mark I can pm you my website url, but rather not put it public in here because of my hosting transfer limits.
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

You can PM your link, but the first thing to check is the websitedata.json file in your <cmx>/web folder. Does that have any obvious errors? Probably not as that would stop all your data updating!
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

OK, so your websitedata.json file contains...

presstrend: "Pressure trend"

You need to check the websitedataT.json file, at line 79 that should have...

presstrend: "<#presstrend>"
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

Well this was interesting. I compared the file on my running CMX with the 3183 distribution zip, and no difference encountered. For a moment I was very puzzled. But then I noticed it... :oops:

My running instance websitedataT.json had windows-formatted CR-LF instead of unix LF. This does not show itself when running powershell compare-object (gc file1) (gc file2). Instead it needed Notepad++.

The problem with the website was sorted after replacing the file with correct one. Anyway I find it quite strange, that this difference broke processing of just that one webtag and not the others like wind description which also comes from strings.ini.

Of course this is all my fault, since I have been implementing your version updates to my localized website files by comparing differences between builds. Somehow I have managed to screw the linefeeds while retaining proper utf8-encoding. :groan:

Thank you and sorry.

Sami
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

Well, it seems I spoke too soon. If I click "FTP Now" the websitedata.json is updated properly. But when CMX runs normal interval update, then the "Pressure trend" makes a reappearance. Now this really goes over my head. :shock: I even restarted CMX to rule out possible caching of the template file, but no luck. What to check next?
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

You don't have another copy of websitedata being uploaded by extra files do you?
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

Nope, extra web files setting pages are empty except that ftp is ticked on every row on all 7 pages.
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Problem with website barometer text b3183

Post by mcrossley »

Please switch on debug logging and post the latest log file after it has run for say an hour.

You seem to have a rogue copy of the file somewhere!
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

Last logfile attaced, however nothing to see there I'm afraid.

Debug logging started 10.5. around 20.00 and switched off around 21.20. I also ran the Ftp now at around 21.03 to see if it would produce anything interesting, but no. The strangest thing is, that today also triggering website update with ftp now does not update the website with proper information. Strange... :roll:
You do not have the required permissions to view the files attached to this post.
SamiS
Posts: 351
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problem with website barometer text b3183

Post by SamiS »

Any ideas how to resolve this?
Post Reply