Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 12:29 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  [ 40 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu Apr 26, 2012 6:00 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
Rim, I have been 'playing' with the Dynamic Drive Dynamic CountUp Script script and I have come to the following conclusions:

    - the CSS code (located between the '<style style="text/css">...</style>' tags) can (should) be placed at the end of the 'top.php' template:
    Code:
    ?>
      ...place the CSS code here... (and remove this line!)
    <!-- World-ML template from http://saratoga-weather.org/wxtemplates/ -->
    <!-- end of top -->

    - the all the JavaScript code can (should) be placed near the end of the 'footer.php' template, between the closing '</body>' tag and the closing '</html>' tag:
    Code:
      </body>
      ...place the JavaScript code here... (and remove this line!)
    </html>

    - the '<div id="cpcontainer">&nbsp;</div>' code required to display the counter can (should) also be placed near the end of the 'footer.php' template, as shown:
    Code:
          <br/><?php langtrans('Never base important decisions on this or any weather information obtained from the Internet'); ?>.<br class="doNotPrint" />
          </div>
          <div id="cpcontainer" class="doNotPrint" style="text-align: center;">&nbsp;</div>
        </div><!-- end id="footer" -->
      </div><!-- end id="page" wrapper -->
      </body>

I have just tested the code as suggested above and the results are good... ;)


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu Apr 26, 2012 10:31 am 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
Hi Gemini06720,
thank you so much for scrip I will try to do everything like you show me.
Thanks again!

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 9:04 am 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
Hi,
Maybe someone know why cloudbase script show sunny day without wind and rain if today all morning raining? And Saratoga template gif images shows rain. Or sometimes cloudbase scrip shows that snowing when outside is +8 or +10?
http://www.nightliferedditch.info/wxclouds.php
Thanks,
Rim

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 11:55 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
It also says you have a temp of 78C :lol:

You have set up the script to look at YOUR data haven't you ?

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 12:01 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:
It also says you have a temp of 78C :lol:

You have set up the script to look at YOUR data haven't you ?

No its 7A the Celsius isn't encoded well I think, I wonder if the tear code is right, currond conditions are the same on the site as in the cloudbasesript.

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 1:16 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
I should have worn the right goggles :oops:

