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

Gauges not working

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Gauges not working

Post by bzncrew »

I finally got my MX to upload weather data to my free host website. Live data is being published via FTP.

The gauges don't work.
When the page loads, it says "error:" with second counting down.


So I seem to have 2 problems

1) I can't get CMX to upload the data automatically from the PI.
In the Extra Web Files section I have
web\realtimegaugesT.txt - public_html\realtimegaugesT.txt being the Local and Remote fields. Process and real time are checked.
Nothing seems to upload.

2) I manually grabbed this file from my PI and uploaded it to the public_html folder (the root of the web site) and still nada. No gauge displays.
File is there as realtimegaugesT.txt

Any ideas?
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Gauges not working

Post by nitrx »

public_html\realtimegaugesT.txt should be public_html\realtimegauges.txt on the remote site without the capital 'T'
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Gauges not working

Post by steve »

If the file is being uploaded by FTP, the remote file should be public_html/realtimegauges.txt - FTP servers don't generally understand backslashes as directory separators. Similarly for the local file (i.e. web/realtimegaugesT.txt), if MX is running under Linux.
Steve
User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Re: Gauges not working

Post by bzncrew »

I renamed the file to realtimegauges.txt and placed it in the folder with the other hmtl. Still no gauges. Any ideas? Says Not found
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Gauges not working

Post by water01 »

You cannot just rename it, you need to get Cumulus to process it and then upload it as it contains webtags that have to filled out with the current values by Cumulus, hence why you set up the local file to be realtimegaugesT.txt and set the process marker and the uploaded processed file to be realtimegauges.txt.
David
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Gauges not working

Post by steve »

You can't just rename the template file and expect it to work, if that's what you've done. The template file has web tags in it which Cumulus processes into real data, the gauges need the file that has real data in it. If you do have a realtimegauges.txt file on your web site in the correct place that has real data in it, and it still isn't working, I think we will probably need a link to your gauges page so we're not working in the dark.

Edit: cross-posted
Steve
User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Re: Gauges not working

Post by bzncrew »

I copied the realtimegaugesT.txt file from the \web folder to the root as realtimegauges.txt file manually to test.

However, at closer examination, I see this source file (realtimegaugesT.txt) file in the \web folder is 2 days old. The other htm files are current from a minute ago.
Should the realtimegaugesT.txt file reside in the \web folder on the PI? Is this the file that needs to go to the webhost? I don't see it in any other folder.

The PI webserver (localhost) gauges work fine. I'd almost be tempted to point my website at this, however it has access to settings.

Here's my "free" host http://bznweather.host56.com/
Probably need to move it from there as their popup ads are too much to bear.

Here are my settings.
Image
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: Gauges not working

Post by philpugh »

You need to add it to the extrafiles processing remembering to tick ftp and real-time boxes l also tick utf-8. Use something like WinSCP to check that the file is being created where you expect it!
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Re: Gauges not working

Post by bzncrew »

philpugh wrote:You need to add it to the extrafiles processing remembering to tick ftp and real-time boxes l also tick utf-8. Use something like WinSCP to check that the file is being created where you expect it!
Yea, I have those checked.
My concern is that the source folder for the realtimegaugesT.txt file is an old file. When I look at the time stamp, it's 2 days old. Probably the install date of CumulusMX.

Image

Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Gauges not working

Post by water01 »

As are the other T files i.e.indexT.htm.

You seem to have misunderstood the relationship between T files and the upload files. T files are never written to they are simply read and processed by Cumulus MX and then uploaded as temporary files to the same name without the T.

Hence indexT.htm is processed and uploaded as the main index.htm for your web site and the same applies to your realtimegaugesT.txt it is simple read, processed (web tags updated) and then uploaded without the T to your web site directory at public_html as the file name specified in Remote Filename.
David
Image
User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Re: Gauges not working

Post by bzncrew »

water01 wrote:As are the other T files i.e.indexT.htm.

You seem to have misunderstood the relationship between T files and the upload files. T files are never written to they are simply read and processed by Cumulus MX and then uploaded as temporary files to the same name without the T.

Hence indexT.htm is processed and uploaded as the main index.htm for your web site and the same applies to your realtimegaugesT.txt it is simple read, processed (web tags updated) and then uploaded without the T to your web site directory at public_html as the file name specified in Remote Filename.
Ah, this makes sense. And actually now I understand how folks have customized them so much.

