IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Linux script to upload dayfile.txt to website

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderators: daj, TNETWeather

User avatar
john09cw
Posts: 80
Joined: Sun Jan 03, 2010 9:35 am
Weather Station: Maplin N96GY
Operating System: Raspberry Pi/Raspbian
Location: Clifton, Cumbria
Contact:

Linux script to upload dayfile.txt to website

Postby john09cw » Tue Jan 06, 2015 6:26 pm

Wondering if anyone can help, I'm going to be running Cumulus MX on my Raspberry pi, only thing is I need to upload the Dayfile.txt to my website once everyday, I have been using toolbox for this task but this (as far as i know) will not run in Linux, so i need a script to do this job , I have seen a script for Windows but i know nothing about Linux, could anyone point me in the right direction.

User avatar
john09cw
Posts: 80
Joined: Sun Jan 03, 2010 9:35 am
Weather Station: Maplin N96GY
Operating System: Raspberry Pi/Raspbian
Location: Clifton, Cumbria
Contact:

Re: Linux script to upload dayfile.txt to website

Postby john09cw » Fri Jan 23, 2015 6:54 am

So just to bring this up again, anyone have any suggestions.

tumutbound
Posts: 154
Joined: Thu Mar 11, 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: Linux script to upload dayfile.txt to website

Postby tumutbound » Fri Jan 23, 2015 8:25 am

Try this one, about as simple as it gets.

http://serverfault.com/questions/279176 ... ash-script
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081

henkg
Posts: 99
Joined: Sun Jul 24, 2011 8:53 am
Weather Station: WH3080 (Alecto WS-5000 ECO)
Operating System: Raspbian Wheezy on RPI B+
Location: Zeeland, Netherlands

Re: Linux script to upload dayfile.txt to website

Postby henkg » Fri Jan 23, 2015 8:56 am

Or, if you don't mind uploading the dayfile.txt every x minutes (together with the processed standard files):
cmx_dayfile.png
You do not have the required permissions to view the files attached to this post.
Image

User avatar
john09cw
Posts: 80
Joined: Sun Jan 03, 2010 9:35 am
Weather Station: Maplin N96GY
Operating System: Raspberry Pi/Raspbian
Location: Clifton, Cumbria
Contact:

Re: Linux script to upload dayfile.txt to website

Postby john09cw » Fri Jan 23, 2015 9:37 am

Thanks, I'll try those when I get home.

water01
Posts: 1465
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Linux script to upload dayfile.txt to website

Postby water01 » Fri Jan 23, 2015 10:06 am

Or, if you don't mind uploading the dayfile.txt every x minutes (together with the processed standard files):


Depending on how long you have been running Cumulus that is one heck of an upload overhead to do every standard upload time for a file that contains daily stats and needs to uploaded just once a day!!

Much better to run the Bash script in cron!!

User avatar
john09cw
Posts: 80
Joined: Sun Jan 03, 2010 9:35 am
Weather Station: Maplin N96GY
Operating System: Raspberry Pi/Raspbian
Location: Clifton, Cumbria
Contact:

Re: Linux script to upload dayfile.txt to website

Postby john09cw » Fri Jan 23, 2015 12:04 pm

Hmm, I've been running Cumulus since 2010, so could be a large file.


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 4 guests