I would like to use a widget with html. The test in the script (webview) works perfectly. What I have to do so that it finally appears on the widget?
Does the widget only work if the whole thing is output as a backgroundImage. Maybe like this: widget.backgroundImage = myHTML
You can only make a screenshot of the WebView and display that as background image.
More info here:
You can render the webpage with WebView and then take somehow a screenshot of them which you then can display in the widget.
I saw this tweet and he also has posted the code he used (in the answers to the tweet) so maybe you can replicate it with an external website.
Thanks a lot for the fast answer.
Yes I tried this - but my problem in this case: when used html/css with a long table it becomes blurred. You can’t read it anymore.
Do you have an idea what it could be?
Maybe the size of the screenshot and the size of the widget are not the same in pixels. If you make the screenshot in the correct size, but in point units, it will be scaled up to the needed pixel size, which makes it blurry.