If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Search found 822 matches

by saratogaWX
Thu Aug 31, 2017 1:31 pm
Forum: Saratoga Templates
Topic: ec-forecast.php V4.03 available to fix missing icons display
Replies: 0
Views: 170

ec-forecast.php V4.03 available to fix missing icons display

ec-forecast.php V4.03 is now available to fix the icon display issues with the EC website changes on 29-Aug-2017. Please note that this is a quick fix job (since I'm on vacation), so some functionality is not implemented: 1) the '*' for Abnormal temperature trends is not working 2) only the long Day...
by saratogaWX
Thu Aug 17, 2017 11:33 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

Brian is using the same class Moon() for rise/set calculations as I am using (renamed to class calcMoon in my code). That program was showing an hour off the USNO times due to a coding foible the original author had used.. setting the timezone offset by 15degree chunks based on the longitude. The or...
by saratogaWX
Thu Aug 17, 2017 10:04 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

Oops, forgot to honor the $SITE['WDdateMDY'] setting for the output dates.

Change

Code: Select all

   $timeFormat = "H:i m/d/Y";
to

Code: Select all

   $timeFormat = $useMDY?"H:i m/d/Y":"H:i d/m/Y";
and that should fix it up.

I've updated the beta script with that change.
by saratogaWX
Thu Aug 17, 2017 9:40 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

Yes, the Settings.php entry overrides the default set in get-USNO-sunmoon.php script itself.

Here's a better comparison with the USNO v.s. other software for times -- the USNO timeout had to be set to 30 seconds to have the API respond :(
by saratogaWX
Thu Aug 17, 2017 3:51 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

After several months of trying/tweaking, I think I found a good set of calculations to allow replacement of the USNO for moon times/sun times. This uses 3 classes with some mods from their originals. One does phase/illumination, one does rise/set times and one (from Jachym) is used for moon transit ...
by saratogaWX
Mon Aug 14, 2017 6:53 pm
Forum: Saratoga Templates
Topic: PHP Warning: Cannot modify header information - headers already sent by
Replies: 2
Views: 150

Re: PHP Warning: Cannot modify header information - headers already sent by

Your header.php has a line header('Content-Type: text/html; charset=utf-8'); that is not in the distributed header.php .. that's what is causing the extra warning statement. In the template, the character set is established by top.php with //Version V3.04 - 05-Feb-2013 - added support for HTML5+UTF8...
by saratogaWX
Mon Aug 14, 2017 4:15 pm
Forum: Saratoga Templates
Topic: Regional network mesonet-map updated V3.08
Replies: 5
Views: 175

Re: Regional network mesonet-map updated V3.08

Thanks! I've released 3.09 of mesonet-map-common.php with those fixes.
by saratogaWX
Mon Aug 14, 2017 2:02 am
Forum: Saratoga Templates
Topic: Regional network mesonet-map updated V3.08
Replies: 5
Views: 175

Re: Regional network mesonet-map updated V3.08

Busted.. you found parts that I'd NOT updated, and I've not been watching my error_log closely for a while. The issue was caused by no readings for GUST (mostly) and in some instances by bad reading for TEMP or HUM in the fire-danger script. I've added some is_numeric() checks before trying to do ma...
by saratogaWX
Sun Aug 13, 2017 1:10 am
Forum: Saratoga Templates
Topic: Regional network mesonet-map updated V3.08
Replies: 5
Views: 175

Regional network mesonet-map updated V3.08

One of our networks (CZWN) went HTTPS-only. mesonet-map-common.php V3.08 was released to use curl for the access to the regional network's config/data files to produce the mesonet-map. You can use mesonet-map-check-versions.php on your installation to see what file(s) may need update. Download the f...
by saratogaWX
Fri Aug 11, 2017 10:13 pm
Forum: Saratoga Templates
Topic: Saratoga Templates with PHP 7
Replies: 27
Views: 1730

Re: Saratoga Templates with PHP 7

That was likely a transient error caused by a problem with alerts.weather.gov today. They reported about a 1 hr outage earlier today. The page is not showin the error now.
by saratogaWX
Tue Aug 08, 2017 3:51 pm
Forum: Davis VP/VP2/Vue
Topic: Changing Date Format
Replies: 4
Views: 262

Re: Changing Date Format

Glad you got it sorted.. the date format on the system running Cumulus/CumulusMX should be set to use DD/MM/YYYY or MM/DD/YYYY as the form. Your system was likely set to use YYYY-MM-DD format, and that is not currently handled by the Saratoga template. Changing the OS default locale format to DD/MM/...
by saratogaWX
Fri Aug 04, 2017 12:27 am
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

I always trust the source code, not necessarily the documentation :)

They may have regressed the code base due to the problems of the last week.. would make some sense if they cut over 2.0.1 and began experiencing issues with the server.
by saratogaWX
Thu Aug 03, 2017 2:11 am
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

Yes, I've observed that behavior with Cumulus before. The USNO returns the nearest moonrise/moonset to the current date:time and returns both date and time so it's easy to see when only one event occurred 'today'. Of the weather software programs I have running, only Weather-Display provides both da...
by saratogaWX
Wed Aug 02, 2017 10:19 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

The WU api 'astronomy' JSON includes:

precentIlluminated
ageOfMoon
current_time.hour
current_time.minute
sunrise.hour
sunrise.minute
sunset.hour
sunset.minute

Not quite enough and no moonrise/moonset date/times.
by saratogaWX
Wed Aug 02, 2017 9:17 pm
Forum: Saratoga Templates
Topic: Error regarding USNO Sunmoon data
Replies: 46
Views: 1822

Re: Error regarding USNO Sunmoon data

I put together a test page that compares the Sun/Moon data from the USNO to that provided by various weather software and scripts. https://saratoga-weather.org/2017-08-02_moon-compare.jpg As you can see, not all the software provides all the data needed. The blue bars highlight the needed data for t...

Go to advanced search