The result is as I expected. If you reference a file that does not exist, 
it cannot work.

Try href="/var/www/html/weewx/webcam/snap.jpg" in your template.

Lorin Tremblay schrieb am Freitag, 13. Oktober 2023 um 16:44:34 UTC+2:

> Hi!
>
> The path of where the pictures is: 
> /var/www/html/weewx/webcam/snap.jpg
>
>
> *pi@Weewx-APRS3695*:*/ $* ls -l /webcam
>
> ls: cannot access '/webcam': No such file or directory
>
> *pi@Weewx-APRS3695*:*/ $* 
>
>
>
>
> On 12 Oct 23, at 13:30, Karen K <kk44...@gmail.com> wrote:
>
> Please, enter ls -l /webcam , not just ls -l
>
> Lorin Tremblay schrieb am Donnerstag, 12. Oktober 2023 um 19:06:17 UTC+2:
>
>>
>>    - What says ls -l /webcam ?
>>
>> *pi@Weewx-APRS3695*:*/ $* ls -l
>> total 68
>> lrwxrwxrwx   1 root root     7 May  2 20:04 *bin* -> *usr/bin*
>> drwxr-xr-x   4 root root  4096 Dec 31  1969 *boot*
>> drwxr-xr-x  16 root root  3840 Oct  7 21:27 *dev*
>> drwxr-xr-x 124 root root 12288 Sep 27 19:53 *etc*
>> drwxr-xr-x   3 root root  4096 May  2 20:37 *home*
>> lrwxrwxrwx   1 root root     7 May  2 20:04 *lib* -> *usr/lib*
>> drwx------   2 root root 16384 May  2 20:34 *lost+found*
>> drwxr-xr-x   2 root root  4096 May  2 20:04 *media*
>> drwxr-xr-x   2 root root  4096 May  2 20:04 *mnt*
>> drwxr-xr-x   4 root root  4096 May  2 20:14 *opt*
>> dr-xr-xr-x 235 root root     0 Dec 31  1969 *proc*
>> drwx------   5 root root  4096 Sep  5 22:13 *root*
>> drwxr-xr-x  29 root root   880 Oct 12 12:58 *run*
>> lrwxrwxrwx   1 root root     8 May  2 20:04 *sbin* -> *usr/sbin*
>> drwxr-xr-x   2 root root  4096 May  2 20:04 *srv*
>> dr-xr-xr-x  12 root root     0 Dec 31  1969 *sys*
>> drwxrwxrwt  18 root root  4096 Oct 12 12:59 tmp
>> drwxr-xr-x  11 root root  4096 May  2 20:04 *usr*
>> drwxr-xr-x  12 root root  4096 Sep  5 22:25 *var*
>> *pi@Weewx-APRS3695*:*/ $* 
>>
>>
>>
>>    - you have log_failure = True ?
>>
>> Yes always
>>
>>
>>    - set debug = 1 in weewx.conf, restart WeeWX and look at the log 
>>    again. There should be a message containing the file names and paths of 
>> the 
>>    files read and created
>>
>> Now just did and here are the results
>>
>> Oct 12 13:02:35 Weewx-APRS3695 wee_reports[29176] DEBUG *user.s*vg2png: 
>> /var/www/html/weewx/webcam/snap.svg --> /var/www/html/weewx/webcam/snap.png
>> Oct 12 13:02:35 Weewx-APRS3695 wee_reports[29176] INFO *user.s*vg2png: 
>> Created 1 PNG file in 1.60 seconds
>> Oct 12 13:02:43 Weewx-APRS3695 wee_reports[29176] DEBUG *user.s*vg2png: 
>> /var/www/html/weewx/webcam/snap.svg --> /var/www/html/weewx/webcam/snap.png
>> Oct 12 13:02:43 Weewx-APRS3695 wee_reports[29176] INFO *user.s*vg2png: 
>> Created 1 PNG file in 1.52 seconds
>>
>>
>>
>>
>>
>> Yes that picture is in use already for my Web pages.
>>
>> http:///www.gestionlgt.com/Maison/ <http://www.gestionlgt.com/Maison/>
>>
>>
>> On 12 Oct 23, at 12:21, Karen K <kk44...@gmail.com> wrote:
>>
>> Actually I do not see the glue in that.
>>
>>    - What says ls -l /webcam ?
>>    - you have log_failure = True ?
>>    - set debug = 1 in weewx.conf, restart WeeWX and look at the log 
>>    again. There should be a message containing the file names and paths of 
>> the 
>>    files read and created.
>>    - I assume that you looked at snap.jpg and checked that it is a valid 
>>    picture.
>>
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5107f476-1c67-4708-8378-4277d217b94bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/5107f476-1c67-4708-8378-4277d217b94bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> 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 weewx-user+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/38fe7f85-050d-4f8c-afe1-ff8c591431a2n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/38fe7f85-050d-4f8c-afe1-ff8c591431a2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c055358f-1efb-4a35-8e54-ae674a0497b8n%40googlegroups.com.

Reply via email to