Author Topic: wxstarcharts  (Read 1715 times)

0 Members and 1 Guest are viewing this topic.

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
wxstarcharts
« on: November 18, 2017, 08:49:09 PM »
Just noticed that WU isn't producing the graphic for this page anymore. Here is the dead link that use to work.

http://newspaperwww.wunderground.com/cgi-bin/wuds?lat=47.4992&lon=-121.7766&year=2017&month=11&day=18&hour=17&min=42&timezonename=America/Los_Angeles&height=500&width=500&fov=170&dir=0&alt=90&showgrid=1&showplanets=1&showplanetnames=1&showconst=1&showskyline=1&showinfo=1

Here's the link to my star page with a "x" where the graphic use to be. I searched, and didn't see an update for this script.

https://www.northbendweather.com/wxstar.php

Does anyone have a work around for this script to get the graphic to work again?

Thanks
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2573
    • SouthEast Lincoln, NE Weather
Re: wxstarcharts
« Reply #1 on: November 19, 2017, 08:43:21 AM »
Unfortunately these charts have been gone for many months now.  I wasn't able to find a suitable alternative so I expanded the Sun-Moon Data to include the sunspots history and current graphic and commented out the star chartsMy code is sort-of a mess unless you view it in an editor such as Dreamweaver where the commented-out sections are grayed-out.

If you use this code comment out the reference to the sunspots graphic on my site and use the Newquay site instead.  Change
Code: [Select]
<img src="http://www.gwwilkins.org/wxgraphs/sunspots30day.jpg?<?php echo time()?>" alt="Sunspots last 30 days" /><br />
<!-- <img src="http://www.newquayweather.com/wxgraphs/sunspots30day.php" alt="Sunspots last 30 days" /><br />
<small>Graph courtesy: <a href="http://www.newquayweather.com/" title="UK" target="_blank">Newquay Weather</a></small> -->
to
Code: [Select]
<!-- <img src="http://www.gwwilkins.org/wxgraphs/sunspots30day.jpg?<?php echo time()?>" alt="Sunspots last 30 days" /><br /> -->
<img src="http://www.newquayweather.com/wxgraphs/sunspots30day.php" alt="Sunspots last 30 days" /><br />
<small>Graph courtesy: <a href="http://www.newquayweather.com/" title="UK" target="_blank">Newquay Weather</a></small>
because there's no guarantee my site's graphic will be current.  Running the script, 'sunspots30day.php', on my GoDaddy site is problematic at times, so I run a modified script via a cron and reference the resulting saved 'jpg' in order to eliminate extraordinarily long page-load times when it is included.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: wxstarcharts
« Reply #2 on: November 19, 2017, 11:57:26 AM »
Thanks Jerry.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9244
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxstarcharts
« Reply #3 on: November 19, 2017, 03:38:27 PM »
I use the formilab astronomical page for it
Code: [Select]
<div style="background-color: #808080; padding: 2em 0;">
  <?php 

$UTCdate 
urlencode(gmdate("Y/n/j H:i:s"time()));
$UTCdate2 gmdate('D, d-M-Y h:i:s ',time()) . 'UTC';
$LCLdate date('D, d-M-Y h:ia T',time());
$lat $SITE['latitude'];
$latdir = ($lat 0.0)?'North':'South';
$lon $SITE['longitude'];
$londir = ($lon 0.0)?'West':'East';
$lat abs($lat);
$lon abs($lon);

?>

  <h2 style="padding: 2em 0;"><a href="https://www.fourmilab.ch/cgi-bin/uncgi/Yoursky?z=1&lat=<?php echo $lat?>&ns=<?php echo $latdir?>&lon=<?php echo $lon?>&ew=<?php echo $londir?>"><i>Your Sky</i></a> planets and constellations at <?php echo $LCLdate?></h2>
<p><a href="https://www.fourmilab.ch/cgi-bin/uncgi/Yoursky?z=1&amp;lat=<?php echo $lat?>&amp;ns=<?php echo $latdir?>&amp;lon=<?php echo $lon?>&amp;ew=<?php echo $londir?>"> <img src="https://www.fourmilab.ch/cgi-bin/Yoursky?date=0&amp;utc=<?php echo $UTCdate?>&amp;jd=2450851.02963&amp;lat=<?php echo $lat?>&amp;ns=<?php echo $latdir?>&amp;lon=<?php echo $lon?>&amp;ew=<?php echo $londir?>&amp;coords=on&amp;moonp=on&amp;deepm=2.5&amp;consto=on&amp;constn=on&amp;limag=5.5&amp;starnm=2.0&amp;starbm=2.5&amp;imgsize=620&amp;dynimg=y&amp;scheme=0&amp;elements="
alt="Your Sky view at <?php echo $UTCdate2?> -- click for interactive view" width="620" height="620"
style="border: none;"
title="Your Sky view at <?php echo $UTCdate2?> -- click for interactive view" /></a><br/><small>See <a href="https://www.fourmilab.ch/yoursky/help/icons.html">Icon meanings</a></small></p>
</div>
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1128
    • Wilmslow Astro
Re: wxstarcharts
« Reply #4 on: November 19, 2017, 04:17:35 PM »
Heavens Above on this old broken page of mine: http://www.wilmslowastro.com/whatsup/whatsup.htm
Mark

 

anything