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

wxastronomy script.........latest version

Discussion of Ken True's web site templates

Moderator: saratogaWX

nicksnet
Posts: 26
Joined: Mon 23 Sep 2013 6:09 pm
Weather Station: davis vantage pro2 inc FARS.
Operating System: windows 10
Location: Oshawa, Ontario, CANADA.
Contact:

wxastronomy script.........latest version

Post by nicksnet »

Does anyone have the latest version of the wxastronomy.php working under Cumulus / Saratoga templates ?

This version includes the big earth image in between the sun and moon.

I have been experimenting with this script, have it displayed but with issues.....namely, no moon images, Earth Equinox info showing incorrect dates, Sunlit Earth showing what appears to be wrong shadow, and no current sunlight map showing.

Anybody shed any light on this...

Nick.
ImageImage
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxastronomy script.........latest version

Post by saratogaWX »

Is the page you're talking about at http://dw7240.com/Base-Canada/wxastronomy.php

If so, it seems to be working correctly. With Cumulus (and all the non-WD sites) all the moon data comes from the USNO and is based on your latitude/longitude. The equinox dates come from cGetSeasonInfo inside the common.php and the tables were created from the USNO season dates.
nicksnet
Posts: 26
Joined: Mon 23 Sep 2013 6:09 pm
Weather Station: davis vantage pro2 inc FARS.
Operating System: windows 10
Location: Oshawa, Ontario, CANADA.
Contact:

Re: wxastronomy script.........latest version

Post by nicksnet »

Hi Ken,

The version I'm looking for of wxastronomy,php is the one with the large earth image in between the moon and sun images, I believe this version is for Weather Display,. I was curious if a version of this was available for Cumulus, check my site, click on astronomy page to get basic version, then go to address bar and replace wxastronomy.php with wxastronomy2.php, then you'll see part of the version I'm talking about. I've got part of it to work, but eager to get the rest of the page displayed.

Thanks as always.

Nick.
ImageImage
Image
User avatar
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: wxastronomy script.........latest version

Post by beteljuice »

You seem to have several images missing ... literally !

In three different directories.
Image
......................Imagine, what you will KNOW tomorrow !
nicksnet
Posts: 26
Joined: Mon 23 Sep 2013 6:09 pm
Weather Station: davis vantage pro2 inc FARS.
Operating System: windows 10
Location: Oshawa, Ontario, CANADA.
Contact:

Re: wxastronomy script.........latest version

Post by nicksnet »

If anyone is interested, I've managed to combine wxastronomy script with the more informed WD version of wxastronomy which has the include-wxastronomy php script. Check out my site and look at the astronomy page, any thoughts most welcome.

If anybody should want a copy of the script, please let me know and I'll pass it on....

Thanks. Nick.
ImageImage
Image
alehman
Posts: 1
Joined: Sun 18 Jan 2015 6:42 pm
Weather Station: lacrosse
Operating System: windows xp sp3
Location: Louisburg, KS

Re: wxastronomy script.........latest version

Post by alehman »

nicksnet, I would be very interested in a copy of your script.
I have been looking for the version of wxastronomy with the big earth and added astronomical data, but can't seem to find it. Any help is most appreciated.
Thanks,
Alan
User avatar
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: wxastronomy script.........latest version

Post by pernaczy »

