Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 8:37 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  [ 40 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 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  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Thu May 03, 2012 11:25 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
beteljuice wrote:
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 ....



I don't know if it's really working. I mean if works clouds height.
All evening I am playing with:

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
$useWDuom = false; // always use the cloud base height reported by Weather Display
$useWDHeight = false; // override the default variables with those found in (WD) testtags.php

and with

$getMetar = true; // get the METAR from NOAA for substituting cloud conditions at night and/or day (not required)
$metarRefresh = 1; // refresh rate of the METAR in minutes
$useMetarAtNight = true; // always use METAR at night time for determinig clouds
$onlyUseMetar = true; // always use METAR for determinig clouds

And when I set all these to false

$useCUuom = false; // always use the cloud base height reported by Cumulus
$useCUHeight = false; // override the default variables with those found in (CU) CUtags.php
$useWDuom = false; // always use the cloud base height reported by Weather Display
$useWDHeight = false; // override the default variables with those found in (WD) testtags.php

Then it start show me 174m instead of 180m. ( but before all the time shows me 180) But if you move mouse on cloudbase picture then you can see that text pop up 180m ASL and this text never changes. Even on sunny day.
I spotted that in cumulus program my coudbase always shows 18m or sometimes 17m only.
In cumulus I set my altitude to 162m.
I live in clouds all the time :) :)

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 2:46 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
OK, I have been busy working on some scripts ( more like adapting the scripts to my likings) ... so, I have been away from most forums.

nitrx wrote:
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...
Ron, the script first read the METAR information found in the script itself then, if the script finds an external configuration file (produced by either Cumulus and Weather Display) it then read data from that file, including the METAR 4 letter ICAO code.

nitrx wrote:
... 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 ..
OK, I have figured out why the temperature information is corrupted: It is cause by the dreaded degree symbol ('°') and web page encoding!! I have been looking for a solution and I have yet fond one. I shall be back later on with, either a solution or a 'hack'... :oops:


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:10 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,
I now when I set all values to false my cloudsbase altitude hangs on 174m.
I think it is not normal. Before all the time was 180m and now always 174m and not moving at all.
My outside humidity sensor is broken and all time shows me 99% so maybe this can be reason for this problem?


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
$useWDuom = false; // always use the cloud base height reported by Weather Display
$useWDHeight = false; // override the default variables with those found in (WD) testtags.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: Fri May 04, 2012 7:11 am 
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
I had a look at the cloudbase.php from 'ergie' end it seems to be in UTF-8 , mine is in ANSI so 'ergie' can give it a try to write it in ANSI perhaps the '°' will be OK then ? (use notepad + for converting it to ANSI)

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:15 am 
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:
Hi,
I now when I set all values to false my cloudsbase altitude hangs on 174m.
I think it is not normal. Before all the time was 180m and now always 174m and not moving at all.
My outside humidity sensor is broken and all time shows me 99% so maybe this can be reason for this problem?


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
$useWDuom = false; // always use the cloud base height reported by Weather Display
$useWDHeight = false; // override the default variables with those found in (WD) testtags.php


Thanks,
Rim


You better use the cloudbase calculated by Cumulus or doesn't change this too ? I don't know how it's calculated but if the humidity is involved and your humidity sensor is broken the cloudbase calculation has no sense.

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:25 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 Nitrx,
I tried everything and always my coudbase hangs on 179m or 180m. In cumulus software my cloudbase moves only 1m. up and down. From 179m to 180m and from 180m back to 179m.
I convert to ANSI and now show alright. You found problem thank you Nitrx!
Now left only one headache with cloud height :bash: :)

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:31 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
Cumulus uses the dew point to calculate the cloud base. Fine Offset stations don't give a dew point to software, so Cumulus calculates it using the relative humidity.

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:34 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
So this is reason why my cloud height hangs on 180m all the time. My outside humidity sensor not working.

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


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:52 am 
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:
So this is reason why my cloud height hangs on 180m all the time. My outside humidity sensor not working.


Your dewpoint will also be incorrect if measures from humidity are allways 99% it wil be allways 0.1 Celcius below the airtemperature, fortunally my inside dewpoint sensor is broken only , 'Fine' offset brrr

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: How to insert cloudbase.php scrip on ajax/php site?
PostPosted: Fri May 04, 2012 7:57 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
Yep... my first weather station... And seller really do not rush to change broken part. I will never ever buy enything from that seller anymore.

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  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