<small>_**Full-stack IoT pipeline: investigating whether climate news influences household energy consumption**_</small>
During the **COP26 climate buzz**, my housemates and I started noticing how much energy and climate talk filled our feeds. It made me wonder: **Does all this climate news actually change how we use electricity at home?**
So... I decided to find out...
I explored the correlation between my household energy consumption and news about climate change shared on Twitter.
**spoiler: there is no correlation...***
![[../assets/Attachments/iot/83B7BAC1-8755-4D47-852D-5DB7F0461902_1_201_a.jpeg]]
## **how did i do it ?**
### **1. electricity data collection**
Track my household electricity with the red flashes on my energy meters, a ligh sensor and ESP32.
![[../assets/Attachments/iot/adfrnd.gif]]
### **2. collect media data**
Used twitter API to collect tweets about "climate change" and "energy".
![[../assets/Attachments/iot/adfvfz.gif]]
### **3. live storage**
Used MongoDB for data storage and AWS EC2 for hosting scripts.
![[../assets/Attachments/iot/adfv3e.gif]]
### **4. live feedback**
Built a streamlit app to provide real-time electricity and tweet data and their correlation.
![[../assets/Attachments/iot/adfv7w.gif]]
Check the [**Code**](https://github.com/cocoritzy/Energy-prediction-algorithms)