nicksnet wrote: If anybody should want a copy of the script, please let me know and I'll pass it on....
Thanks. Nick.
nicksnet,
I have "standard" version (http://www.pogoda-niesiolowice.kaszuby.pl/astro.php ) but I like this new one and I'm interested to have it on my site.
Thanks,
Piotr
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

Image
duke

Re: wxastronomy script.........latest version

Post by duke »

Just curious and I have not compared the two scripts (but I will), but why are the Cumulus and WD versions different?
User avatar
MackerelSky
Posts: 141
Joined: Fri 01 Apr 2011 8:14 pm
Weather Station: Davis VP2 w/FARS
Operating System: Toshiba Laptop Windows 7 x64
Location: Smethport, Pa.
Contact:

Re: wxastronomy script.........latest version

Post by MackerelSky »

nicksnet wrote:If anyone is interested, I've managed to combine wxastronomy script with the more informed WD version of wxastronomy which has the include-wxastronomy php script. Check out my site and look at the astronomy page, any thoughts most welcome.

If anybody should want a copy of the script, please let me know and I'll pass it on....

Thanks. Nick.
I'd also like to take a look Nick.

Could you just rename it to a .txt file and attach it to a post? or how ever you are handling it.
Davis VP2/FARS
Cumulus 1.9.4(1092)

McKean Weather
'cause not everyone lives at the airport

Image
nicksnet
Posts: 26
Joined: Mon 23 Sep 2013 6:09 pm
Weather Station: davis vantage pro2 inc FARS.
Operating System: windows 10
Location: Oshawa, Ontario, CANADA.
Contact:

Re: wxastronomy script.........latest version

Post by nicksnet »

duke wrote:Just curious and I have not compared the two scripts (but I will), but why are the Cumulus and WD versions different?
Hi Duke,

The Cumulus version uses CUTags, the WD version uses Testtags, have a look at the scripts and you'll notice the differences, there are some entries in the scripts that are not used, but not being a php writer, I have basically linked other scripts together to produce the required layout. I know their are many users who could do a better job at the scripts, but I havn't seen a hacked WD script used on any other Cumulus site, hence the reason why I done this.

Thanks for your interest.

Nick.
ImageImage
Image
nicksnet
Posts: 26
Joined: Mon 23 Sep 2013 6:09 pm
Weather Station: davis vantage pro2 inc FARS.
Operating System: windows 10
Location: Oshawa, Ontario, CANADA.
Contact:

Re: wxastronomy script.........latest version

Post by nicksnet »

pernaczy wrote:
nicksnet wrote: If anybody should want a copy of the script, please let me know and I'll pass it on....
Thanks. Nick.
nicksnet,
I have "standard" version (http://www.pogoda-niesiolowice.kaszuby.pl/astro.php ) but I like this new one and I'm interested to have it on my site.
Thanks,
Piotr
OK, here are the files.

Unzip, then follow simple readme file.

Let me know how you get on.

Nick. DW7240.com
You do not have the required permissions to view the files attached to this post.
ImageImage
Image
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: wxastronomy script.........latest version

Post by BCJKiwi »

The standard Saratoga scripts 'base's are the same for CU and WD.
The software plugin is different and WD does provide some additional data for moon etc.

However the scripts being discussed here are not as far I can see, part of the standard set from Saratoga.
Have adapted my page here http://silveracorn.co.nz/weather/wxalmanac.php by changing the;
sun image to

Code: Select all

 <td align="center">
      <img border="0" src="http://umbra.nascom.nasa.gov/images/latest_aia_304.gif"  width="185" height="185"
              alt  ="Sun Spots"
              title="Sun Spots"/><br />
      </td>
and the sunlit earth image is

Code: Select all

      <td align="center">
         <img width="150" height="150" src="http://www.fourmilab.ch/cgi-bin/Earth?imgsize=200&dynimg=y&opt=-l&alt=35785&tle=&date=0&utc=&jd=&img=wx-cmap.bmp&lat=36.909692&ns=South&lon=174.771255&ew=East" alt="Sunlit Earth" />
      </td>
You need to change lat=36.909692&ns=South&lon=174.771255&ew=East to suit your location.
These changes do not provide the day/night strip chart below but I also have the day/night pie and am happy with that instead.
Last edited by BCJKiwi on Mon 02 Mar 2015 3:31 am, edited 1 time in total.
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: wxastronomy script.........latest version

Post by BCJKiwi »

Cross-posted with Nick's.

I notice most of the original comes from Bashewa as did the original of my CU version cloudbase script and the Thermometer script on my Saratoga home dashboard. So it is an adaptation of the Saratoga standard scripts.
However meerkat (Rainer Finkeldeh, http://www.bashewa.com) did not respond to my courtesy email seeking confirmation it was OK to adapt his cloudbase script to Cumulus nor are any downloads available from his site at present.
Have now added the day/night strip chart as well by copying the sun-arrow.gif file into ajax-images folder, graphic-sunchart.php into the main scripts folder and adding

Code: Select all

 <?php
   $midn = mktime(0,0,0);
   $now  = time(); // was mktime();
   $perc = ($now - $midn) / (24*60*60);
   $margin = round($perc * 624);
if(file_exists("graphics-sunchart.php")) { ?>
<!-- SUN CHART: <?php echo "graphics-sunchart.php"; ?> -->
  <tr><td align="center" colspan="4" style="padding: 14px 0px 0px 0px;">
      <div align="left" style="margin: 0px; width: 648px;"><img
           src="./ajax-images/sun-arrow.gif" style="margin-left: <?php echo $margin; ?>px;" width="22" height="29" hspace="0" vspace="0" alt="Sunchart" /></div>
      <div align="center" style="width: 642px;"><img src="<?php echo "graphics-sunchart.php"; ?>" alt="" width="626" height="23" hspace="0" vspace="0" /></div>
  </td></tr>
<?php } ?>
to wxalmanac.php at the desired location. Note that mktime(); was edited to time(); to stop validation errors.

Nick - Thanks very Much!
User avatar
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: wxastronomy script.........latest version

Post by pernaczy »

I have installed the script and it seems to be working OK: http://www.pogoda-niesiolowice.kaszuby.pl/astronew1.php
Unfortunately I'm not skilled enough to eliminate those warnings displayed at the top (I'm using NON Saratoga template)?.
Can someone help me with this?
Piotr
You do not have the required permissions to view the files attached to this post.
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

Image
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: wxastronomy script.........latest version

Post by BCJKiwi »

Just remark out the include() lines that are showing errors - they are referring to Saratoga script files.
Change the mktime() to just time() - but only on the one line, not both, this warning comes from a php version change where mktime() now works if there is something inside the () but not when it doesn't - well it does but it throws the warning message.
Post Reply