Page 1 of 2
Gauges not working
Posted: Tue 28 Jul 2015 3:42 am
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?
Re: Gauges not working
Posted: Tue 28 Jul 2015 6:41 am
by nitrx
public_html\realtimegaugesT.txt should be public_html\realtimegauges.txt on the remote site without the capital 'T'
Re: Gauges not working
Posted: Tue 28 Jul 2015 7:20 am
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.
Re: Gauges not working
Posted: Tue 28 Jul 2015 4:37 pm
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
Re: Gauges not working
Posted: Tue 28 Jul 2015 5:13 pm
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.
Re: Gauges not working
Posted: Tue 28 Jul 2015 5:18 pm
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
Re: Gauges not working
Posted: Tue 28 Jul 2015 9:00 pm
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.

Re: Gauges not working
Posted: Tue 28 Jul 2015 9:43 pm
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!
Re: Gauges not working
Posted: Tue 28 Jul 2015 9:55 pm
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.

Re: Gauges not working
Posted: Tue 28 Jul 2015 11:36 pm
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.
Re: Gauges not working
Posted: Tue 28 Jul 2015 11:56 pm
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.
Re: Gauges not working
Posted: Wed 29 Jul 2015 1:48 am
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.
Re: Gauges not working
Posted: Wed 29 Jul 2015 7:21 am
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.
Re: Gauges not working
Posted: Wed 29 Jul 2015 3:33 pm
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.
Re: Gauges not working
Posted: Wed 29 Jul 2015 3:58 pm
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...