Search found 20 matches

by danb35
Sat Nov 22, 2025 11:30 pm
Forum: General
Topic: API upload fails after DST change
Replies: 7
Views: 5952

Re: API upload fails after DST change

So here's the diff between the original api.php and this updated one: *** api.txt Sat Nov 22 14:20:21 2025 --- api_new.php Mon Aug 26 15:48:52 2024 *************** *** 16,30 **** # v2.2 2017-07-02 Added Extra sensors; fixed bug rain at begin of day # v3.0 2017-08-11 Added multipliers # v3.1 2017-12-...
by danb35
Thu Nov 20, 2025 10:14 pm
Forum: General
Topic: API upload fails after DST change
Replies: 7
Views: 5952

Re: API upload fails after DST change

I'd still like to know if there's a version that actually supports PHP8, since 7.4 has been EOL for over 3 years now. But changing to run on PHP 7.4 seems to have resolved the issue.
by danb35
Sun Nov 09, 2025 11:22 pm
Forum: General
Topic: API upload fails after DST change
Replies: 7
Views: 5952

Re: API upload fails after DST change

* One idea... Since your MeteoTemplate seems to be outdated for PHP 8, if you can, try reverting to PHP 7... if you can. I don't believe that's an option, unfortunately. I really wish the PHP devs understood backward compatibility. Is there a Meteotemplate that isn't outdated for PHP 8? I thought 1...
by danb35
Sat Nov 08, 2025 11:42 am
Forum: General
Topic: API upload fails after DST change
Replies: 7
Views: 5952

Re: API upload fails after DST change

This has been up for almost a week with nearly 400 views; it's kind of discouraging to see no replies at all. I figured that if the API updates were broken (and giving no clue why), I'd try updating via Weather Underground, since I also report there. Going to the control panel, setting the update me...
by danb35
Mon Nov 03, 2025 1:23 pm
Forum: General
Topic: API upload fails after DST change
Replies: 7
Views: 5952

API upload fails after DST change

My Meteotemplate 19 system has been up and running for a few months now without major problems--until early Sunday morning (2:00 EST), when the idiotic Daylight Savings Time ended for the year in .us. At that time, updates via the API from WeeWx began failing with "500 Internal Server Error&quo...
by danb35
Tue Oct 14, 2025 10:03 pm
Forum: Problems
Topic: NWS forecast block images not working
Replies: 15
Views: 42206

Re: NWS forecast block images not working

In my perhaps-not-so-humble opinion, the fundamental problem is that the existing block is just scraping HTML to gather its data, rather than using NWS' API for the purpose. I've updated this block (and the warnings block) to use that API: https://www.meteotemplate.com/forum/viewtopic.php?t=2628 ......
by danb35
Mon Oct 13, 2025 9:58 pm
Forum: Problems
Topic: radarUS block: image not loading
Replies: 5
Views: 6807

Re: radarUS block: image not loading

Gus wrote: Sat Oct 11, 2025 5:17 pm Please continue working on updating the non-functional blocks.
Opened a separate thread on them:
https://www.meteotemplate.com/forum/vie ... php?t=2628
by danb35
Mon Oct 13, 2025 8:40 pm
Forum: General
Topic: Updated US blocks (nwsForecast, radarUS, warningsUSRegions) - PHP 8 compatibility, improved functionality
Replies: 4
Views: 6018

Updated US blocks (nwsForecast, radarUS, warningsUSRegions) - PHP 8 compatibility, improved functionality

Some time back, I moved my web server to a different platform, and I finally got around to getting Meteotemplate 19.0 running on the new system. And when I did, well, it looked like the blocks that depend on the US National Weather Service hadn't seen any love for quite some time (the most recent up...
by danb35
Sat Oct 11, 2025 8:31 pm
Forum: Problems
Topic: radarUS block: image not loading
Replies: 5
Views: 6807

Re: radarUS block: image not loading

Next up is the Regional US Warnings, but I'm having trouble understanding how variables are being used there. I'm probably going to have to take it down to a single location rather than the multiples it currently supports.
by danb35
Sat Oct 11, 2025 11:59 am
Forum: Problems
Topic: radarUS block: image not loading
Replies: 5
Views: 6807

Re: radarUS block: image not loading

I've updated this block:
Screenshot 2025-10-11 at 07.59.39.png
Screenshot 2025-10-11 at 07.59.39.png (357.39 KiB) Viewed 6638 times
My version is here:
https://github.com/danb35/MTBlocks/tree/master/radarUS
by danb35
Fri Oct 10, 2025 7:50 pm
Forum: Problems
Topic: radarUS block: image not loading
Replies: 5
Views: 6807

