Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Additional Webpages - This Month and This Year

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

Moderator: daj

User avatar
scramblers
Posts: 48
Joined: Wed 26 Jan 2011 9:53 pm
Weather Station: Davis VP2+ with daytime FARS
Operating System: Windows 7
Location: Tamworth, Staffordshire
Contact:

Additional Webpages - This Month and This Year

Post by scramblers »

My weather station is permanently connected to an ASUS netbook computer with a 7in screen and a 900 MHz processor. This combination works well unless I wish to view any stats that are only available on the netbook ie This Month and This Year.

I was thinking that I would like to add these two sets of information to the standard Cumulus website as separate webpages and be available via the navigation bar. On each page there would be a dropdown box so that you could select a particular month or year.

I have used Frontpage in the past to produce a couple websites for friends ie http://www.firtreecottage.co.uk but never used FTP because I always chose a web host with Frontpage Extensions. Can anybody advise me how or where to start?
John

Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Additional Webpages - This Month and This Year

Post by daj »

scramblers wrote:....I have used Frontpage in the past to produce a couple websites for friends ie http://www.firtreecottage.co.uk but never used FTP because I always chose a web host with Frontpage Extensions.
Time to upgrade your skills ;)

You will find a dwindling number of webhosts supporting the FP extension -- FP has been all but dead since 2006

Can anybody advise me how or where to start?
I think the best thing would be to start with a copy of an existing page. Take a copy of todayT.htm in the Cumulus\Web folder, call this thismonthT.htm

