Introducing weewx-svg2png generator for creating thumbnail images and mini-pics in WeeWX

346 views
Skip to first unread message

Karen K

unread,
Oct 3, 2023, 10:15:11 AM10/3/23
to weewx-user
If there is a link in a social media post, sites like Twitter (X), Mastodon and others show a preview image or thumbnail of the linked page. For a long time I wondered how to define that image. Then I found out they look for special "meta" statements within the page header. I included such statements in my weather website, and indeed, the respective images were displayed.

I used a screenshot for that purpose. But the screenshot said 3,8°C, and it's summer time and temperatures are much higher. And I wondered how to get actual data into that screenshot. So I thought I could create an SVG file using the CheetahGenerator functionality of WeeWX, and convert it to PNG afterwards. I found the CairoSVG package to do the converting job. 

But how to do the conversion after WeeWX created the SVG file, but before WeeWX sends the data to the web server?

The answer is to write a generator for use in skins. And that's it: weewx-svg2png

Now I look what is happening, and meanwhile I publish the generator here.

Stefan Gliessmann

unread,
Oct 5, 2023, 8:21:44 AM10/5/23
to weewx-user
Awesome!

I will give it a shoot later and let you know :)

Thanks in advance for your contributions!!!!

Karen K

unread,
Oct 7, 2023, 2:47:53 AM10/7/23
to weewx-user
I added another example. It shows how to put WeeWX weather data onto a webcam picture.

Lorin Tremblay

unread,
Oct 7, 2023, 8:41:03 PM10/7/23
to weewx-user
I'm personally getting this error when I try to install it


Request to install '/home/pi/Desktop/weewx-svg2png.zip'

Extracting from zip archive /home/pi/Desktop/weewx-svg2png.zip

Traceback (most recent call last):

  File "/usr/share/weewx/wee_extension", line 92, in <module>

    main()

  File "/usr/share/weewx/wee_extension", line 84, in main

    ext.install_extension(options.install)

  File "/usr/share/weewx/weecfg/extension.py", line 130, in install_extension

    self.install_from_dir(extension_dir)

  File "/usr/share/weewx/weecfg/extension.py", line 150, in install_from_dir

    installer_path, installer = weecfg.get_extension_installer(extension_dir)

  File "/usr/share/weewx/weecfg/__init__.py", line 1904, in get_extension_installer

    installer = loader()

  File "/var/tmp/weewx-svg2png-master/install.py", line 8, in loader

  File "/var/tmp/weewx-svg2png-master/install.py", line 12, in __init__

NameError: name 'SNMPInstaller' is not defined


I personally want to add the weather data to snapshot of my webcam…


--
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/a4dfa6cd-44ca-4803-8f16-b0dcfd4f645dn%40googlegroups.com.

Karen K

unread,
Oct 8, 2023, 1:45:55 AM10/8/23
to weewx-user
I uploaded a fix. Please try again.

You can also copy svg2png.py to /usr/share/weewx/user by hand.

Lorin Tremblay

unread,
Oct 8, 2023, 12:00:27 PM10/8/23
to weewx-user
Thank was able to install it, now I know I’m close but I’m missing something.

Trying to add the info to my webcam with belchertown skins

Here is my webcam file path.

/var/www/html/weewx/webcam/snap.jpg


Here is the content of my snap.svg.tmpl


<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="2688" height="1512" viewBox="0 0 2688 1512">

  <style>

    text {

        font-family: Roboto, sans-serif;

        font-weight: 300;

        line-height: 1.625;

        margin: 0;

        font-size: 48px;

        fill: white;

    }

  </style>

  ## webcam image

  <image x="0" y="0" width="2688" height="1512" href="/webcam/snap.jpg" />

  ## readings

  <text x="2400" y="1450" text-anchor="middle">$current.outTemp $current.windSpeed $current.barometer</text>

</svg>



And here is the skin.conf

    [SVGtoPNGGenerator]

        [[file1]]

            # file name without extension (optional)

            file = /var/www/html/weewx/webcam/snap

            # image width in pixels (optional)

            #width = replace_me

            # image height in pixels (optional)

            #height = replace_me



       [[[file1]]]

            template = snap.svg.tmpl


[Generators]

    generator_list = weewx.cheetahgenerator.CheetahGenerator, weewx.reportengine.CopyGenerator, user.belchertown.HighchartsJsonGenerator, user.svg2png.SVGtoPNGGenerator



