Page 1 of 1

realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Thu 04 Jun 2015 10:38 pm
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.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Thu 04 Jun 2015 11:23 pm
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.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 1:15 pm
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.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 2:16 pm
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 ***  

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 4:12 pm
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.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 4:51 pm
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.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 4:58 pm
by steve
If your ftp account puts you into the required weather directory, then just putting 'realtimegauges.txt' (no leading slash) should work.

Re: realtimegaugesT.txt upload issue with Raspberry Pi

Posted: Fri 05 Jun 2015 9:51 pm
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.