A project fit for younger kids. In this project, an Amazon function reads the weather from openweathermap.com service and displays it in a way suitable for kids, by showing them an outfit rather than an abstract weather condition they are too young to understand.
A wooden box was made from balsa wood as well as the dial, outfits were selected from stock images online printed and cut out and glued on the dial.
A simple Python Lambda function pulls the weather a web service and invokes the servo move every 30 minutes. The lambda function translates the temperature to servo movement based on the following equation
degree=((float(weather['main']['temp'])-10)*180)/40
I chose to keep the coding on the Argon at a minimal with all the calculations taking place in the Lambda function. To schedule it Amazon cloud watch was used to invoke the function every 30 minutes.
Comments