Hello, me again.
I had used your JavaScript and it worked perfectly; however, soon after I used it, I was able to access the NOAA metar observations and resumed using my old .htx file. I had thought I had saved the .htx file which had the day/night formula, but I am unable to locate it.
As I have stated in another thread, I again started having a problem with retrieving NOAA metars. I switched over to Hamweather, but the data is available about 35 minutes later, which is not acceptable.
I again copied and pasted the script, using "
http://icons-ecast.wxug.com/i/c/a/^climate_icon1^.gif" and "
http://icons-ecast.wxug.com/i/c/a/^nt_climate_icon1^.gif" in place of the roanokevalleyweather.com icons, but got a blank space. I tried placing quotes before and after miltime(sunrise) and miltime (sunset):
var timetime = "miltime(time)";
var sunrisetime = "miltime(sunrise)";
var sunsettime = "miltime(sunset)";
...which made the icon appear. However, it was only the day icon that would appear. I even tried using the "nt_" icon in both instances but the day icon would show all of the time, even at night.
I tried using the roanokevalleyweather.com icons (with the quotes in the miltime areas still in place) and it worked like it was supposed to.
I don't recall having this problem before. Did something change at WUnderground or is this computer possessed?
I am using
www.irvineweather.net/beta.htm on this project.