Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
How to insert cloudbase.php scrip on ajax/php site?
Moderator: daj
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
How to insert cloudbase.php scrip on ajax/php site?
Hi,
I configured and transfer cloudbase.php script on my website root directory. Thing is that I don't know how to place it on my website. I use Saratoga basic world ajax/php web template and I would like put cloud base image on left web template side between Rain and Outlook columns. If someone can help me with that I will be very, very thankful.
my website http://www.nightliferedditch.info and cloudbasephp located http://www.nightliferedditch.info/cloudbase.php
Thanks in advance,
Rim
I configured and transfer cloudbase.php script on my website root directory. Thing is that I don't know how to place it on my website. I use Saratoga basic world ajax/php web template and I would like put cloud base image on left web template side between Rain and Outlook columns. If someone can help me with that I will be very, very thankful.
my website http://www.nightliferedditch.info and cloudbasephp located http://www.nightliferedditch.info/cloudbase.php
Thanks in advance,
Rim
http://www.weatherboy.info - Oslo, Norway
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: How to insert cloudbase.php scrip on ajax/php site?
Rim, you cannot place the 'cloudbase' image between the rain and outlook columns (both on the right side of the display) as it will distort the display of the data - you will have to replace one of those columns with the 'cloudbase' image.
A long time ago, I installed the 'cloudbase' image on my (highly customized/modified) [link removed] main page (Weather Display produced pages) but all the column widths had to be readjusted to compensate for the with of the 'cloudbase' image (Note: Although the weather data on those pages is up-to-date, the code behind those pages needs to be updated, something I have just started to do).
A few months back, I included the 'cloudbase' image on my [link removed] main page (Cumulus produced pages) - although not continually displayed on the page, the 'cloudbase' image can be displayed by clicking on the icon at the right side of the 'Cloud Base' data line.
The 'cloudbase' image is just that, an image, even if the script to produce the image has the 'php' extension.
Note: The path to the 'cloudbase.php' script must be modified if the script is located in a different directory. This is the code that must be used where ever the image is to be displayed.
I have just tested the code and it displayed properly by itself - I did not try including the 'cloudbase' into the 'ajax-dashboard.php' script.
I had a look at the source code of your 'index.php' page... Some errors were highlighted in my browser:
A long time ago, I installed the 'cloudbase' image on my (highly customized/modified) [link removed] main page (Weather Display produced pages) but all the column widths had to be readjusted to compensate for the with of the 'cloudbase' image (Note: Although the weather data on those pages is up-to-date, the code behind those pages needs to be updated, something I have just started to do).
A few months back, I included the 'cloudbase' image on my [link removed] main page (Cumulus produced pages) - although not continually displayed on the page, the 'cloudbase' image can be displayed by clicking on the icon at the right side of the 'Cloud Base' data line.
The 'cloudbase' image is just that, an image, even if the script to produce the image has the 'php' extension.
Note: The path to the 'cloudbase.php' script must be modified if the script is located in a different directory.
Code: Select all
<?php echo '<img src="'.$cloudbase.'?uom='.$uomCld.'" alt="'.$cldTxt.'" title="'.$cldTxt.'" style="width: 100px; height: 200px; border: none;" />'; ?>
I have just tested the code and it displayed properly by itself - I did not try including the 'cloudbase' into the 'ajax-dashboard.php' script.
I had a look at the source code of your 'index.php' page... Some errors were highlighted in my browser:
- - there is a stray end tag "a" between the '</head>' and the '<body>' tags;
- the Google scripts are also poorly formatted;
- the Dynamic CountUp script has been installed outside, not only of the page content (id="page" wrapper) but also outside of the '</body>' tags!
Last edited by gemini06720 on Sun 09 Jun 2013 7:44 am, edited 1 time in total.
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
Hi gemini06720 and thanks for information.
I will try to understand how it works
Is it all right that my cumulus default website setup cloud base always 17m or 18m? No lower and no higher?
I will try to understand how it works
Is it all right that my cumulus default website setup cloud base always 17m or 18m? No lower and no higher?
http://www.weatherboy.info - Oslo, Norway
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: How to insert cloudbase.php scrip on ajax/php site?
Rim, I do not understand your question! I had a look at your cloudbase image and the information it displayed seemed fine.ergie wrote:Is it all right that my cumulus default website setup cloud base always 17m or 18m? No lower and no higher?
The 'cloudbase' has been redesigned to either calculate the base of the clouds using the current temperature and dew point or to take the cloud base values produced by either Cumulus or Weather Display.
If the cloud base value comes from Cumulus, that value does not include the station elevation and thus the image shows the base of the clouds as being above ground level. Weather Display produces a cloud base value which includes the station elevation and thus the image shows the base of the clouds as being above sea level.
If the station elevation is available for or provided into the script and if the option to add the station elevation to the calculated or (weather software) provided cloud base value , then the 'cloudbase' script will display the image with the base of the clouds as being above sea level.
I just compared the cloud base value provided by Cumulus (176 m) and the cloud base value calculated by the script (175 m) and they are within acceptable tolerances (I think the script rounds off the number down whereas it appears that Cumulus might round off the number up).
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
Hi,
Your last message explain me very will about cloud base height and why on cumulus original template web there is 17 or 18meters. It is because cumulus adds these 17 or sometime 18meters to my altitude which is set 162 meters in cumulus software.
I am talking about that http://www.nightliferedditch.info/gauges.htm link ab cloud base picture
and my saratoga base php template and cloud.php file measure from sea level. So I now why it in the picture in cloudbase.php altitude is about ~172meters and why original cumulus website shows 17 or 18meter.
Thanks,
Rim
Your last message explain me very will about cloud base height and why on cumulus original template web there is 17 or 18meters. It is because cumulus adds these 17 or sometime 18meters to my altitude which is set 162 meters in cumulus software.
I am talking about that http://www.nightliferedditch.info/gauges.htm link ab cloud base picture
and my saratoga base php template and cloud.php file measure from sea level. So I now why it in the picture in cloudbase.php altitude is about ~172meters and why original cumulus website shows 17 or 18meter.
Thanks,
Rim
http://www.weatherboy.info - Oslo, Norway
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
gemini06720,
big, big thanks for all information which you gave me. Finally I done separate page for cloud base. http://www.nightliferedditch.info/wxclouds.php
I fix stray end tag "a" between the '</head>' and the '<body>' tags; but still don't know where to fix that one:
the Dynamic CountUp script has been installed outside, not only of the page content (id="page" wrapper) but also outside of the '</body>' tags!
I just note that my website stops frefreshing after 5 or 6 auto refreshs. Before was everything ok but after when I add green flashing button on top it stops.
big, big thanks for all information which you gave me. Finally I done separate page for cloud base. http://www.nightliferedditch.info/wxclouds.php
I fix stray end tag "a" between the '</head>' and the '<body>' tags; but still don't know where to fix that one:
the Dynamic CountUp script has been installed outside, not only of the page content (id="page" wrapper) but also outside of the '</body>' tags!
I just note that my website stops frefreshing after 5 or 6 auto refreshs. Before was everything ok but after when I add green flashing button on top it stops.
http://www.weatherboy.info - Oslo, Norway
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: How to insert cloudbase.php scrip on ajax/php site?
Nothing to do with your gif.
In ajaxCUwx your setting is:
var maxupdates = 12; // Maxium Number of updates allowed (set to zero for unlimited)
In ajaxCUwx your setting is:
var maxupdates = 12; // Maxium Number of updates allowed (set to zero for unlimited)
......................Imagine, what you will KNOW tomorrow !
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
Beteljuice thanks a lot!
Mabe you can help me in other situation?
I done everything what's written here: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=7334
Now I am receiving data in to my mysql data base but I don’t know how to show that data in graphs style or archive like NOAA or etc. Basically I would like to do that from mysql data base all data goes in to graphs.
I know that there is such thing like highcharts http://www.highcharts.com but I really, really don’t know from where to start.
Mabe you can help me in other situation?
I done everything what's written here: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=7334
Now I am receiving data in to my mysql data base but I don’t know how to show that data in graphs style or archive like NOAA or etc. Basically I would like to do that from mysql data base all data goes in to graphs.
I know that there is such thing like highcharts http://www.highcharts.com but I really, really don’t know from where to start.
http://www.weatherboy.info - Oslo, Norway
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: How to insert cloudbase.php scrip on ajax/php site?
Rim, the 'cloudbase' script can calculate the base of the clouds at both above ground level and above sea level - there is nothing wrong with Cumulus as it only providing the base of the clouds at ground level (by not adding the station elevation).
Rim, a good starting point for the Highcharts interactive charts would be to download and unzip their zip package and look at the examples - some are easy to follow, others are more complicated - by trying and failing, you will eventually learn and understand the requirements and the operation of the Highcharts...
Rim, if you look at the source code of your web page (Ctrl+U on Firefox) and go to the end of that source code page you should/will notice that all the code for the 'Dynamic CountUp' script is located outside the closing '</body>' tag - it is fine to put CSS and JavaScript code outside the closing '</body>' tag but not the HTML code required to display the counter - that code should be installed inside the limit of the page wrapper, before the closing '</body>' tag.ergie wrote:...but still don't know where to fix that one: the Dynamic CountUp script has been installed outside, not only of the page content (id="page" wrapper) but also outside of the '</body>' tags!
Rim, a good starting point for the Highcharts interactive charts would be to download and unzip their zip package and look at the examples - some are easy to follow, others are more complicated - by trying and failing, you will eventually learn and understand the requirements and the operation of the Highcharts...
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
Hi Gemini06720,
Thanks for information again. I will try to fix 'Dynamic CountUp' script'. Idea with this script was to put it in the bottom below footer.
Finally little by little I start to pull information from mysql. This is not what I want but I proud myself that I finally start to pull it in any format
http://www.nightliferedditch.info/bandyma.php
Thanks for information again. I will try to fix 'Dynamic CountUp' script'. Idea with this script was to put it in the bottom below footer.
Finally little by little I start to pull information from mysql. This is not what I want but I proud myself that I finally start to pull it in any format
http://www.nightliferedditch.info/bandyma.php
http://www.weatherboy.info - Oslo, Norway
-
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: How to insert cloudbase.php scrip on ajax/php site?
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:
- 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: Select all
?> ...place the CSS code here... (and remove this line!) <!-- World-ML template from http://saratoga-weather.org/wxtemplates/ --> <!-- end of top -->
- the '<div id="cpcontainer"> </div>' code required to display the counter can (should) also be placed near the end of the 'footer.php' template, as shown:Code: Select all
</body> ...place the JavaScript code here... (and remove this line!) </html>
Code: Select all
<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;"> </div> </div><!-- end id="footer" --> </div><!-- end id="page" wrapper --> </body>
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
Hi Gemini06720,
thank you so much for scrip I will try to do everything like you show me.
Thanks again!
thank you so much for scrip I will try to do everything like you show me.
Thanks again!
http://www.weatherboy.info - Oslo, Norway
- ergie
- Posts: 44
- Joined: Thu 19 Apr 2012 9:24 pm
- Weather Station: WH1090
- Operating System: Praspberry Pi2
- Location: Oslo, Norway
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
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
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 - Oslo, Norway
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: How to insert cloudbase.php scrip on ajax/php site?
It also says you have a temp of 78C
You have set up the script to look at YOUR data haven't you ?
You have set up the script to look at YOUR data haven't you ?
......................Imagine, what you will KNOW tomorrow !
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: How to insert cloudbase.php scrip on ajax/php site?
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.beteljuice wrote:It also says you have a temp of 78C
You have set up the script to look at YOUR data haven't you ?