natbat / pillarpointstewards

Website for pillarpointstewards.com
Apache License 2.0
7 stars 0 forks source link

Automation of fetching of future tide predictions #257

Open simonw opened 3 months ago

simonw commented 3 months ago

We can run out at the moment if we forget to run that TidePrediction.populate_for_station(9414131) thing occasionally.

simonw commented 3 months ago

Can imitate this mechanism: https://github.com/natbat/pillarpointstewards/blob/8f9a389592c99fc08535619f56b94225b357c27b/.github/workflows/fetch-weather.yaml#L1-L17

simonw commented 3 months ago

The problem with using GitHub Actions for this is the risk that the scheduled action may deactivate in the future.

Alternatively, maybe this is something that can be done on-demand when the calculator runs if there are less than 6 months of predictions available?