klenwell / dr-george

MIT License
0 stars 0 forks source link

Extract data from weather station. #4

Closed klenwell closed 1 day ago

klenwell commented 1 month ago

Context

Identify the government API, get an API key, and make a successful request to get data from a local weather station. Specifically, want to fetch daily high temperature data.

Acceptance Criteria

Dev Notes

References

Tasks

klenwell commented 3 weeks ago

Successfully pulled data from NOAA source:

~/projects/dr-george$ python -m dr_george.main interactive

(Pdb) len(data)
364
(Pdb) data[0]
{'date': '2023-01-01T00:00:00', 'datatype': 'TMAX', 'station': 'GHCND:USW00023119', 'attributes': ',,W,', 'value': 55.0}
klenwell commented 3 weeks ago

I just realized that the station ID I was using is not for Santa Ana.

Santa Ana here: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/locations/ZIP:92706/detail

ID: GHCND:USC00047888

All OC Stations: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/locations/FIPS:06059/detail

klenwell commented 2 days ago

Station IDs

klenwell commented 1 day ago

Pull Request: https://github.com/klenwell/dr-george/pull/6