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

Web upload size

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

Moderator: daj

Post Reply
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Web upload size

Post by Stuart2007 »

Can anyone give me a guide to the typical basic cumulus webpage upload sizes, assuming the standard templates are used? I assume some pages are not uploaded every time (records, yesterday etc). Not sure how much is uploaded for gauges...

I am going to have to use 3G for the internet connection and wonder how much space will be needed each month (probably say 5 minutely updates).

I've searched here in vain for 'upload size', so I hope I have not overlooked the information in an obvious place.

Thanks

StuartM
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: Web upload size

Post by steve »

All of the pages and images are uploaded on each update. In total, it's about half a megabyte - about 100KB for the pages and 400KB for the images.
Steve
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: Web upload size

Post by water01 »

I do not think there is an exact measurement as everyones T (template) files will differ according to their modifications.

You are incorrect in assuming that records, yesterday etc. do not get uploaded, all T files get uploaded on each upload.

I have done a rough calculation based on my T files and the Trend .png files that are uploaded each time and it would appear to be about 523K is uploaded as standard (including realtime.txt). But as I said that is based on my files so it could differ.
David
Image
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Web upload size

Post by Stuart2007 »

steve wrote:All of the pages and images are uploaded on each update. In total, it's about half a megabyte - about 100KB for the pages and 400KB for the images.
Thanks Steve. Rather than reducing frequency to get below a 3G upload limit, I suppose we could forgo some of the upload files (eg graphs and gauges) and look for another way to give a simple analog web view of the data, possibly using javascript for example...?

StuartM
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: Web upload size

Post by steve »

Yes, the major saving would come through omitting the images. The gauges page itself is quite large, even ignoring the images, because it contains a lot of data for the wind distribution gauges. Omitting that as well gets you down to about 45k per upload (in 1.9.2, at least. Version 1.9.3 has the monthly records page which contains a lot of data, and is 25k).

You could replace the standard gauges with the SteelSeries gauges, which just require a small data file to be uploaded, and are far superior to the standard gauges anyway.

You could also reduce that 45k figure still further by moving to PHP pages, so the pages themselves don't get uploaded, just the data that they use.
Steve
Stuart2007
Posts: 51
Joined: Sat 22 Dec 2012 11:33 am
Weather Station: Chas Ohlson
Operating System: Windows 7
Location: United Kingdom

Re: Web upload size

Post by Stuart2007 »

steve wrote:Yes, the major saving would come through omitting the images. The gauges page itself is quite large, even ignoring the images, because it contains a lot of data for the wind distribution gauges. Omitting that as well gets you down to about 45k per upload (in 1.9.2, at least. Version 1.9.3 has the monthly records page which contains a lot of data, and is 25k).

You could replace the standard gauges with the SteelSeries gauges, which just require a small data file to be uploaded, and are far superior to the standard gauges anyway.

You could also reduce that 45k figure still further by moving to PHP pages, so the pages themselves don't get uploaded, just the data that they use.
Thanks Steve, I was indeed thinking about the Steve series gauges. 45k etc would be fine.

StuartM
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Web upload size

Post by mcrossley »

Attached is a modification of the standard monthlyrecordsT.htm that reduces the processed file size slightly, down to 21KB (every little helps! 4KB per upload in this case) by reworking the JavaScript.
monthlyrecordT.zip
You do not have the required permissions to view the files attached to this post.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Web upload size

Post by sfws »

Following on from what Mark has suggested, some sites save a little bit more by combining pages, they only need one set of headings and labels for the two sets of values.

(This assumes ability to use a suitable editor to merge elements from the two pages, and some understanding of HTML to recognise start and end of elements and rules like each row of a table having same number of cells).

There are sites with yesterday/today combined, monthlyrecords/records combined, and/or thismonth/thisyear combined, on pages otherwise very similar to original Cumulus ones.

I'm not at my own PC, so cannot look up my bookmarked examples, but maybe someone who has combined pages will respond with an example containing an example unprocessed Cumulus template.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Web upload size

Post by mcrossley »

Err, mine? :lol: Well today/yesterday, and month/year at any rate.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Web upload size

Post by sfws »

mcrossley wrote:Err, mine?
Sorry Mark - I was only thinking of you re JavaScript and Steel Series, now I will make myself a note about what you have on your site ready for any future time. Anyway one site that inspired me (and I could not remember in my last post) was http://www.cheadlehulmeweather.co.uk/today.htm.

Anyway Mark's website http://weather.wilmslowastro.com/today.htm shows that each table data row is in this format (if today preceeds yesterday):

Code: Select all

<tr class="td_temperature_data">
      <td>High&nbsp;Temperature</td>
      <td><#tempTH> <#tempunit></td>
      <td>at <#TtempTH> </td>
      <td><#tempYH> <#tempunit></td>
     <td>at <#TtempYH></td>
</tr>
i.e. each data row is constructed from the row in today with the last two cells from the yesterday row appended. The heading rows can be seen by viewing source in the online HTML.
Last edited by sfws on Mon 11 Feb 2013 7:00 pm, edited 1 time in total.
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Web upload size

Post by Ned »

A bit off topic, but I've long wondered why the upload takes so long (1m 50s in my case) Is this typical? Or could it be an FTP server bottleneck?
Speed testing reports my upload speed is 0.8Mbps while emailing a 500kb file takes about 5 secs.
Cheers.
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: Web upload size

Post by steve »

There's a protocol overhead with logging in, changing directory etc, and with each file uploaded, and the standard web site contains about 40 files. If you turn on ftp logging you'll see this. For me, the upload takes nearly two minutes with a 448 kbps upstream connection speed, but the actual transfer speed isn't a huge factor; latency has a bigger effect.
Steve
Post Reply