|
|
|
Axelvold
|
 |
« Reply #1 on: June 07, 2012, 03:58:16 PM » |
|
Here you go.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
Axelvold
|
 |
« Reply #2 on: June 07, 2012, 04:01:14 PM » |
|
or with white background.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #3 on: June 07, 2012, 11:40:47 PM » |
|
Thanks!!!
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #4 on: June 08, 2012, 12:23:13 PM » |
|
sorry its moon 18
moon/b/NH-moon18.gif
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #5 on: June 08, 2012, 12:49:54 PM » |
|
here you go.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #6 on: June 08, 2012, 12:56:20 PM » |
|
Thanks. For some reason I cant get this dang moon to appear
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #7 on: June 08, 2012, 02:37:46 PM » |
|
Thanks. For some reason I cant get this dang moon to appear
Do you have those images in the right folder? http://hayskansasweather.com/ajax-images/moon/b/NH-moon18.gif returns a 404 But here is where you placed the images, http://hayskansasweather.com/ajax-images/NH-moon18.gifCreate the folowing subfolders, moon and b in the ajax-images folder and move this images there and it will work. Or change the path in wxastronomy.php to folder ajax-images.
|
|
|
|
« Last Edit: June 08, 2012, 02:41:12 PM by Axelvold »
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #8 on: June 08, 2012, 03:33:28 PM » |
|
Here is what I got in wxastronomy.php
if ((include_once "Settings.php") == 0) { $SITE['latitude' ] = 32.36924; // N+, S- $SITE['longitude'] = -111.06595; // W-, E+ $SITE['imagesDir'] = './ajax-images/'; // path for moon images $SITE['dateOnlyFormat'] = 'd M Y'; $SITE['timeOnlyFormat'] = 'H:i'; $SITE['testtags'] = 'testtags.php'; // required for moon rise/transit/set and seasons dates
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #9 on: June 08, 2012, 03:38:13 PM » |
|
Try to find this line in wxastronomy.php <small>Moon below horison</small><br /> <span id="ajaxmoonimg100"><img border="0" src="./ajax-images/moon/b/NH-moon18.gif" width="100" height="100" alt="18 days, 19 hours, 48 minutes (18.83 days)" title="18 days, 19 hours, 48 minutes (18.83 days)"/> and remove the following moon/b/
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #10 on: June 08, 2012, 03:42:53 PM » |
|
Here is the line I have
?></small><br /> <span id="ajaxmoonimg100"><img border="0" src="<?php echo $currentmoon; ?>" width="100" height="100" alt="<?php echo $moon->age; ?>" title="<?php echo $moon->age; ?>"/></span><br />
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #11 on: June 08, 2012, 03:49:15 PM » |
|
I changed it to this.... <span id="ajaxmoonimg100"><img border="0" src="./ajax-images/NH-moon18.gif" width="100" height="100" alt="<?php echo $moon->age; ?>" title="<?php echo $moon->age; ?>"/></span><br /> and it worked.. See it here http://hayskansasweather.com/wxastronomy.php
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #12 on: June 08, 2012, 03:52:23 PM » |
|
could you post a copy of wxastronomy.php here?
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #13 on: June 08, 2012, 03:57:47 PM » |
|
Here ya go
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #14 on: June 08, 2012, 04:04:27 PM » |
|
Change this (you will find it at line 255) $moon = getMoonInfo(); if($SITE['latitude' ] >= 0) $HF = 'NH'; // use Northern Hemisphere moon img else $HF = 'SH'; // use Southern Hemisphere moon img $currentmoon = $SITE['imagesDir'].'moon/b/'.$HF.'-moon'.str_pad($moon->pic,2,"0",STR_PAD_LEFT).'.gif'; To $moon = getMoonInfo(); if($SITE['latitude' ] >= 0) $HF = 'NH'; // use Northern Hemisphere moon img else $HF = 'SH'; // use Southern Hemisphere moon img $currentmoon = $SITE['imagesDir'].$HF.'-moon'.str_pad($moon->pic,2,"0",STR_PAD_LEFT).'.gif'; and change back the line you did edit before so do I think it will work just fine.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #15 on: June 08, 2012, 04:14:45 PM » |
|
|
|
|
|
|
Logged
|
|
|
|
|