The reason for the Notice: error regarding $Currentsolardescription is because you have no $SITE['conditionsMETAR'] entry in your Settings-weather.php Without that, the variable $Currentsolardescription is not defined. You could use one of these (using the find-metar script on my site for your lat/long)
Code: Select all
$SITE['conditionsMETAR'] = 'RPLC'; // dist=103 mi (166 km), dir=S, Angeles/Pampanga, Philippines elev=196, dated=06-OCT-09
// $SITE['conditionsMETAR'] = 'RPLI'; // dist=106 mi (171 km), dir=N, Laoag Intl(Ph-Ar, Philippines elev=5, dated=06-OCT-09
// $SITE['conditionsMETAR'] = 'RPLB'; // dist=127 mi (205 km), dir=S, Olongapo/Subic, Philippines elev=17, dated=06-OCT-09
// $SITE['conditionsMETAR'] = 'RPLL'; // dist=154 mi (247 km), dir=SSE, Ninoy Aquino Int, Philippines elev=21, dated=06-OCT-09
or change your ajax-gizmo.php from
Code: Select all
$decimalComma = (strpos($temperature,',') !==false)?true:false; // using comma for decimal point?
to
Code: Select all
$decimalComma = (strpos($temperature,',') !==false)?true:false; // using comma for decimal point?
if(!isset($Currentsolardescription)) {$Currentsolardescription = ''; }
For the "PHP Notice: Undefined offset: 1 in /get-USNO-sunmoon.php on line 158", that is caused by a connection issue between your webserver and the aa.usno.navy.mil website. Doing a view-source on your homepage shows
<!-- get-USNO-sunmoon.php - Version 1.02 - 03-Dec-2011 -->
<!-- loading ./cache/USNO-moondata.txt from
http://aa.usno.navy.mil/cgi-bin/aa_pap.pl -->
<!-- POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Network error: Connection timed out (110) -->
<!-- HTTP stats: dns=0.012 conn=4.005 put=n/a get( blocks)=n/a close=n/a total=4.017 secs -->
<!-- fetch function elapsed= 4 secs. -->
<!-- loading finished. -->
<!-- USNOdata
Array
(
)
-->
which shows a 'Connection time out' at 4 seconds trying to get to aa.usno.navy.mil website.
Hope this helps...
Best regards,
Ken