Custom Weather Camera Feed With Software Tricks

With a gorgeous view of the Italian seaside, we’re not surprised [Danilo Larizza] had a couple IP cameras set up to pull in real-time views. But using a Raspberry Pi, an environmental sensor, and some software trickery to overlay the current (and naturally, perfect) weather conditions over the images? Now he’s just teasing us.

Whatever his motives are, we have to admit that the end result is very nice. Especially when you find out that there’s no complex hardware or software at work here. An original Raspberry Pi is doing all the heavy lifting by pulling a frame from the external IP camera using ffmpeg, polling the I2C-connected BME280 temperature and humidity sensor with a Python script, and then producing a final snapshot with the environmental data laid over top using ImageMagick.

[Danilo] gives the exact commands he’s using for each step of the process, making it easy to follow along and see how everything comes together in the end. That also makes it much easier to adapt for your own purposes should you feel so inclined. Once you see how all the pieces fit together, where the data and images come from is up to you.

We’ve previously shown how some simple Python code can be used to turn your raw data into attractive images, and combining that with real-world photographs is an excellent way of turning a text file full of values into a display worth showing off.

4 thoughts on “Custom Weather Camera Feed With Software Tricks

  1. Be more fun if you did it for somewhere where there’s not much chance of getting a live web feed…

    “Welcome to Cydonia weather service, today’s forecast: Mostly dusty with outbreaks of weak sun, High -10, Wind E 50. 30% chance of CO2 pellets this evening…..”

    1. Heh, do we even trust any sensors to get within 1 sig fig of correct value?

      I think the most accurate hygrometer I ever saw, apart from the wet bulb/dry bulb do the math type, was a piece of fabric soaked in a saturated salt solution, then dried, that changed color with humidity… forgot whether it was CuSO4 or Cobalt Chloride or what though.

    2. yes, that is kinda funny. Even very expensive (relative to a BMP280 at least) Vaisala serial sensors report only XX.X% I love the overlay on the image- solar radiation, clouds, fog, precipitation, snow on the ground… just generally if it’s a nice day… it’s all in there!

Leave a Reply to DougCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.