wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

[BUG] Broken output when transferring data to file

Open 3Domse3 opened this issue 4 years ago • 1 comments

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

3Domse3 avatar Apr 12 '21 07:04 3Domse3

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

chubin avatar Apr 21 '21 18:04 chubin