wttr.in
wttr.in copied to clipboard
Fix PNG rendering
PNG rendering is temporary disabled.
$ curl wttr.in/Nuremberg.png
PNG support temporary disabled
Same issue for me :)
same issue here too
same
Any idea why was it disabled?
Can't find any info on why it has been disabled, is this only the png image or emojis too?
Here is what I use now as a replacement :
img="$(mktemp /tmp/weather_XXXX.png)"
textimg -i "$(curl --silent "wttr.in/$town?q")" -F 30 -o "$img"
ristretto "$img"
textimg can be installed here : go install github.com/jiro4989/textimg/v3@latest
is there any update on this
I started porting the existing Python implementation to Go (the Python implementation is too slow for the current load level). Let me know if you want to help
I started porting the existing Python implementation to Go (the Python implementation is too slow for the current load level). Let me know if you want to help
@chubin edi9999 metioned https://github.com/jiro4989/textimg in his workaround, which seems a good module for ANSI text to PNG conversion.
I've skimmed through it, and it seems to be pretty fit for our needs. It has emoji support, wide runes, true colors, etc. I will play with it, and check how easy it could be integrated
The only bug I had so far was when there was a "thunderstorm alert". In the terminal, it shows as an animated "thunder" icon. In that case, the PNG output had some strange chafracters with textimg.
But that was the only issue I had in several weeks of usage.
I started porting the existing Python implementation to Go (the Python implementation is too slow for the current load level). Let me know if you want to help
Now I understand, good to know the motivation. Unfortunately I don't know Go at all, otherwise I would have offered my help.
@chubin edi9999 metioned https://github.com/jiro4989/textimg in his workaround, which seems a good module for ANSI text to PNG conversion.
I've skimmed through it, and it seems to be pretty fit for our needs. It has emoji support, wide runes, true colors, etc. I will play with it, and check how easy it could be integrated
Seems great and efficient for v1 output. I couldn't make it work with the v2 output though (only the weather icons worked well but not the graph itself). If anyone else managed to make it work, please share.
Yes indeed, with the v2 output the textimg software doesn't give the right output ... (for the graph)
For example, the thunderstorm output is buggy with the textimg utility :
Is there any progres on this issue?