To get the data regarding the weather I'm using the API provided by Open-meteo.
Previously I was scraping NSKYC to get the approximate color of the sky as well as the picture of the skyline.
Unfortunately, the cam that provided these images seems to be down, with no information about when it might come back. As such, NSKYC is no longer useful to me (RIP NSKYC—it was a great idea).
Because of this I am now capturing a new image of the NY Skyline, taken from Rosevelt Island. I process the image using sharp to determine the average color of the sky. Sometimes, you just have to do things yourself.
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