Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 26, 2013 6:35 am
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 3:50 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
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: 351
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: 97
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: 17614
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: 97
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  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sat Apr 14, 2012 7:22 am 
Offline
User avatar

Joined: Thu Dec 17, 2009 2:03 pm
Posts: 787
Location: Hurstpierpoint, West Sussex, UK
Weather Station: WH1081
Operating System: Windows XP & 7 Pro
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.


Hi Mark,

A quick thank you for the revised code. Just an observation, it looks odd to have a time for :

Highest Daily Range
Lowest Daily Range
and
Highest Daily Wind Run

_________________
Neil
Hurstpierpoint Weather

Image


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sat Apr 14, 2012 9:22 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2523
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Ah, missed those - how is this version? (tidied up the JS a bit too - single var declaration, and got rid of the init() function)


You do not have the required permissions to view the files attached to this post.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sat Apr 14, 2012 1:29 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
Am I correct in my thinking that if the webtags were changed to php and the corresponding php tags processed by cumulus once a day this would work too?

Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sat Apr 14, 2012 11:10 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
duke wrote:
Am I correct in my thinking that if the webtags were changed to php and the corresponding php tags processed by cumulus once a day this would work too?

It doesn't matter whether a page is php or html, the web tags work just the same - or did you mean something else?

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


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 6:05 am 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
steve wrote:
duke wrote:
Am I correct in my thinking that if the webtags were changed to php and the corresponding php tags processed by cumulus once a day this would work too?

It doesn't matter whether a page is php or html, the web tags work just the same - or did you mean something else?


I thought what i needed to do was change this:
Code:
"<#ByMonthLongestDryPeriod mon=2>",

to
Code:
"<?php echo $ByMonthLongestDryPeriod mon=2; ?>",

and so on:
Code:
"<#ByMonthWindHT mon=2 format="'day' dd, yyyy 'at' hh:mm">",

to
Code:
"<?php echo $ByMonthWindHT mon=2 format="'day' dd, yyyy 'at' hh:mm"; ?>",


But obviously not :( . This is where someone jumps in and points out just how far off target i am.

Attached an .htm and .php attempt at converting.

Duke


You do not have the required permissions to view the files attached to this post.

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 7:27 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
duke wrote:
"<?php echo $ByMonthWindHT mon=2 format="'day' dd, yyyy 'at' hh:mm"; ?>"

You can't use the 'mon=2' parameter with a PHP variable; it's Cumulus which understands that, not PHP. You have to use the parameter when you set the PHP variable from the web tag, like Graeme has done here: http://sandaysoft.com/forum/viewtopic.php?f=14&t=7359

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


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 9:13 am 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
So, if I've got this right (and it is still early) my first 2 lines should be (removed time/date format for now):
Code:
  hightemp = ["<?php echo $JanTempH; ?>","<?php echo $FebTempH; ?>","<?php echo $MarTempH; ?>","<?php echo $AprTempH; ?>","<?php echo $MayTempH; ?>","<?php echo $JunTempH; ?>","<?php echo $JulTempH; ?>","<?php echo $AugTempH; ?>","<?php echo $SepTempH; ?>","<?php echo $OctTempH; ?>","<?php echo $NovTempH; ?>","<?php echo $DecTempH; ?>"],

    hightempT = ["<?php echo $JanTempHT; ?>","<?php echo $FebTempHT; ?>","<?php echo $MarTempHT; ?>","<?php echo $AprTempHT; ?>","<?php echo $MayTempHT; ?>","<?php echo $JunTempHT; ?>","<?php echo $JulTempHT; ?>","<?php echo $AugTempHT; ?>","<?php echo $sepTempHT; ?>","<?php echo $OctTempHT; ?>","<?php echo $NovTempHT; ?>","<?php echo $DecTempHT; ?>"],
   

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 10:41 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Yes, that looks about right. But note that PHP variable names are case sensitive:

duke wrote:
"<?php echo $sepTempHT; ?>

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


Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 11:31 am 
Offline
User avatar

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

Looks like you are mixing up JS and php array definitions.

I think it should be more like:
Code:
<?php
echo "hightemp = new Array ('" .$JanTempH. "','" .$FebTempH. "','" .$MarTempH. "','" .... "','" .$DecTempH. "');";

// OR

echo "hightemp = new Array (\"" .$JanTempH. "\",\"" .$FebTempH. "\",\"" .$MarTempH. "\",\"" .... "\",\"" .$DecTempH. "\");";

// but of course your php tags should already have been created as an inlude file eg.

// $FebTempH = '<#ByMonthTempH mon=2>';

?>
But the beteljuice has been lacking clarity lately :?

Edit: missing a quote - fixed

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


Last edited by beteljuice on Sun Apr 15, 2012 11:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Build 1033 comments
PostPosted: Sun Apr 15, 2012 3:32 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
Firstly, thanks Steve / beteljuice for your help but this is really getting the better of me :( .

beteljuice, I tried both your examples but both produce a syntax error.

Steve, the webtags by GraemeT are capitalized as
Quote:
$JanTempH = '<#ByMonthTempH mon=1>';


The 2 lines I have shown above allow the page to load without errors but show no figures. The tags work ok because if I paste them anywhere else on the page they produce a figure. HERE

Any other ideas guys before I conceed and wait for someone else to convert?

Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


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