AdelaideBaron / mrc-condition-checker

An application to check the weather conditions of Mersey Rowing Club at the 6am and 6pm (for morning and evening sessions) to see if boats can go ahead.
MIT License
0 stars 0 forks source link

Call & extract information from open weather response #7

Closed AdelaideBaron closed 4 months ago

AdelaideBaron commented 4 months ago

User Story

I want to get the next 6pm, and 6am (whichever order suits best, e.g. at 8am it would be 6pm & 6am, but 8pm it would be 6am and 6pm), so that I can see weather data

Implementation

Image

Testing

fields to extract:

notes

Send this, unfiltered, for the next sessions 6am/6pm

AdelaideBaron commented 4 months ago

Issue for api investigated, have to provide card details - up to 1000 calls per day for free. Adding in a ticket to implement a daily counter for these calls, but in a way that minimises resources - no DB. Perhaps an endpoint from open weather that provides this information.

AdelaideBaron commented 4 months ago

URL: https://api.openweathermap.org/data/3.0/onecall/timemachine?lat=53.39293&lon=-2.98532&dt=1718653615&appid=30e37ff4eced9848ff7533eb14b0c685

AdelaideBaron commented 4 months ago

In this ticket could we also remove the newline in the app.yml on line 9 please, my bad! and change to be camelCase too