The .svg is getting created but not the png….


Is there something to do with files path?





Karen K

unread,
Oct 8, 2023, 2:59:00 PM10/8/23
to weewx-user
There is a path problem. First, use "file" with a relative path, i.e. without "/var/www/html/weewx". Then, according to the template "snap.svg" is situated in the base directory (I guess "/var/www/html/weewx"). But you look for it in the "webcam" sub-directory.

So
  • move the template "snap.svg.tmpl" to the "webcam" sub-directory in your skin directory (something like "/etc/weewx/skins/...").
  • Change the template line to "template = webcam/snap.svg.tmpl".
  • Change the file line to "file = webcam/snap".
  • Double check "href="/webcam/snap.jpg"". Are you sure that is situated in the root directory? May be you want to remove the slash at the beginning.

Lorin Tremblay

unread,
Oct 9, 2023, 5:04:00 PM10/9/23
to weewx...@googlegroups.com
Ok now I’m generating a .png with the info in the right position, but the image is not present

So now I’m my webcam folder I have to orignal jpg image, a svg and a png with the text and no pictures.

I have done everything mentioned 


  • move the template "snap.svg.tmpl" to the "webcam" sub-directory in your skin directory (something like "/etc/weewx/skins/...”).à
So now the snap.svg.tmpl is residing in /etc/weewx/skins/Belchertown/webcam
  • Change the template line to "template = webcam/snap.svg.tmpl”.
Changed that in the skin.conf
  • Change the file line to "file = webcam/snap".
Changed that in the skin.conf
    • Double check "href="/webcam/snap.jpg"". Are you sure that is situated in the root directory? May be you want to remove the slash at the beginning.
    And remove the / so now is reads "href="webcam/snap.jpg"

    So what I’m I missing?


    Karen K

    unread,
    Oct 11, 2023, 8:47:06 AM10/11/23
    to weewx-user
    Could you show your template file?

    Lorin Tremblay

    unread,
    Oct 11, 2023, 10:02:38 AM10/11/23
    to weewx...@googlegroups.com

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="2688" height="1512" viewBox="0 0 2688 1512">

      <style>

        text {

            font-family: Roboto, sans-serif;

            font-weight: 300;

            line-height: 1.625;

            margin: 0;

            font-size: 48px;

            fill: white;

        }

      </style>

      ## webcam image

      <image x="0" y="0" width="2688" height="1512" href="webcam/snap.jpg" />

      ## readings

      <text x="400" y="570" text-anchor="left">Temp:$current.outTemp - Dir:$current.windDir.ordinal_compass - Speed:$current.windSpeed - Bar:$current.barometer - Total Rain:$day.rain.sum - $current.pm2_5_aqi</text>

    </svg>



    Karen K

    unread,
    Oct 11, 2023, 2:55:19 PM10/11/23
    to weewx-user
    Is the image situated in /var/www/html/.../webcam or in /etc/weewx/skins/Belchertown/webcam? It should be the former.

    I did not use sub-directories myself. So I am not sure. You could try href="snap.jpg" instead of href="webcam/snap.jpg". 

    Lorin Tremblay

    unread,
    Oct 11, 2023, 4:00:34 PM10/11/23
    to weewx-user
    The image is situatied in the web folder under webcam, since that previously I had no need to have it elsewhere.

    # Where the generated reports should go, relative to WEEWX_ROOT

    HTML_ROOT = /var/www/html/weewx


    /var/www/html/weewx/webcam/snap.jpg


    Now there is a snap.png and snap.svg in that folder now


    pi@Weewx-APRS3695:/var/www/html/weewx/webcam $ ls -la

    total 536

    drwxrwxrwx  2 root root   4096 Oct 11 15:55  .

    drwxr-xr-x 15 root root   4096 Oct 11 15:55  ..

    -rw-r--r--  1 pi   pi   492892 Oct 11 15:55  snap.jpg

    -rw-r--r--  1 root root  33150 Oct 11 15:55  snap.png

    -rw-r--r--  1 root root    682 Oct 11 15:55  snap.svg

    -rwxrwxrwx  1 root root    482 Oct 11 15:55 '#Webcam_FTP.last




    The script is located in /etc/weewx/skins/Belchertown/webcam/snap.svg.tmpl

    I’ve also tried with a copy of my image in the folder of the script (/etc/weewx/skins/Belchertown/webcam/snap.jpg) and nothing change.





    Karen K

    unread,
    Oct 12, 2023, 4:36:02 AM10/12/23
    to weewx-user
    I will try it myself with the same subdirectories. 

    Karen K

    unread,
    Oct 12, 2023, 9:27:35 AM10/12/23
    to weewx-user
    If I try that, I see a message in the syslog that says:

    Oct 12 15:21:08 XXXX weewx[119729] ERROR user.svg2png: URLError <urlopen error [Errno 2] Datei oder Verzeichnis nicht gefunden: '/var/www/html/weewx/belchertown/webcam/webcam.jpg'>


    Is there a similar message in your case? 

    The message provides the directory where to place the original webcam image.

    Lorin Tremblay

    unread,
    Oct 12, 2023, 10:18:59 AM10/12/23
    to weewx-user
    No and my directory is that one 

    /var/www/html/weewx/webcam/ and not /var/www/html/weewx/belchertown/webcam/

    Here are all the info to reproduce my env…

    From the weewx.conf

        # Root directory of the weewx data file hierarchy for this station
        WEEWX_ROOT = /

        # Where the skins reside, relative to WEEWX_ROOT
        SKIN_ROOT = /etc/weewx/skins

        # Where the generated reports should go, relative to WEEWX_ROOT
        HTML_ROOT = /var/www/html/weewx

    From the belchertown skin.conf

    [Extras]
        [SVGtoPNGGenerator]
            [[file1]]
                # file name without extension (optional)
                file = '/var/www/html/weewx/webcam/snap'
                # image width in pixels (optional)
                #width = replace_me
                # image height in pixels (optional)
                #height = replace_me

     [[ToDate]]

     


           [[[file1]]]
                template = webcam/snap.svg.tmpl

    [Generators]
        generator_list = weewx.cheetahgenerator.CheetahGenerator, weewx.reportengine.CopyGenerator, user.belchertown.HighchartsJsonGenerator, user.svg2png.SVGtoPNGGenerator



    /etc/weewx/skins/Belchertown/webcam/snap.svg.tmpl 


    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="2688" height="1512" viewBox="0 0 2688 1512">

      <style>

        text {

            font-family: Roboto, sans-serif;

            font-weight: 300;

            line-height: 1.625;

            margin: 0;

            font-size: 48px;

            fill: white;

        }

      </style>

      ## webcam image

      <image x="0" y="0" width="2688" height="1512" href="/webcam/snap.jpg" />

      ## readings

      <text x="400" y="570" text-anchor="left">Temp:$current.outTemp - Dir:$current.windDir.ordinal_compass - Speed:$current.windSpeed - Bar:$current.barometer - Total Rain:$day.rain.sum - $current.pm2_5_aqi</text>

    </svg>




    Here is a snippet of my log

    Oct 12 10:15:39 Weewx-APRS3695 weewx[24286] INFO user.svg2png: Created 1 PNG file in 1.52 seconds

    Oct 12 10:15:39 Weewx-APRS3695 weewx[24286] INFO weewx.cheetahgenerator: Generated 1 files for report AirLinkReport in 0.03 seconds

    Oct 12 10:15:39 Weewx-APRS3695 weewx[24286] INFO weewx.imagegenerator: Generated 2 images for report AirLinkReport in 0.23 seconds

    Oct 12 10:15:42 Weewx-APRS3695 weewx[24286] INFO weewx.cheetahgenerator: Generated 13 files for report Belchertown in 2.76 seconds

    Oct 12 10:15:42 Weewx-APRS3695 weewx[24286] INFO weewx.reportengine: Copied 3 files to /var/www/html/weewx/belchertown

    Oct 12 10:15:46 Weewx-APRS3695 weewx[24286] INFO user.svg2png: Created 1 PNG file in 1.53 seconds




    Karen K

    unread,
    Oct 12, 2023, 12:21:58 PM10/12/23
    to weewx-user
    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.

    Lorin Tremblay

    unread,
    Oct 12, 2023, 1:06:17 PM10/12/23
    to weewx...@googlegroups.com

    • 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.svg2png: /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.svg2png: Created 1 PNG file in 1.60 seconds

    Oct 12 13:02:43 Weewx-APRS3695 wee_reports[29176] DEBUG user.svg2png: /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.svg2png: Created 1 PNG file in 1.52 seconds






    Yes that picture is in use already for my Web pages.

    http:///www.gestionlgt.com/Maison/


    --
    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.

    Karen K

    unread,
    Oct 12, 2023, 1:30:58 PM10/12/23
    to weewx-user
    Please, enter ls -l /webcam , not just ls -l

    Karen K

    unread,
    Oct 13, 2023, 5:25:26 AM10/13/23
    to weewx-user
    As there is no reply I would like to add something.

    In this case href="/webcam/snap.jpg" refers to a non-existing file. This is because of the slash at the beginning. 

    I do not know the real location of snap.jpg. So I cannot provide the correct href line. 

    I added a troubleshooting section in README.

    Lorin Tremblay

    unread,
    Oct 13, 2023, 10:44:34 AM10/13/23
    to weewx-user
    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:/ $ 




    Karen K

    unread,
    Oct 13, 2023, 10:47:56 AM10/13/23
    to weewx-user
    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

    unread,
    Oct 13, 2023, 2:17:48 PM10/13/23
    to weewx...@googlegroups.com
    I have tried that and it didn't work, but will try it again and kept you posted!


    Lorin Tremblay

    unread,
    Oct 13, 2023, 2:43:42 PM10/13/23
    to weewx...@googlegroups.com

    Nothing as changed in my case, still not getting the image, only the text….. 


    Oct 13 14:20:36 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.60 seconds

    Oct 13 14:20:43 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.52 seconds

    Oct 13 14:25:31 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.54 seconds

    Oct 13 14:25:38 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.51 seconds

    Oct 13 14:30:37 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.52 seconds

    Oct 13 14:30:45 Weewx-APRS3695 weewx[3256] INFO user.svg2png: Created 1 PNG file in 1.55 seconds


    Once again here are my conf….


    Content and location /etc/weewx/skins/Belchertown/webcam/snap.svg.tmpl


    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="2688" height="1512" viewBox="0 0 2688 1512">

      <style>

        text {

            font-family: Roboto, sans-serif;

            font-weight: 300;

            line-height: 1.625;

            margin: 0;

            font-size: 48px;

            fill: white;

        }

      </style>

      ## webcam image

      <image x="0" y="0" width="2688" height="1512" href="/var/www/weewx/webcam/snap.jpg" />

      ## readings

      <text x="400" y="570" text-anchor="left">Temp:$current.outTemp - Dir:$current.windDir.ordinal_compass - Speed:$current.windSpeed - Bar:$current.barometer - Total Rain:$day.rain.sum - $current.pm2_5_aqi</text>

    </svg>


    Content and location of my Belchertwon skin.conf

        [[ToDate]]

            # Reports that show statistics "to date", such as day-to-date,

            # week-to-date, month-to-date, etc.

            [[[weewx_data]]]

                template = json/weewx_data.json.tmpl


            [[[Belchertown]]]

                template = js/belchertown.js.tmpl


            [[[home]]]

                template = index.html.tmpl


            [[[about]]]

                template = about/index.html.tmpl


            [[[graphs]]]

                template = graphs/index.html.tmpl


            [[[records]]]

                template = records/index.html.tmpl


            [[[reports]]]

                template = reports/index.html.tmpl


            [[[pi]]]

                template = pi/index.html.tmpl


            [[[kiosk]]]

                template = kiosk.html.tmpl


            [[[manifest]]]

                encoding = utf8

                template = manifest.json.tmpl


           [[[file1]]]

                template = webcam/snap.svg.tmpl



    ###############################################################################


    [CopyGenerator]


        # This section is used by the generator CopyGenerator


        # List of files to be copied only the first time the generator runs

        copy_once = favicon.ico, images/*, json/index.html, js/index.html, js/responsive-menu.js, robots.txt


        # List of files to be copied each time the generator runs

        copy_always = *.css


    ###############################################################################


    #

    # The list of generators that are to be run:

    #

    [Generators]

        generator_list = weewx.cheetahgenerator.CheetahGenerator, weewx.reportengine.CopyGenerator, user.belchertown.HighchartsJsonGenerator, user.svg2png.SVGtoPNGGenerator


    [SVGtoPNGGenerator]

        [[file1]]

            # file name without extension (optional)

            file = /var/www/html/weewx/webcam/snap

            # image width in pixels (optional)

            #width = replace_me

            # image height in pixels (optional)

            #height = replace_me


    Location of my webcam Image

    /var/www/html/weewx/webcam/

    And also included the jpg and png.

    snap.svg
    snap.png
    snap.jpeg

    Karen K

    unread,
    Oct 13, 2023, 3:31:34 PM10/13/23
    to weewx-user
    According to what you posted, the file is called snap.jpeg (including character e) and not snap.jpg (without character e). 

    Lorin Tremblay

    unread,
    Oct 13, 2023, 3:44:13 PM10/13/23
    to weewx-user
    NO the email software changed it

    pi@Weewx-APRS3695:~ $ ls -la /var/www/html/weewx/webcam/

    total 544

    drwxrwxrwx  2 root root   4096 Oct 13 15:40  .

    drwxr-xr-x 15 root root   4096 Oct 13 15:40  ..

    -rw-r--r--  1 pi   pi   500914 Oct 13 15:40  snap.jpg

    -rw-r--r--  1 root root  34386 Oct 13 15:40  snap.png

    -rw-r--r--  1 root root    694 Oct 13 15:40  snap.svg

    -rwxrwxrwx  1 root root    482 Oct 13 15:40 '#Webcam_FTP.last'

    pi@Weewx-APRS3695:~ $ 




    <snap.svg>
    <snap.png>
    <snap.jpeg>

    Karen K

    unread,
    Oct 15, 2023, 5:27:27 AM10/15/23
    to weewx-user
    If I try your files at my location, they work. 

    The next thing I would check is the CairoSVG installation.

    Lorin Tremblay

    unread,
    Oct 15, 2023, 10:06:18 AM10/15/23
    to weewx...@googlegroups.com
    You want to provide your settings?



    jiaqi Yan

    unread,
    Oct 15, 2023, 10:14:17 AM10/15/23
    to weewx...@googlegroups.com


    顏嘉琪

    Karen K

    unread,
    Oct 15, 2023, 10:28:54 AM10/15/23
    to weewx-user
    Lorin Tremblay schrieb am Sonntag, 15. Oktober 2023 um 16:06:18 UTC+2:
    You want to provide your settings?

    I did not set anything. I installed CairoSVG, and that is it. 

    Joachim Puttkammer

    unread,
    Oct 18, 2023, 8:02:13 AM10/18/23
    to weewx-user
    I also have the problem that the webcam image (snap.jpg) is not made into a common image (snap.png) with the generated weather data image (snap.svg).
    snap.png is identical with snap.svg
    In snap.svg.tmpl I tried all variations of href="webcam/snap.jpg" and also copied the image file snap.jpg into all Weewx folders and subfolders to get a correct href.

    Local test PC: Debian Bookworm, Weewx 4.10.2

    Dale Chatham

    unread,
    Oct 18, 2023, 8:07:32 AM10/18/23
    to weewx...@googlegroups.com

    I'm not particularly familiar with that corner of weewx, but since you said you also copied the image, the package ImageMagick will convert image types, sizes, etc.  You can find it here: https://imagemagick.org/index.php

    It's available for most Linux distros via the resident package manager (apt, dnf, yum, ...) Windows, etc.

    If this is off-base, my apologies.

    --
    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.

    Karen K

    unread,
    Oct 18, 2023, 8:09:30 AM10/18/23
    to weewx-user
    CairoSVG is said to produce the better quality compared to ImageMagick. 

    Gmail

    unread,
    Oct 18, 2023, 9:27:53 AM10/18/23
    to weewx...@googlegroups.com
    Me too, that’s why I built my own very limited extension to add some weewx variable to a jpg with pillow…




    On Oct 18, 2023, at 08:02, Joachim Puttkammer <jputt...@gmail.com> wrote:

    I also have the problem that the webcam image (snap.jpg) is not made into a common image (snap.png) with the generated weather data image (snap.svg).
    --

    Joachim Puttkammer

    unread,
    Oct 18, 2023, 2:35:02 PM10/18/23
    to weewx-user
    with the Linux console command  composite -blend 10 snap.jpg snap.png result.jpg it works, but I would like to do it already with the template snap.svg.tmpl.
    Dale Chatham schrieb am Mittwoch, 18. Oktober 2023 um 14:07:32 UTC+2:

    Greg from Oz

    unread,
    Oct 18, 2023, 5:57:01 PM10/18/23
    to weewx-user
    I just use imagemagick and a $5 esp32 webcam and it is ok for what I am doing.
    I may look at CairoSVG later though and see what it can do.

    Reply all
    Reply to author
    Forward
    0 new messages