Problems with the forum? Please use Contact or PM saratogaWX with details. Thanks!
0 Members and 1 Guest are viewing this topic.
<!-- AWNtags.php - Version 1.05 - 06-Aug-2018 --><!-- AWNtags.php - fetching current data JSON --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.077 conn=0.000 pxfer=0.000 get=0.044 total=0.044 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 1 - sleep(1) --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 2 - sleep(1) --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 3 - sleep(1) --><!-- AWN_getJSON - 3 tries - no joy --><!-- devices content len=0 bytes not saved. --><!-- pause 1 second to avoid 429 return on this fetch of detail data --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/C0:21:0D:1E:EE:55?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 1 - sleep(1) --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/C0:21:0D:1E:EE:55?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 2 - sleep(1) --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/C0:21:0D:1E:EE:55?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=0 dest= port=0 (from sce=) Times: dns=0.000 conn=0.000 pxfer=0.000 total=0.000 secs --><!-- headers returned: --><!-- AWN_getJSON - RC=0 on try 3 - sleep(1) --><!-- AWN_getJSON - 3 tries - no joy --><p>Warning: ambientweather.net data fetch unsuccessful.</p>
<?phpheader("Content-type: text/html,charset=ISO-8859-1");print "<pre>\n";$lookup = 'api.ambientweather.net';print "PHP ".phpversion()."\n";$dnsFile = '/etc/resolv.conf';if(is_readable($dnsFile)) { print "$dnsFile server file found. Contents:\n"; print "------------------\n"; readfile($dnsFile); print "------------------\n";} else { print "Note: $dnsFile file not found or is not readible.\n";} print "..doing gethostbyname('$lookup'); \n";error_reporting(E_ALL);$ipAddr = gethostbyname($lookup);print "Returned IP='$ipAddr' for '$lookup'\n";print "</pre>\n";if(isset($_REQUEST['info']) and $_REQUEST['info']='yes') { print phpinfo();}
PHP 5.6.38Note: /etc/resolv.conf file not found...doing gethostbyname('api.ambientweather.net'); Returned IP='107.170.198.71' for 'api.ambientweather.net'
<!-- AWNtags.php - Version 1.05 - 06-Aug-2018 --><!-- AWNtags.php - fetching current data JSON --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=200 dest=107.170.198.71 port=443 (from sce=208.117.46.143) Times: dns=0.067 conn=0.129 pxfer=0.427 get=0.079 total=0.506 secs --><!-- devices file ./cache/ambientweather.net.9ff61677266af9ee8e8b793307c44e5b.devices.json saved. 543 bytes. --><!-- AWN device C0:21:0D:1E:EE:55 info='South Georgia Skywarn Spottersg SWGA Office' --><!-- AWNtags.php (./cache/ambientweather.net.C0210D1EEE55.json) cache time = 2018-10-24T15:22:00-04:00 from unix time 1540408920 current time = 2018-10-24T15:23:22-04:00 from unix time 1540409002 difference = 82 (seconds) diff allowed = 60 (seconds) --><!-- AWNtags.php: data to old, will be loaded from url --><!-- pause 1 second to avoid 429 return on this fetch of detail data --><!-- curl fetching 'https://api.ambientweather.net/v1/devices/C0:21:0D:1E:EE:55?applicationKey=*****&apiKey=27dc75b7faaf4351b47f817b6d682ebbdedcd667efbb4135bcd36e65d2f9e717' --><!-- HTTP stats: RC=200 dest=107.170.198.71 port=443 (from sce=208.117.46.143) Times: dns=0.000 conn=0.062 pxfer=0.196 get=0.613 total=0.810 secs --><!-- saved ./cache/ambientweather.net.C0210D1EEE55.json 119695 bytes --><!-- AWNtags.php processing most current lastData for C0:21:0D:1E:EE:55 -->...