Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 8:56 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 8:10 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Err, because they won't be there when the JavaScript runs?! After preprocessing by Cumulus there will just be the string.

PS: I just noticed that the Rain date/times are a bit iffy, new version on the way...

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 8:11 pm 
Offline

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

Success! I used Mark's function to show the current month. That's got rid of the old date format appearing. Thanks Mark!

But when I loaded his htm file in Dreamweaver 4 it also highlighted the same section as containing a syntax error. Maybe it's how I have my DW Validation settings as I currently get loads of warnings and errors when validating with XHTML 1.0 Transitional checked. Is that normal?

I would still prefer to use my design for date layout but I'm grateful to both of you for your help. Thanks. :clap:

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 8:14 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Updated zip attached to previous message.

Your validation fails Ray because it IS invalid until Cumulus has processed it - you need to validate the "tmp" file, or the final file on your web site.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 8:20 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mcrossley wrote:
Err, because they won't be there when the JavaScript runs?! After preprocessing by Cumulus there will just be the string.

D'oh :bash:

I shouldn't try to concentrate on more than one thing at once!

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 8:21 pm 
Offline

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

I copied monthlyrecord.htm from my server to my PC and validated it. I still get lots of errors. Here's a couple:-

The attribute: onclick does not conform to upper/lower case requirements.[XHTML 1.0 Transitional]

The tag:"input" is not allowed within: "input" It is only allowed within: a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, caption, center, cite, code, dd, del, dfn, div, dt, em, fields. . ..[XHTML 1.0 Transitional]

Nesting error, "input" should be closed before closing "div"[XHTML 1.0 Transitional]

I'm calling it a day now. I'll be back tomorrow for more fun.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 9:13 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Ray, this version validates OK on w3c for me.

http://validator.w3.org/check?uri=http% ... record.htm

[file removed - see later post]

_________________
Mark
Wilmslow Astro Weather


Last edited by mcrossley on Sat Apr 14, 2012 9:24 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 9:33 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Interesting Mark. It returns 66 errors for my equivalent.

http://www.cheadlehulmeweather.co.uk/monthlyrecord.htm

That is baffling.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 9:52 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
I've managed to get a clean compile in DW4. The lines it was objecting to were these:-

Not Accepted
<input type="button" value="Jan" onClick="changeData(0)">

Accepted
<input type="button" value="Jan" onclick="changeData(0)"></input>

Didn't like a capiltalised C in onClick and required a closing tag. Weird eh?

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 9:55 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
You can self close the input tag <input .... />

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Thu Apr 12, 2012 10:01 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
So you can! Ta! :D

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 12:57 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
mcrossley wrote:
Here is a slight variation on Steve's default page. I've just amended the date/time format slightly, and made it so that the current month is always displayed on entering the page.

You can view my data here: http://weather.wilmslowastro.com/monthlyrecord.htm

Note the navigation menu is wrong for my site (it is the default) and I had to zip the file below as you cannot attach html or txt files.

EDIT: File removed see later posts for an updated version


How did you edit to show current month always displayed?

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 1:10 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Code:
....

function init() {
    var d = new Date();
    changeData(d.getMonth());
}
</script>   
<link href="weatherstyle.css" rel="stylesheet" type="text/css" />
</head>
<body onload="init();">

....

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 1:16 pm 
Offline

Joined: Thu Jun 26, 2008 5:51 am
Posts: 97
Location: Slov.Konjice, Slovenia
Weather Station: Davis VP2 + Solar
Operating System: Win2k SP4@VIA EPIA800
First of all, Steve you did awesome thing with latest beta! :clap:

I've been thinking, is there a way, with this new recent history webtags, to get a data for specific hour of the day

If someone doesnt understand, lets say time is 7:30AM and I want to get temperatures at
0AM
1AM
2AM ... etc ? :?: :roll:


TgT

_________________
Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 1:26 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
TgT wrote:
I've been thinking, is there a way, with this new recent history webtags, to get a data for specific hour of the day

I can't think of a way with the existing web tag parameters, as they are relative to the current time, but it would be easy enough to add another parameter for the 'absolute' hour of the day. What would you expect it to do if the hour hasn't arrived yet today? e.g. if it's 7.30 am and you ask for 8 am?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 2:00 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
beteljuice wrote:
Code:
....

function init() {
    var d = new Date();
    changeData(d.getMonth());
}
</script>   


....


I thought javascript is on the client side so if somebody from another timezone visits the page about midnight to a new month he/or she can see another month as it's at the actual weatherstation ? (I know this is a rare situation)

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group