I changed my scripts to put the pictures into a ramdisk.
But, the web server can't find them in the ramdisk.

First I tried this - web server didn't find it:
                    <!-- Radar image -->
                    <div class="col-lg-5 radar-map toprow-height">
                        <img src="/tmp/ramdisk/webcam-time.jpg" width="640" 
height="480">
                    </div>
                </div>
                <!-- End of first row -->

I searched for some guidence and then tried this - web server didn't find 
it:
                    <!-- Radar image -->
                    <div class="col-lg-5 radar-map toprow-height">
                        <img src="file:/tmp/ramdisk/webcam-time.jpg" 
width="640" height="480">
                    </div>
                </div>
                <!-- End of first row -->

How are others accessing a ramdisk for webserver photos?



On Tuesday, August 10, 2021 at 3:58:50 PM UTC-5 Eric K wrote:

> I like the idea of writing to the RAM disk, to avoid multiple rewrites the 
> micro SD card.
> I didn't know it was an option.
>
> This is all there is to it?  
> https://www.linuxbabe.com/command-line/create-ramdisk-linux
> Looks easy!
> On Tuesday, August 10, 2021 at 3:47:36 PM UTC-5 vince wrote:
>
>> I use a cheapo USB cam on a pi and save a still periodically using 
>> 'motion' as the software on the pi.  I write the file to ramdisk to avoid 
>> the SD card file write issue and grab the still via cron from my weewx 
>> system.
>>
>>

-- 
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/056f9c8b-bdb5-4a40-b3e3-a4186df96e75n%40googlegroups.com.

Reply via email to