Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 4:00 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  [ 796 posts ]  Go to page Previous  1 ... 34, 35, 36, 37, 38, 39, 40 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Tue Jan 17, 2012 3:19 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
I got the buoy-data.php working but i can't seem to embed it into a page on my website here is the main part of code i'm using. Obviously something wrong which i hope someone can point out.

Mick

?>
<?php
$doPrintBUOY = false;
include("buoy-data.php");
print $BUOY_CSS;
?></head>
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>

<div id="main-copy">
<h1>Buoy data</h1>
<?php
print $BUOY_MAP;
print $BUOY_TABLE;
?>
</div><!-- end main-copy -->

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Tue Jan 17, 2012 5:58 am 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 428
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
That's the correct code to use in a copy of wxnewpage.php as your wxbuoy.php page.

Keep in mind that the graphic for the UK buoys is just a bit wide for the narrow-aspect template at 760px (max should be about 625px to fit inside).

Your flyout-menu.xml uses 'buoy-data.php' as the link, and it likely should be the wxbuoy.php page you created instead.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 6:53 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
saratogaWX wrote:
That's the correct code to use in a copy of wxnewpage.php as your wxbuoy.php page.

Keep in mind that the graphic for the UK buoys is just a bit wide for the narrow-aspect template at 760px (max should be about 625px to fit inside).

Your flyout-menu.xml uses 'buoy-data.php' as the link, and it likely should be the wxbuoy.php page you created instead.

Best regards,
Ken


I have the code correct and have created a new page called http://www.waterfordcityweather.com/wxbuoydata.php but i'm still getting a internal server error 500. Would the wider map cause this?
Cheers

Mick

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 4:40 pm 
Offline

Joined: Wed Jan 18, 2012 11:51 am
Posts: 11
Location: Norway
Weather Station: http://kystvind.no/wxindex.php
Operating System: Windows XP SP3
Hi!
Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.
Here is link to the side http://kystvind.no/wxindex.php

Regard Toddi


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 11:05 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Edit: (2nd attempt)

It looks as if it can't make sense of the date stamp - check any format settings.

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 10:25 am 
Offline

Joined: Wed Jan 18, 2012 11:51 am
Posts: 11
Location: Norway
Weather Station: http://kystvind.no/wxindex.php
Operating System: Windows XP SP3
Hi!
Could this be a dot / comma issue?

Toddi


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 11:01 am 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
Hi folks,

I just do this for show my website

Code:
When you've decided that the new site is to be made 'live', then use these steps to have it become the primary display.

Rename (on your local disk) wxindex.php to index.php
Edit flyout-menu.xml for flyout-menu to replace wxindex.php with index.php in the link.
Upload flyout-menu.xml and index.php to your website.


but now, it don't work properly. Where is the issue?

A lot of thanks

Link to my new website: www.meteotortosa.cat

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 12:16 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
I retorn to old state, and no update data :bash: :bash: :bash:

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 1:50 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
That page seems to be working OK - did you fix it ?

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 1:54 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
Toddi wrote:
Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.
Toddi did you make modifications to the files, other than the setting files, particularly to the files 'top.php' and 'include-style-switcher.php' - I am getting some PHP errors when I use the 'debug' command as in:
Code:
http://kystvind.no/wxindex.php?debug
I also noticed, in the 'ajaxCUwx.js' script, that you have not modified the 'decimalComma' variable:
Code:
var decimalComma = false;  // =false for '.' as decimal separator, =true for ',' (comma) as decimal separator
Your main page is already using the ',' (comma) as a decimal separator.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 2:44 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
beteljuice wrote:
That page seems to be working OK - did you fix it ?


Yes, i fix it. A little problem with the domain name :D

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 2:44 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
beteljuice wrote:
That page seems to be working OK - did you fix it ?


Yes, i fix it. A little problem with the domain name :D

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Jan 19, 2012 3:54 pm 
Offline

Joined: Wed Jan 18, 2012 11:51 am
Posts: 11
Location: Norway
Weather Station: http://kystvind.no/wxindex.php
Operating System: Windows XP SP3
gemini06720 wrote:
Toddi wrote:
Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.
Toddi did you make modifications to the files, other than the setting files, particularly to the files 'top.php' and 'include-style-switcher.php' - I am getting some PHP errors when I use the 'debug' command as in:
Code:
http://kystvind.no/wxindex.php?debug
I also noticed, in the 'ajaxCUwx.js' script, that you have not modified the 'decimalComma' variable:
Code:
var decimalComma = false;  // =false for '.' as decimal separator, =true for ',' (comma) as decimal separator
Your main page is already using the ',' (comma) as a decimal separator.


Thanks for haven a look!
Have set decimalComma = true;
I did not make modifications to the files. Trying to replace these.

Still the same!
At my Weather Station Status it say Cumulus weather data "not current". What is weather data?


Regard Toddi


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Jan 20, 2012 12:07 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
The AJAX JavaScript(s) can't cope with your date delimiter !
Code:
      var tdate = ajaxdateraw.split("/");
      if(typeof(tdate[2])=='undefined') {tdate = ajaxdateraw.split("-"); }
      var ajaxdateformat = tdate[1]+"/"+tdate[0]+"/"+tdate[2];
The script is expecting / or -

Your date format is 20.01.12

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Jan 20, 2012 6:51 am 
Offline

Joined: Wed Jan 18, 2012 11:51 am
Posts: 11
Location: Norway
Weather Station: http://kystvind.no/wxindex.php
Operating System: Windows XP SP3
wow! beteljuice, thanks for seeing this.
Is there a way i can fix this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 796 posts ]  Go to page Previous  1 ... 34, 35, 36, 37, 38, 39, 40 ... 54  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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