One thing to keep in mind is the microSD cards will start to fail after so many write operations. I had one fail after about six months, after saving an image to it once every minute.
I'm currently a cheap IP camera that seems to loose it's network connection whenever weather gets hot. Looking for a better POE IP cam. On Sunday, August 8, 2021 at 5:08:41 PM UTC-6 Eric K wrote: > I have been working with the ESP32-CAM wifi camera today. > > In weewx, I'm using the Belchertown webpage skin. > In its stock setup, you get a weather RADAR image from Windy.com, that > updates every 5 minutes. > This afternoon, I replaced the Windy.com RADAR plot with the webcam image. > I don't really want to trade the RADAR for the webcam, but I'm not sure of > a slick way to have both, yet. > > It takes about 10 seconds to transfer an image frame from the ESP32-CAM to > the Raspberry Pi. > To remove this delay from the webpage, I wrote a simple executable bash > script to grab the webcam image and store it on the Raspberry Pi micro-SD > card. > Then, I have the weewx webpage fetch the webcam.jpg file from the "hard > drive" so it loads instantly. > > fetch script: > #!/bin/bash > wget http://192.168.8.122/snapshot.jpg -O > /home/weewx/public_html/images/webcam.jpg > > Then I have the Belchertown skin put the webcam.jpg file into the page, > > from the Belchertown index.html.tmpl file: > <!-- Radar image --> > <div class="col-lg-5 radar-map toprow-height"> > <img src="./images/webcam.jpg" width="640" > height="480"> > </div> > </div> > <!-- End of first row --> > > I'd like to polish this a bit, but it is working. > > > > On Sat, Aug 7, 2021 at 5:32 PM p q <[email protected]> wrote: > >> Please continue to post your results. Particularly which hardware you >> choose. I'm interested in doing the same with my own skin. >> >> As a side note, I'm playing around with Grafana to see what advantages it >> has compared to the standard graphs. It was easy to install on my raspberry >> pi and fairly easy to hook up to the SQLite DB. >> >> On Sat, Aug 7, 2021 at 3:24 PM Eric K <[email protected]> wrote: >> >>> I also want to check out your perl scripts, @mwall! >>> >>> On Saturday, August 7, 2021 at 5:18:33 PM UTC-5 Eric K wrote: >>> >>>> Thanks for all the responses. >>>> >>>> Shortly after posting this I got a couple of the ESP32-CAM modules and >>>> loaded Tasmota firmware into them. >>>> see: https://cgomesu.com/blog/Esp32cam-tasmota-webcam-server/ >>>> You have to use the specific Tasmota32 webcam firmware: >>>> tasmota32-webcam.bin >>>> <http://ota.tasmota.com/tasmota32/release/tasmota32-webcam.bin> >>>> The maximum resolution of these is only 1600x1200. >>>> The upside is that you can easily grab a single frame using a simple >>>> URL command: http://192.168.8.122/snapshot.jpg >>>> The only downsides I see: with the plastic lens and jpeg compression, >>>> the images are not great for fine detail. >>>> >>>> Given the low cost, small size, MIPI camera interface, and wifi >>>> capability of the RPi Zero W board, I reconsidered an RPi camera. >>>> I'm currently assembling a RPi Zero camera with a 5mp camera module. >>>> I am getting single images out of it with the raspistill application: >>>> raspistill -v -o /home/pi/Pictures/pi-cam-test.jpg >>>> >>>> I'd like to grab an image every 5-10 minutes and have the current image >>>> show up in the Belchertown weewx page. >>>> I'd also like to create a daily time lapse movie like others have done. >>>> I recall seeing some webcam script examples in this weewx-user group to >>>> do these 2 things. >>>> I need to search for them again. >>>> >>>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d416fe44-eec1-45ab-9ef7-7892034c55a5n%40googlegroups.com.
