solar: # list of pv generation forecast (additive)
type: custom
interval: 2m
forecast:
source: http
uri: http://192.168.178.44:8086/fhem?cmd=%7BReadingsVal%28%27solErtrag%27%2C%27jsonReading%27%2C%27%27%29%7D&XHR=1Gruß, Dietermagick /opt/fhem/www/images/trmnl_mittagessen.svg -dither FloydSteinberg -remap /opt/fhem/www/images/colormap-2bit.png -define png:bit-depth=2 -define png:color-type=0 /opt/fhem/www/images/trmnl/mittagessen.png
Der Befehl konvertiert ein SVG in ein PNG. Die Dateien und Pfade existieren alle, mehrfach geprüft.magick: FailedToExecuteCommand `'inkscape' '/tmp/magick-NV8qZoa26EFBQo_td8IyU7SiRMmkQ0Ft' '--export-filename=/tmp/magick-cvyMBWGIderlPEVyA32iSWdb0xyJmrne.png' '--export-dpi=96' '--export-background=rgb(100%,100%,100%)' '--export-background-opacity=1'' (-1) @ error/delegate.c/ExternalDelegateCommand/518.
Das PNG wird nicht erzeugt.{system("magick /opt/fhem/www/images/trmnl_mittagessen.svg -dither FloydSteinberg -remap /opt/fhem/www/images/colormap-2bit.png -define png:bit-depth=2 -define png:color-type=0 /opt/fhem/www/images/trmnl/mittagessen.png")}
{system("sleep 1;;/usr/bin/magick -debug all /opt/fhem/www/images/trmnl_mittagessen.svg -dither FloydSteinberg -remap /opt/fhem/www/images/colormap-2bit.png -define png:bit-depth=2 -define png:color-type=0 mittagessen.png")}
// oder
{system(";;/usr/bin/magick -debug all /opt/fhem/www/images/trmnl_mittagessen.svg -dither FloydSteinberg -remap /opt/fhem/www/images/colormap-2bit.png -define png:bit-depth=2 -define png:color-type=0 mittagessen.png")}
Mit diesen obigen Befehlen wird das PNG anstandslos erstellt.Zitatüber das Plus oben links neben der Kommandozeile (nur im f18-Style) das Attribut ergänzen.