METAR or AERIS current weather and airport data not working since 10.Jan.2024

Hi all and a nice new year! Currentsky and Metar LIPE airport were working fine until jan.2024. As from that date no METAR neither AERIS data ara available in PWS-Dashboard current sky and METAR airport.

Case 1 - USING AERIS API KEY
Settings of PWS dashboard for Sky Conditions
Aeris API Access ID LNO0hnoRSmx********
Aeris API Secret Key lrNL3FP0lrCDGBK46SvH4zw**************
Results:
Currentsky: OFFLINE
One hour forecast = OK
LIPE airport data : OFFLINE



Case 2 - USING METAR ( CHECKWX ) API KEY
Settings of PWS dashboard for Sky Conditions METAR
CheckWX Metar API KEY www.checkwxapi.com: cfa4553ad0a2ae*********
Results:
Currentsky = OK ,
One hour forecast OFFLINE,
LIPE airport data OFFLINE


Test of ccn_ccb_darksky_block.php
Warning : Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 71
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 71
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 72
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 72
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 73
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 73
Warning: Undefined variable $darksky_used_temp in /membri/michelinostreet/ccn_darksky_block.php on line 74
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 80
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 81
Warning: Undefined variable $darksky_used_temp in /membri/michelinostreet/ccn_darksky_block.php on line 75
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 80
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 81
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 77
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 77
Warning: Undefined variable $darksky_used_temp in /membri/michelinostreet/ccn_darksky_block.php on line 85
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 80
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 81
Warning: Undefined variable $darksky_used_temp in /membri/michelinostreet/ccn_darksky_block.php on line 86
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 80
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 81
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 90
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 90
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 91
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 91
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/ccn_darksky_block.php on line 95
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 102
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 102
Warning: Undefined variable $darksky_used_wind in /membri/michelinostreet/ccn_darksky_block.php on line 102
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 181
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 189
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 103
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 103
Warning: Undefined variable $darksky_used_wind in /membri/michelinostreet/ccn_darksky_block.php on line 103
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /membri/michelinostreet/PWS_shared.php on line 181
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /membri/michelinostreet/PWS_shared.php on line 189
Warning: Undefined variable $cond in /membri/michelinostreet/ccn_darksky_block.php on line 104
Warning: Trying to access array offset on value of type null in /membri/michelinostreet/ccn_darksky_block.php on line 104
09:20:00

Mist
One hour forecast:
Temperature -999°C
Windspeed 0 km/h
Rain 0%

Call checkwx.com LIPE direct data with api key = ok

Direct call METAR LIPE
https://api.checkwx.com/metar/LIPE/decoded?x-api-key=cfa4553ad0a2aea*********
Results: ok
{“results”:1,“data”:[{“icao”:“LIPE”,“barometer”:{“hg”:29.97,“hpa”:1015.0,“kpa”:101.49,“mb”:1014.9},“clouds”:[{“code”:“CLR”,“text”:“Clear skies”}],“conditions”:[{“code”:“BR”,“text”:“Mist”}],“dewpoint”:{“celsius”:-4,“fahrenheit”:25},“elevation”:{“feet”:121.0,“meters”:37.0},“flight_category”:“IFR”,“humidity”:{“percent”:100},“observed”:“2024-01-14T08:20:00”,“station”:{“geometry”:{“coordinates”:[11.2887,44.5354],“type”:“Point”},“location”:“Bologna, Emilia-Romagna, Italy”,“name”:“Bologna Guglielmo Marconi Airport”,“type”:“Airport”},“temperature”:{“celsius”:-4,“fahrenheit”:25},“raw_text”:“LIPE 140820Z 34003KT 310V010 2000 BR NSC M04/M04 Q1015”,“visibility”:{“miles”:“1.24”,“miles_float”:1.24,“meters”:“2,000”,“meters_float”:2000.0},“wind”:{“degrees”:340,“speed_kph”:6,“speed_kts”:3,“speed_mph”:3,“speed_mps”:2}}]}

Data loaded in jsondata Metar34LIPE.txt = ok
Results:
{“results”:1,“data”:[{“icao”:“LIPE”,“barometer”:{“hg”:29.97,“hpa”:1015.0,“kpa”:101.49,“mb”:1014.9},“clouds”:[{“code”:“CLR”,“text”:“Clear skies”}],“conditions”:[{“code”:“BR”,“text”:“Mist”}],“dewpoint”:{“celsius”:-5,“fahrenheit”:23},“elevation”:{“feet”:121.0,“meters”:37.0},“flight_category”:“IFR”,“humidity”:{“percent”:93},“observed”:“2024-01-14T07:50:00”,“station”:{“geometry”:{“coordinates”:[11.2887,44.5354],“type”:“Point”},“location”:“Bologna, Emilia-Romagna, Italy”,“name”:“Bologna Guglielmo Marconi Airport”,“type”:“Airport”},“temperature”:{“celsius”:-4,“fahrenheit”:25},“raw_text”:"LIPE 140750Z 34002KT 1800 BR NSC M04/M05

Can someone indicate any other test or config I must do? Thanks a lot for help

Tested through:
https://michelinostreet.altervista.org/PWS_module_test.php

Hi michelinostreet,

Very strange situation.
If the CurrentSky scripts do not get the expected data, they check other data sources available according to your settings.
That can be DarkSky if your settings still have a key a.s.o. for DarkSky.

If you click the bottom button in PWS_module_test.php:

DarkSky is not supplying any data since a year.

PWS_load_files.php (498) Darksky_______: time spent: 0.0139 - invalid CURL Received HTTP code 500 from proxy after CONNECT https://api.forecast.io/forecast/_API_SETTING_/44.505094,11.369497?lang=it&units=si

That line should read

PWS_load_files.php (232) Darksky_______: not loaded API=
as DarkSky can not be used. There arer alternatives though.


Aeris returns for the current conditions in jsondata/aeris_ccn.json

[code] => warn_no_data
[description] => Valid request. No results available based on your query parameters.

That message occurs when the airport stopped “up-loading” data or if Aeris could not find current METAR data for that airport.


You METAR data is now OK.
jsondata/metar34LIPE.txt

{“results”:1,“data”:[{“icao”:“LIPE”,“barometer”:{“hg”:29.94,“hpa”:1014.0,“kpa”:1


So probably there is a period of time the Aeris script can not find the data.
As soon as Aeris can get the data and store it in the cache, all should be working again.

First thing to do: remove the API-key for DarkSky in your easyweather-settings.
Then we can see if the problem is with the airport or with the scripts.
You can then switch to the AirPort metar for as long as Aeris has problems.

Wim

Hi Wim,
have a nice new year.
I’ve checked now ( 14:41 - 14.jan.2024 ) and the system works now again as usual without removing darksky api key.

I really don’t know what happened.
Anyway I’ve removed darksky api key as you indicated.
Again thanks a lot for your help!