Re: radarUS block: image not loading

The problem appears to stem from the fact that the RIDGE service, which the US National Weather Service used to provide radar images, was decommissioned in 2020 and replaced by RIDGE II. Some radar products have been removed, and almost all have different URLs than before.
by danb35
Fri Oct 10, 2025 12:28 pm
Forum: Problems
Topic: nwsForecast: weather icons not loading
Replies: 6
Views: 7031

Re: nwsForecast: weather icons not loading

All right, done, at least as far as I can tell. The updated block is here:
https://github.com/danb35/MTBlocks/tree ... wsForecast
by danb35
Fri Oct 10, 2025 10:49 am
Forum: Problems
Topic: nwsForecast: weather icons not loading
Replies: 6
Views: 7031

Re: nwsForecast: weather icons not loading

Almost have it:
Screenshot 2025-10-10 at 06.48.33.png
Screenshot 2025-10-10 at 06.48.33.png (143.28 KiB) Viewed 6916 times
Just need to work a little more on parsing that valid date range.
by danb35
Wed Oct 08, 2025 11:55 am
Forum: Problems
Topic: nwsForecast: weather icons not loading
Replies: 6
Views: 7031

Re: nwsForecast: weather icons not loading

ChatGPT came up with this as code to retrieve and parse the NWS API: // Fetch grid and forecast URL from NWS API $pointsUrl = "https://api.weather.gov/points/{$lat},{$lon}"; $ch = curl_init($pointsUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, &qu...
by danb35
Wed Oct 08, 2025 10:10 am
Forum: Problems
Topic: nwsForecast: weather icons not loading
Replies: 6
Views: 7031

Re: nwsForecast: weather icons not loading

Well, I'm pretty sure this is at least part of the problem--it looks as though the icons are loaded via http. From line 179 of nwsForecastBlock.php: <img src="http://forecast.weather.gov/<?php echo $iconsSevenDay[1][$i]?>" class="nwsForecastIconImg"> Since I serve my site via HTT...
by danb35
Mon Oct 06, 2025 6:35 pm
Forum: Problems
Topic: nwsForecast: weather icons not loading
Replies: 6
Views: 7031

nwsForecast: weather icons not loading

I'm not sure if this is a common cause with my other thread, so I've made a new one. The nwsForecast block is loading the forecast data OK, but the images representing the forecast aren't:
Screenshot 2025-10-06 at 14.33.08.png
Screenshot 2025-10-06 at 14.33.08.png (55.7 KiB) Viewed 7031 times
MT 19.0. Where should I be looking for this problem?
by danb35
Mon Oct 06, 2025 6:32 pm
Forum: Problems
Topic: radarUS block: image not loading
Replies: 5
Views: 6807

radarUS block: image not loading

After a bit of a haitus using MT, I've done a clean installation of 19.0 on my server. Much of it seems to be working fine, but I'm having trouble with a couple of blocks. Here, the radarUS block--I have it set to show Jacksonville, FL, but the image isn't loading--it's stuck like this: Screenshot 2...
by danb35
Sun Apr 08, 2018 6:38 pm
Forum: Problems
Topic: V17 - unable to log in to admin page
Replies: 4
Views: 4567

Re: V17 - unable to log in to admin page

Well, don't I feel silly... For some reason I can't fathom, I had two copies of config.php, one in /template/, and one in the root directory. I was editing the copy in the root directory, and the template was (not surprisingly) using the one in /template/. $adminIPs updated to include the correct IP...
by danb35
Sun Apr 08, 2018 11:23 am
Forum: Problems
Topic: V17 - unable to log in to admin page
Replies: 4
Views: 4567

Re: V17 - unable to log in to admin page

look inside config.php I did; that's what I was editing. I hadn't tried * for adminIPs, but I wouldn't think with $enableAdminIP set to false that it should matter. But nonetheless, I changed $adminIPs to '*' and left $enableAdminIP set to false. Same result, "Unauthorized access". I then...
by danb35
Sat Apr 07, 2018 12:34 pm
Forum: Problems
Topic: V17 - unable to log in to admin page
Replies: 4
Views: 4567

V17 - unable to log in to admin page

For a while, I was running my web server at home, and had Meteotemplate installed on it. All was good. My home network was 192.168.1.0/24, $adminIPs was set to '192.168.1', I could log in to the admin page from home, but not from anywhere else. A couple of months ago, I moved my server to a remote V...