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

Additional Webpages - This Month and This Year

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

Moderators: daj, TNETWeather

User avatar
scramblers
Posts: 48
Joined: Wed Jan 26, 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

Postby scramblers » Sun Feb 27, 2011 12:23 pm

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 Jul 29, 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Additional Webpages - This Month and This Year

Postby daj » Sun Feb 27, 2011 1:43 pm

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 Jan 26, 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

Postby scramblers » Sun Feb 27, 2011 2:00 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Sun Feb 27, 2011 6:42 pm

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

User avatar
captzero
Posts: 363
Joined: Wed Mar 03, 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

Postby captzero » Sun Feb 27, 2011 7:50 pm

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: 152
Joined: Wed May 13, 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

Postby bigmac » Wed Jun 29, 2011 10:01 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Wed Jun 29, 2011 10:36 pm

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: 26697
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Additional Webpages - This Month and This Year

Postby steve » Thu Jun 30, 2011 7:06 am

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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

RayProudfoot
Posts: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Thu Jun 30, 2011 7:48 am

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: 152
Joined: Wed May 13, 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

Postby bigmac » Thu Jun 30, 2011 9:53 pm

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: 2585
Joined: Wed May 06, 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

Postby RayProudfoot » Thu Jun 30, 2011 10:07 pm

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: 26697
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Additional Webpages - This Month and This Year

Postby steve » Thu Jun 30, 2011 11:07 pm

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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
Ned
Posts: 225
Joined: Mon Jul 19, 2010 11:15 am
Weather Station: WS2083 aspirated
Operating System: Win 10
Location: Auckland NZ
Contact:

Re: Additional Webpages - This Month and This Year

Postby Ned » Fri Jul 01, 2011 8:19 am

Many thanks for that :clap:
Even for me, a web design dummy, it was straightforward to implement them in my records page.

bigmac
Posts: 152
Joined: Wed May 13, 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

Postby bigmac » Fri Jul 01, 2011 11:46 am

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: 1681
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Additional Webpages - This Month and This Year

Postby PaulMy » Sat Jul 02, 2011 8:00 pm

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


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 8 guests