Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue Jun 18, 2013 11:31 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: Fri Apr 13, 2012 12:57 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 356
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: 1887
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: 98
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: 17827
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: 882
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  
 
 Post subject: Re: Build 1033 comments
PostPosted: Fri Apr 13, 2012 2:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
nitrx wrote:
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)

If that was an issue for you, you could do:

function init() {
changeData(<#month>-1);
}

_________________
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:14 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 882
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
steve wrote:
nitrx wrote:
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)

If that was an issue for you, you could do:

function init() {
changeData(<#month>-1);
}


It's not an explicit issue but I was just wondering :) , anyway thanks for the new solution.

_________________
Ron

Image

Apeldoorn, The Netherlands


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

Joined: Wed Feb 25, 2009 12:01 am
Posts: 356
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
beteljuice wrote:
Code:
....

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

....


Tried this but still loads January always....

_________________
Bob

http://woodlandweather.org/


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

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
bnwrx wrote:
Tried this but still loads January always....

The code's not there in your page, and you still just have:

<body>

Edited the wrong file?

_________________
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 3:29 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 356
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
steve wrote:
bnwrx wrote:
Tried this but still loads January always....

The code's not there in your page, and you still just have:

<body>

Edited the wrong file?


I am editing the monthlyrecordT file....still nothing :?:

_________________
Bob

http://woodlandweather.org/


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

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
bnwrx wrote:
I am editing the monthlyrecordT file....still nothing :?:

The page is updating, so the only conclusion I can draw is that you're not editing the template that it's using.

_________________
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 4:01 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 356
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
steve wrote:
bnwrx wrote:
I am editing the monthlyrecordT file....still nothing :?:

The page is updating, so the only conclusion I can draw is that you're not editing the template that it's using.


I got it...so sorry...I was missing an "}" to close the previous function.... :oops: :oops:

_________________
Bob

http://woodlandweather.org/


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

Joined: Thu Jun 26, 2008 5:51 am
Posts: 98
Location: Slov.Konjice, Slovenia
Weather Station: Davis VP2 + Solar
Operating System: Win2k SP4@VIA EPIA800
steve wrote:
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?

hm, a "0" :roll:

_________________
Image


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

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
TgT wrote:
hm, a "0" :roll:

Rather than 'dashes'?

_________________
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 6:24 pm 
Offline

Joined: Thu Jun 26, 2008 5:51 am
Posts: 98
Location: Slov.Konjice, Slovenia
Weather Station: Davis VP2 + Solar
Operating System: Win2k SP4@VIA EPIA800
The plan is to reproduce clientraw.txt and WD makes for empty or missing data a "0" so, dashes "---" could be OK too,i guess, but not with spaces since delimiter is a "space"

Its up to You, to decide ;)

_________________
Image


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 2 guests


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