Did you test the URL from the box running WeeWX? I'm wondering if you have a DNS or some other connectivity problem on that box. You could try running:
curl -s https://www.aviationweather.gov/adds/metars?station_ids=KBIE+&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&chk_tafs=on&submitmet=Get+Weather and see if you get the html response for the page. On Friday, June 2, 2023 at 6:37:45 AM UTC-6 Nate Bargmann wrote: > I just added this extension and while I added it to my Standard skin, I > don't think that is where the problem lies. I see the following from > the logs: > > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: request URL - > https://www.aviationweather.gov/adds/metars?station_ids=KMYZ+&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&chk_tafs=on&submitmet=Get+Weather > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: error: Cannot get > Metar Report (KMYZ_metar). Recovering the last file saved. > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: error: There could > not be found an older Metar Report. Skipping! > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: request URL - > https://www.aviationweather.gov/adds/metars?station_ids=KBIE+&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&chk_tafs=on&submitmet=Get+Weather > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: error: Cannot get > Metar Report (KBIE_metar). Recovering the last file saved. > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: error: There could > not be found an older Metar Report. Skipping! > Jun 02 07:25:29 wxbox weewxd[5488]: metargenerator.py: Generated 0 metar > tables in 0.01 seconds > > When I open either URL as shown in the log I get a valid METAR Web page > (see attached screen shots), yet I am getting "Error - No METAR > available" in the generated Web page. > > I am using the latest metargenerator.py from the Git clone of the > referenced repository. Perhaps I need to open an issue on GitHub for > this extension? > > - Nate > > -- > "The optimist proclaims that we live in the best of all > possible worlds. The pessimist fears this is true." > Web: https://www.n0nb.us > Projects: https://github.com/N0NB > GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819 > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4d573c2a-b169-4508-b936-5a1a5f780135n%40googlegroups.com.
