I just tried making a symlink to the /tmp/ramdisk directory, inside the
public_html directory, and that worked.
pi@pi3:/home/weewx $ ln -s /tmp/ramdisk /home/weewx/public_html/ramdisk
NOW the web server is able to pull the image from the ramdisk.
<!-- Radar image -->
<div class="col-lg-5 radar-map toprow-height">
<img src="./ramdisk/webcam-time.jpg" width="640"
height="480">
</div>
</div>
<!-- End of first row -->
On Tuesday, August 10, 2021 at 5:57:47 PM UTC-5 Eric K wrote:
> 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/90c3ad6d-71d7-4649-bd24-95fa4465074cn%40googlegroups.com.