wttr.in
wttr.in copied to clipboard
[BUG] Broken output when transferring data to file
I'm running this bash script to save the output to a txt but the output doesn't look like the terminal-output. Is this a bug or am I making a mistake here?
curl v2.wttr.in/Waldbronn -o /home/pi/Software/wttr/wttr_Waldbronn_$(date +"%Y-%m-%d_%H-%M-%S_%z").txt
Output file in attachment wttr_Waldbronn_2021-04-12_08-54-18_+0200.txt
I don't know what exactly you expect; this is actually correct terminal output, including ANSI sequences. You can view it with less -R
If you need the output without ANSI sequences, use ?T as an option:
curl v2.wttr.in/Waldbronn?T -o /home/pi/Software/wttr/wttr_Waldbronn_$(date +"%Y-%m-%d_%H-%M-%S_%z").txt