Now open it is a good text editor (Google Notepad++ it's free)

The html code might look a little daunting to start with but hang on in there. You should see phrases jumping out at you and also Webtags (http://wiki.sandaysoft.com/a/Webtags) so you can start to replace these with the Monthly ones.

(Note, the Monthly and year tags are only available in the Beta version of Cumulus so I assume you are using a beta?)

Once you are comfortable with the file we can explain how to get Cumulus to replace all those tags with real data and get it to upload to your site. Then we can modify the navigation menu
On each page there would be a dropdown box so that you could select a particular month or year
Not so easy -- You would need to store all the monthly & yearly data in a database, or a file, on your webserver so that the user can interact with the page and it can then get the data it needs. You could manually create a page for each month & year buy this is annoying to maintain.

Let's start with baby steps!
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
scramblers
Posts: 48
Joined: Wed 26 Jan 2011 9:53 pm
Weather Station: Davis VP2+ with daytime FARS
Operating System: Windows 7
Location: Tamworth, Staffordshire
Contact:

Re: Additional Webpages - This Month and This Year

Post by scramblers »

Hi David,

Thank you for quickly getting back to me and offering your assistance.

I've downloaded a copy of Notepad++.

At present I'm using Cumulus v1.9.0 do I just download and run the latest beta software on the ASUS netbook?
John

Image
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Additional Webpages - This Month and This Year

Post by RayProudfoot »

Hi John,

I added a page for this month and year to my website. My HTML skills are pretty basic but it wasn't too difficult. If you don't need to add any extra columns in the table it should just be a case of replacing the webtags and changing the titles.

You will need to upload the Template version of this new page using the Cumulus interface. I named mine thismonthyearT.html.

Good luck!
Cheers,
Ray, Cheshire.

Image
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Additional Webpages - This Month and This Year

Post by captzero »

Go the whole hog and utilise the new beta webtags. I've modified the recordT.html page to display today, yesterday, this month, this year and all time records on one page. Saved uploading three pages.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Additional Webpages - This Month and This Year

Post by bigmac »

Hi Captzero/Ray,

I'm trying to understand a little more on how to do this. My web/programming skills are zero, is there a template file you can provide to assist or else point me in the direction of where on the wiki to look for a "how-to" to create my own?

Cheers
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Additional Webpages - This Month and This Year

Post by RayProudfoot »

Hi Bigmac,

I'm no expert but the concept of adding new information to your web pages is done through webtags. Have a look here. http://wiki.sandaysoft.com/a/Webtags

If you want a new page with records for This Month & This Year there are specific webtags in that link that you place on a new HTML document. Mine is named ThisMonthYearT.html. Note the T to denote it's a template that Cumulus converts to a standard html page but containing the actual values. Have a read here. http://wiki.sandaysoft.com/a/Customised_templates

You also need to upload cumuluswebtags.txt in Internet / Files so Cumulus has access to all the tags and the data they contain. See attached picture.

That's a start. Come back if you need more info.
You do not have the required permissions to view the files attached to this post.
Cheers,
Ray, Cheshire.

Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Additional Webpages - This Month and This Year

Post by steve »

RayProudfoot wrote:You also need to upload cumuluswebtags.txt in Internet / Files so Cumulus has access to all the tags and the data they contain.
Cumulus doesn't need this, and it's not needed for HTML pages. You only need to upload this if you have PHP web pages which need somewhere to read the data from.
Steve
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Additional Webpages - This Month and This Year

Post by RayProudfoot »

steve wrote:
RayProudfoot wrote:You also need to upload cumuluswebtags.txt in Internet / Files so Cumulus has access to all the tags and the data they contain.
Cumulus doesn't need this, and it's not needed for HTML pages. You only need to upload this if you have PHP web pages which need somewhere to read the data from.
Thanks Steve. I will have uploaded that for my PHP generated banner below. So you can ignore that bit Bigmac.
Cheers,
Ray, Cheshire.

Image
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Additional Webpages - This Month and This Year

Post by bigmac »

Thanks Ray (& Steve).
So, if I've understood correctly, for my first row of data of highest temps for the year and the month, my html page would look like this:

<tr class="td_temperature_data">
<td class="main_table_text_labels">Highest&nbsp;Temperature</td>
<td class="right_align_indented"><#YearTempH>&nbsp;<#tempunit></td>
<td class="right_align_indented"><#YearTempHT>&nbsp;<#YearTempHD></td>
<td class="right_align_indented"><#MonthTempH>&nbsp;<#tempunit></td>
<td class="right_align_indented"><#MonthTempHT>&nbsp;<#MonthTempHD></td>
</tr>

Do I also have to change the colspan number to equal 5 as I'm adding two more columns for the year data and the time & date data?
RayProudfoot
Posts: 3372
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Additional Webpages - This Month and This Year

Post by RayProudfoot »

I'm no expert but comparing yours to mine I think you need a colspan="5" on the row containing Highest Temperature so it spans all 5 columns.

If you go to my website and choose "This Month/Year", right-click and choose View Page Source you can see how mine was constructed. It will include the data rather than webtags but in all other respects it's the same as the raw document.

Mine will differ to yours as I keep temperature, time and date all in a single column.
Cheers,
Ray, Cheshire.

Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Additional Webpages - This Month and This Year

Post by steve »

I've created a 'this month' and a 'this year' page based on the existing all-time records page:

http://sanday.org.uk/weather/thismonth.htm
http://sanday.org.uk/weather/thisyear.htm

Note that I haven't modified the navigation section, and there may be the odd error here and there (e.g. wrong web tag used). Templates attached.
You do not have the required permissions to view the files attached to this post.
Steve
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: Additional Webpages - This Month and This Year

Post by Ned »

Many thanks for that :clap:
Even for me, a web design dummy, it was straightforward to implement them in my records page.
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Additional Webpages - This Month and This Year

Post by bigmac »

Ah genius! Thanks to all. :clap:
As I said, my web skills were zero so I didn't know I could view the source of a webpage like that (thanks Ray!). :mrgreen:
I think between you all, you have given me enough information to workout what I need to do, so looks like I have a project on this weekend!
I'll let you know how I get on.
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Additional Webpages - This Month and This Year

Post by PaulMy »

steve wrote:I've created a 'this month' and a 'this year' page based on the existing all-time records page:

http://sanday.org.uk/weather/thismonth.htm
http://sanday.org.uk/weather/thisyear.htm

Note that I haven't modified the navigation section, and there may be the odd error here and there (e.g. wrong web tag used). Templates attached.
bigmac wrote:Ah genius! Thanks to all. :clap:
As I said, my web skills were zero so I didn't know I could view the source of a webpage like that (thanks Ray!). :mrgreen:
I think between you all, you have given me enough information to workout what I need to do, so looks like I have a project on this weekend!
I'll let you know how I get on.
I have downloaded the .zip and extracted in the /cumulus/web folder. Not sure what next to do. Does Cumuluss process these thismonthT and thisyearT with each web update? I have looked in my website /weather folder for the thismonth.htm and thisyear.htm but don't see them. Do I need to add them to the /Cumulus Internet settings 'Include standard files'?

Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Post Reply