Inspiration
I wanted to do something with hardware, and something that takes advantage of Phoenix Liveview's pubsub model to make something cool to watch !
What it does
Pico w hoovers up data about the surrounding air & a fullstack Elixir app displays them on pretty SVG graphs !
How I built it
So we take data from the BME688 & PMS5003 (broken) sensors, use the pico w's wifi capability to fling json, and then we finally ingest the data, and SSR a nice webpage. We lean on the Phoenix framework's pubsub model to make displaying live data simple & as immediate as possible
Challenges I ran into
It was really difficult remoting into ephermal containers to create the sql triggers to roll the db table rows. I ended up having to actually remote inside the elixir process running the app, to call library code to run raw sql against the prod db.
Accomplishments that I proud of
I'm proud to have a relatively pretty website! I didn't think that TailwindCSS would be easy, but it's such a breeze to use. I plan to use it going forward in all my websites.
What I learned
Docker containers are at first kind of hard, then easy, then really tough when one goes off the beaten path with them. Regardless, I'm very happy to now know how to debug these kinds of issues !
What's next for Byte Air!
I purchase a CO2 sensor! According to twitter, studying in poorly ventilated areas w/ high CO2 levels demolishes one's ability to reason, & I'd like to see firsthand if that's true.

Log in or sign up for Devpost to join the conversation.