To get the data regarding the weather I'm using the API provided by Open-meteo.
I am currently scraping NSKYC to get the approximate color of the sky as well as the picture of the skyline.
For about a month I was scraping a camera that provided an image taken from Rosevelt Island. I was then processing the image myself using sharp to get the approximate HEX color code. As of now NSKYC is up and running again! Truth be told I prefer the image of lower Manhattan. One possible next step for this project is to setup some monitoring so that I will be notified when NSKYC is down.
Open-meteo is queried and a new image loaded every hour. This is all handled by an AWS Lambda function. The data returned by the Lambda function is then stored in an AWS S3 bucket for easy access.
The data from Spotify is handled in a similar fashion. I use a Lambda function to refresh the token that allows me to access Spotify's API. The token expires every hour. The new token is stored in another S3 bucket. The app uses the token to query Spotify's API and retrieves my top five artists.
This app is built using Next.js, Typescript, and Tailwind CSS.
The app itself is hosted by Vercel.
<-- Back