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 <https://github.com/roe-dl/weewx-svg2png> Now I look what is happening, and meanwhile I publish the generator here. -- 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/e665415e-0e7a-4a3c-bc37-5f86f23ea32bn%40googlegroups.com.