Then I don't understand the "Extra Files" CumulusMX instructions at the bottom of this page
http://wiki.sandaysoft.com/a/Simple_Website_setup

Or why my gauges don't work.
User avatar
PaulMy
Posts: 4355
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: Gauges not working

Post by PaulMy »

Your standard Cumulus pages all appear in http://bznweather.host56.com/ but not realtime.txt nor realtimegauges.txt. From your CumulusMX screen shot as an earlier attachments you may only need to enter realtimegauges.txt in the Remote Filename box.

Also make sure Enable Realtime and Enable Realtime FTP is ticked and Realtime interval is set with some value in your Cumulus Internet settings so that the Extra Web Files are actually being updated at that realtime interval

Enjoy,
Paul
Cumulus MX
Make sure “Include Standard” Files is selected for Cumulus MX. However, you also need to specify an extra file in the table for the steel series gauges page to work:
1.'Local filenames' column Use Browse option to find web\realtimegaugesT.txt

2.'Remote filenames' column Here you must type the path to where you want the web page to appear (i.e. where the other web pages are uploaded to) ending with the file name realtimegauges.txt. Typically the path will involve specifying the directory you entered on the 'Sites/Options' tab (see the 'Web Site' settings step 3 for that tab above).

3.'Process?' column Select this, as web\realtimegaugesT.txt contains web tags and needs to be processed to create the remote file.

4.'Realtime?' column Select this, as you want the file to be created at whatever interval you have defined for real-time updates (see 'web settings' point 7 above for where you did that)

5. 'FTP?' column Select this.

6.'UTF-8?' column This is irrelevant for this file.


You have now told Cumulus how to update your web space with the Standard Cumulus Template files for the web.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Gauges not working

Post by steve »

You're still using Windows-style backslashes for directory separators - see my earlier post.

Note that the instructions in the wiki were misleading - they seem to have been written by someone who hasn't used MX - there is no 'browse' button. The instructions also assumed that MX was running on Windows.

There's another issue: your hosting appears to be provided by 000webhost.com. They don't usually support the use of .txt files on a web site. So you will likely have to use a different name for the remote file, with an extension that they do allow. You will need to change the config section of the gauges.js file so that it's looking for the correct file.
Steve
User avatar
bzncrew
Posts: 25
Joined: Sat 25 Jul 2015 10:43 pm
Weather Station: Vantage Pro 2
Operating System: Win 7
Location: Bozeman MT

Re: Gauges not working

Post by bzncrew »

Besides a fantastic piece of software, having the developer respond so quickly and directly is unheard of. Thank YOU!

Yes, it seems my slashes were wrong. Linux doesn't like backslashes and that seems to have solved the "extra files" problem.
Gauges still not displaying and you are correct about the .txt files. Host won't serve them up to the html page. Although the .txt file exists, the host won't feed it.
So I changed the extension to htm and edited the gauges.js file and IT WORKS!!!

Since I have the developer ears, the installer defaults for COM port for station serial port should be "/dev/ttyUSB0" not "COM0". I figured that out, but why not just let the default be the proper Linux default.
Again, fantastic piece of software and I'm in awe of how you ported it to Linux/Raspberry.
steve wrote:You're still using Windows-style backslashes for directory separators - see my earlier post.

Note that the instructions in the wiki were misleading - they seem to have been written by someone who hasn't used MX - there is no 'browse' button. The instructions also assumed that MX was running on Windows.

There's another issue: your hosting appears to be provided by 000webhost.com. They don't usually support the use of .txt files on a web site. So you will likely have to use a different name for the remote file, with an extension that they do allow. You will need to change the config section of the gauges.js file so that it's looking for the correct file.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Gauges not working

Post by steve »

bzncrew wrote:Since I have the developer ears, the installer defaults for COM port for station serial port should be "/dev/ttyUSB0" not "COM0". I figured that out, but why not just let the default be the proper Linux default.
Because it runs on platforms other than Linux, and /dev/ttyUSB0 is not the Linux default, it's just what happens to work for you. What would be good would be for it to enumerate the serial ports and offer a choice of only those actually present. Maybe one day...
Steve
Locked