earthobservations / luftdatenpumpe

Acquire and process live and historical air quality data without efforts. Filter by station-id, sensor-id and sensor-type, apply reverse geocoding, store into time-series and RDBMS databases, publish to MQTT, output as JSON, or visualize in Grafana. Data sources: Sensor.Community (luftdaten.info), IRCELINE, and OpenAQ.
https://luftdatenpumpe.readthedocs.io/
GNU Affero General Public License v3.0
34 stars 3 forks source link

EEA: Repair retrieving station list #40

Closed amotl closed 1 year ago

amotl commented 2 years ago

Hi there,

regarding #12, this patch repairs retrieving the station list. The corresponding command now works again.

luftdatenpumpe stations --network=eea --progress

With kind regards, Andreas.

/cc @wetterfrosch, @gutzbenj

amotl commented 2 years ago

@wetterfrosch: Does the number of stations sound plausible to you?

$ luftdatenpumpe stations --network=eea --progress
2022-08-03 21:40:48,942 [luftdatenpumpe.source.common        ] INFO   : Using request caching, ttl=3000s
2022-08-03 21:40:48,955 [luftdatenpumpe.commands             ] INFO   : Acquiring list of stations from network "eea" with source "api"
2022-08-03 21:40:48,956 [luftdatenpumpe.source.eea           ] INFO   : Requesting station list from EEA at https://discomap.eea.europa.eu/map/fme/metadata/PanEuropean_metadata.csv
2022-08-03 21:40:56,055 [luftdatenpumpe.source.common        ] INFO   : Processing 6376 items
codecov-commenter commented 2 years ago

Codecov Report

Merging #40 (34d6702) into main (d89cf42) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   56.22%   56.22%           
=======================================
  Files           3        3           
  Lines         297      297           
=======================================
  Hits          167      167           
  Misses        130      130           
Flag Coverage Δ
unittests 56.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.