Using Yahoo Weather API and Unsplash Source to make a smart bedside clock
Have you ever woke up and had no idea what time is it? Is it early morning or the middle of the night? Should I check my phone or just try to go back to sleep?
I used to use my phone on my nightstand to check the time. As part of improving my digital wellbeing, I started charging my phone in the living room. This decreased my screen time during the night and morning as well as kept me wondering about the time in the middle of the night.
I did what a good consumer does when realizes there must be a product that eases my painful uncertainty and started searching for a clock. And as a person who is not afraid of modern technology, I obviously started looking for a smart clock.
You have many interesting options in the smart clock segment. Smartness often comes from extra information these devices can display. These can be weather forecast, current temperature, custom wallpapers, calendar integration. Things that you can have on the lock screen of your phone.
Then it strikes me that it is a great opportunity to resurrect one of my old tablet. I have a first-generation iPad mini laying around which I can repurpose as a smart bedside clock and weather dashboard.
Two API will be used. yahoo and unsplash. both are free and requires credit to the service or photographer.
intro to these services. how to set up. what you get.
In order to keep the screen of the iPad on for longer period of time and limit the device to a single app there are a couple of things we need to set up.
The Yahoo weather API provides live data on the current weather condition. There are 47 different conditions so I put together an icon kit - in hope of never display tornado or hirricane.