Install Deno
Register with Dark Sky API and get an API key. I did this using Rapid API.
You'll need to expose the API key and host url as environment variables.
To do this, you can create a .env
file in the root of the project.
You can see an example in .env.example
.
Run deno run -A get-cloud-cover-data.ts
to get the cloud data for a range of
dates. You can then look at the maximum cloud cover for each day by running
deno run -A process-cloud-cover-data.ts
. Note that both files have
configuration inside of the file.
There is also a bunch of already scraped data in the data
directory.