You are not logged in.
Hi Everyone,
I would like like to map a quick weather forecast to a custom action. I would like to enter `!wttr` to launch `exo-open --launch TerminalEmulator curl wttr.in/new+york`. The issue is that xfce4-terminal does not stay open long enough to see the output. It closes immediately. I have tried `-H` , `-e`, `read` , `$SHELL` all with the same result. Any ideas?
Thanks!
Offline
Well, with some tinkering...I think I have it
`xfce4-terminal --maximize --hold --command="curl wttr.in/new+york"`
Posting here for prosperity; However, if there is a better way, I am open to it.
Offline
Why not install "xfce4-weather-plugin" then add it to the panel.
The current and future weather is based on the European model, but it works admirably well.
Do no harm.
Offline
You don't even need the terminal for this.
A dialog like zenity or yad would do.
But first you have to get weather in JSON format an like this
curl wttr.in/new+york?format=j1
Ad use jq command to parse the output like here
https://unix.stackexchange.com/question … ere-a-word
When you figure it out you can use zenity or yad to display the processed output.
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 535.75 KiB (Peak: 543.98 KiB) ]