However; The script is looking up KSJC (San Jose Int'l) METAR information.

... but that doesn't change the temp problem, which seems to be in the 'graphic' part of the code.

http://www.nightliferedditch.info/cloud ... m=M&html=1

You can also 'force' conditions by adding &test=1 (through to 5)

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 5:11 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:
I should have worn the right goggles :oops:

However; The script is looking up KSJC (San Jose Int'l) METAR information.

... but that doesn't change the temp problem, which seems to be in the 'graphic' part of the code.

http://www.nightliferedditch.info/cloud ... m=M&html=1

You can also 'force' conditions by adding &test=1 (through to 5)

I can't locate the Metar but perhaps the GD2 library doesn't has the centigrade character ? Sant Jose California USA ??? huh, yes your right the metar is an example and not overwitten by the settings http://www.nightliferedditch.info/get-m ... p?sce=view

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 8:23 pm 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
O.K guys :roll: between your conversation I understood only one thing. In my coudbase scrip I missing metar or something like that? I tried to do everything what’s written in manual. And yes I enter my station data in cloudbase php elevation, longitude, latitude.

Can someone show me where is misstakes? Or what I am missing. I am attaching my cloudbase php file
Thanks in advance,
Rim


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

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 8:44 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
ergie wrote:
O.K guys :roll: between your conversation I understood only one thing. In my coudbase scrip I missing metar or something like that? I tried to do everything what’s written in manual. And yes I enter my station data in cloudbase php elevation, longitude, latitude.

Can someone show me where is misstakes? Or what I am missing. I am attaching my cloudbase php file
Thanks in advance,
Rim


Hmmz I don't know exactly but do you have http://www.nightliferedditch.info/Settings-weather.php on your server ?

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 8:55 pm 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
Hi,
yes there is file Settings-weather.php and I found that in this file was wrong metar info there was on line:
$SITE['conditionsMETAR'] = 'KSJC'; // set to nearby METAR for current conditions icon/text

Now I changed it in to EGBB it is Birmingam international airport ICAO.
I am attatching my setting weather txt.


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

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 8:57 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
nitrx wrote:
ergie wrote:
O.K guys :roll: between your conversation I understood only one thing. In my coudbase scrip I missing metar or something like that? I tried to do everything what’s written in manual. And yes I enter my station data in cloudbase php elevation, longitude, latitude.

Can someone show me where is misstakes? Or what I am missing. I am attaching my cloudbase php file
Thanks in advance,
Rim


Hmmz I don't know exactly but do you have http://www.nightliferedditch.info/Settings-weather.php on your server ?


Okay it seems the cloudbase script has a fixed METAR/ICAO number so it's not dependent from the settings.php I think your location is allright but I cant'figure out why the value of the temperature is broken you got the script from Ray so maybe he can figure it out ..

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 9:05 pm 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
Yes I enter new metar information. I enter four letters in Settings-weather.php ( EGBB) and enter long metar info in cloudbase.php (EGBB 032020Z 03003KT 4400 -RA BR FEW004 BKN016 07/06 Q1010).
Yes I spotted that something wrong with Celsius in the bottom of coudbase picture from the beginning when I turn on it in the cloudbase.php file.
Any way thank you for your comments.
Have a good night.

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 9:11 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
ergie wrote:
Yes I enter new metar information. I enter four letters in Settings-weather.php ( EGBB) and enter long metar info in cloudbase.php (EGBB 032020Z 03003KT 4400 -RA BR FEW004 BKN016 07/06 Q1010).
Yes I spotted that something wrong with Celsius in the bottom of coudbase picture from the beginning when I turn on it in the cloudbase.php file.
Any way thank you for your comments.
Have a good night.


You dont have to put the whole code in it
Code:
EGBB 032020Z 03003KT 4400 -RA BR FEW004 BKN016 07/06 Q1010
just EGBB is okay it works fine for my cloudbase script http://apeldoorn.tk/weer/cloudbase.php it's the same as yours , you or Ray only have to figure out the why the temperarure isn't displayed correct.

Goodnight too

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 9:16 pm 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
Ok I will put only EGBB. And my cloudbase meter always show 180m. Always :)))) not moving up or down from the beginning I think.

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 10:59 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
Quote:
Weather Software: Cumulus
Date/Time: Thursday, 03 May 2012 / 23:40 (nighttime)
Conditions: Drizzle, showers, showery, becoming less settled
Air Temperature: 6.6°C
Dew Point: 6.5°C
Cloud Temperature: 6.5°C
Humidity: 99%
Wind: Calm
Barometric Pressure: 1011 hPa
Calculated Cloud Base: 174.19 meters (ASL)
Cumulus Cloud Base: 18 m (AGL)
Station Elevation: 162 meters (531.5 feet)

Sunrise: 05:17
Sunset: 20:22
Time Zone: Europe/London => BST => UTC+1 hours
Background Image: cb-bg-00sprn.png
Moon Age: 12 days, 15 hours, 22 minutes
Server Time: 23:40:01
Your cloudbase IS changing, but you have the settings to show ASL - ie. your altitude plus Cumulus cloudbase, and because it's raining / high RH, you are IN the cloud. ;)
Code:
#################################################################################
# BEGIN IMAGE DETAILS SETTINGS                                                  #
#################################################################################
// Override the default variables with those found in (CU) CUtags.php
$useCUuom         = false;  // always use the cloud base height reported by Cumulus
$useCUHeight      = false;  // override the default variables with those found in (CU) CUtags.php

Your setting (I think) are also saying that the (temp) should be to one decimal point; however even if the setting are changed to Imperial, or (null) default, the accented A character appears instead of the decimal part of the string.

It would seem that
Code:
$txtT = round($curtemp).'°'.$uomTemp;
Is not giving the results expected.

One for the author (Ray) I think ....

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


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

All times are UTC


Who is online

Users browsing this forum: joewith 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