
Ich versuche, conky mit conkyForecastWU unter Verwendung eines einzurichten .conkyForecast.template
. Ich füge den Prognosebefehl wie folgt in meinen ein .conkyrc
:
${execpi 1800 conkyForecastWU --template=~/.conkyForecast.template}
Aber beim Start conky
werden jede Sekunde die folgenden Fehler angezeigt:
Conky: Unable to load image '/tmp/'
Der conkyForecastWU
-Befehl von oben erzeugt folgende Ausgabe:
${font Raleway-10:weight=thin}
${image /tmp/.conkyForecastWU-WI-Clear.gif -p 40,1000 -s 60x60}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 123,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 177,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 231,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 285,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Mostly-Cloudy.gif -p 339,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 393,1010 -s 40x40}
Wenn ich am Ende der ersten Zeile ein Leerzeichen hinzufüge, endet die Fehlermeldung mit '/tmp'
, sodass conky nur diesen Teil der Ausgabe liest, der genau 256 Bytes lang ist:
${font Raleway-10:weight=thin}
${image /tmp/.conkyForecastWU-WI-Clear.gif -p 40,1000 -s 60x60}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 123,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 177,1010 -s 40x40}
${image /tmp/
Aber was ist falsch? Es scheint ein Pufferproblem beim Lesen der Ausgabe zu sein, aber wie kann ich Conky anweisen, mehr als 256 Bytes zu lesen?
Antwort1
Habe hier die Lösung gefunden:https://unix.stackexchange.com/questions/14785/conky-buffer-too-small
Nach dem Einstellen
text_buffer_size 1024
das Problem wurde gelöst.