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

realtimegaugesT.txt upload issue with Raspberry Pi

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

Locked
matthewjs
Posts: 4
Joined: Fri 22 May 2015 8:38 pm
Weather Station: WH1081
Operating System: Raspbian
Location: Colyton, Devon. UK.

realtimegaugesT.txt upload issue with Raspberry Pi

Post by matthewjs »

This is all very new to me so apologies if this is posted somewhere else, I have searched a fair bit and can find some info but not a solution that I can make work.

I am using a fine offset station connected to a Raspberry Pi running RASPBIAN and CumulusMX 3025, the CumulusMX directory is /home/pi/CumulusMX and data is being uploaded to http://dtfl.org.uk/colyton/weather/

I cannot get the gauges to work as realtimegaugesT.txt won’t upload, I have pasted the screenshot of the Extra Web Files page with the paths in. Do they look correct from the info I’ve given above?

If I manually copy realtimegaugesT.txt to the website and rename it realtimegauges.txt I get the error “parseerror: SyntaxError: JSON.parse: unexpected character at line 72 column 17 of the JSON data” on the Gauges page and I have no idea what it means.

Any help would be appreciated.

Thanks, Matthew.
You do not have the required permissions to view the files attached to this post.
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: realtimegaugesT.txt upload issue with Raspberry Pi

Post by water01 »

I very much doubt that your Remote Filename path is correct.

Assuming that your Domain name is http://dtfl.org.uk/colyton/ the path should be /weather/reatimegauges.txt or if the domain is http://dtfl.org.uk then the path would /colyton/weather/reatimegauges.txt.

If it is Unix or Linux you may also have to add /public_html or /htdocs on the front.

Uploading realtimegaugesT.txt and changing it's name will fail because Cumulus MX has not processed the file and replaced the webtags with data.

You have obviously used Filezilla or equivalent to get the realtimegaugesT.txt in the right place, look at the path that program is using on the server and duplicate it in your settings.
David
Image
matthewjs
Posts: 4
Joined: Fri 22 May 2015 8:38 pm
Weather Station: WH1081
Operating System: Raspbian
Location: Colyton, Devon. UK.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Post by matthewjs »

Thanks for the suggestion. I'm pretty sure that isn't the issue as the FTP account that is being used to upload via CumulusMX has the home directory of /public_html/colyton/weather/. If I log in with the same FTP account via CORE FTP my home director is /public_html/colyton/weather/ and I can't go up a level to the directory /public_html/colyton/. CumulusMX is sucessfully uploading the other files (HTML) to the /public_html/colyton/weather/ (http://dtfl.org.uk/colyton/weather/). I've put a screen shot of the settings CumulusMX is using to upload via FTP and you'll see there's nothing in the 'directory' field becuase the FTP login directs to the correct directory. Any other ideas because I just can't work it out. Thanks, Matthew.
You do not have the required permissions to view the files attached to this post.
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: realtimegaugesT.txt upload issue with Raspberry Pi

Post by water01 »

That maybe correct for the normal uploads but for file uploads you have to give the full path which in your case will be /public_html/colyton/weather/realtimegauges.txt otherwise the file ends up in the wrong directory.

Also you have changed your gauges.js link to the file to

Code: Select all

            realTimeURL_Cumulus: 'realtimegauges.txt',     //*** Cumulus Users: Change to your location of the realtime file ***  
David
Image
matthewjs
Posts: 4
Joined: Fri 22 May 2015 8:38 pm
Weather Station: WH1081
Operating System: Raspbian
Location: Colyton, Devon. UK.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Post by matthewjs »

Have tried the full path and various other iterations with no luck.

Please could you clarify the location of the gauges.js as I cannot find it.

Thanks.
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: realtimegaugesT.txt upload issue with Raspberry Pi

Post by water01 »

From what I have found running the network debugger on IE 11 you have gauges.js installed in /colyton/weather/lib/steelseries/scripts/gauges.js but it is looking for realtimegauges.txt in /colyton/weather/realtimegauges.txt and cannot find it, therefore if you are uploading it you are putting it somewhere else.

So you either need to upload it to /colyton/weather/ or alter the uploaded gauges.js to reflect where you are actually uploading it to.
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: realtimegaugesT.txt upload issue with Raspberry Pi

Post by steve »

If your ftp account puts you into the required weather directory, then just putting 'realtimegauges.txt' (no leading slash) should work.
Steve
matthewjs
Posts: 4
Joined: Fri 22 May 2015 8:38 pm
Weather Station: WH1081
Operating System: Raspbian
Location: Colyton, Devon. UK.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Post by matthewjs »

Gentlemen, thanks for your help, the issue was caused by me having the Active FTP option on! Rookie mistake! Odd that the HTML was uploading but not the txt file. anyway very happy it's sorted.

Steve you're correct no / just the file name worked, what a great application you've created.
Locked