5/16/2023 0 Comments Shiny server raspberry pi![]() ![]() The script below is a simple Python script which outputs temperature in Celsius and Fahrenheit each second. Once the sensor is installed, you can use the Raspberry Pi’s GPIO interface to read in the sensor data. Helpful Graphic from Adafruit - Your Mileage May Vary I recommend referring to other setup guides online and testing what might work best for you, but it is totally expected that this step might be a bit tricky! My Configuration I’m not a sensor and smart devices guru, so it took some trial-and-error to get my sensor properly connected with my breadboard and Pi. If you’re interested in building something similar, feel free to steal from the setup details below! Hardware Requirements Hourly, Daily, and Weekly temperature plots for my house in dashboard form, built in Shiny and available on the internet.Some small SQL queries which run on Athena and aggregate sensor data by hour and day.Athena should crawl the schema of the temperature data in S3 and make the data queryable.The Firehose should write data in batches to CSV files in an S3 bucket.AWS IoT sends messages from the Pi to a Kinesis Firehose stream.Raspberry Pi reads in temperature data every ten seconds and transmit to an AWS IoT message topic.Here’s the final architecture for the solution I ended up building: Plus, the Pi easily connects to the AWS IoT interface, which would allow me to transmit data to AWS and then process and save that data in a variety of locations for analysis. As someone who likes to be cool in the evening for bedtime, but also doesn’t love wearing sweaters indoors, I wondered if there might be a better way of monitoring my house’s temperature.įortunately for me, I had a surplus Raspberry Pi lying around, which I quickly determined could be leveraged into serving as the brains of my thermostat, given the right input sensors. ![]() This fall I moved into a new house, which I quickly learned has an extremely unreliable thermostat.
0 Comments
Leave a Reply. |