Today's article has you getting the weather in the terminal.

KGIII

Super Moderator
Staff member
Gold Supporter
Credits
25,981
Yes, I'm aware that the newsletter has broken links. I just found out and have spent the last half hour opening a detailed ticket. Hopefully it's an easy fix. We shall see!

Anyhow, the article is pretty short and easy.


Feedback is awesome.
 


captain-sensible

Well-Known Member
Credits
14,241
very nice i was playing with a python script using



got that working and was fine tuning it Json etc but , that can go on hold , since yours is a one liner and is adequate for my purposes
 

KGIII

Super Moderator
Staff member
Gold Supporter
Credits
25,981
It's a pretty quick and easy way to check.

A while ago, probably a few years, I had it set to automatically fetch the weather and store it - among other tasks daily. I think that may have been with a different site, but that wasn't in my notes.
 

craigevil

Active Member
Credits
1,587
Wow the output is awesome.
 

kc1di

Active Member
Credits
1,769
Thanks for the tip KGill, You can also get a quick snapshot of the current weather conditions with this command inxi -w
inxi -w
Weather:
Temperature: 22.1 C (72 F) Conditions: Scattered Clouds
Current Time: Fri 30 Jul 2021 03:59:48 PM EDT (America/New_York)
Source: WeatherBit.io
 

dcbrown73

Well-Known Member
Credits
2,836
Good stuff @KGIII

As for feedback. Adding in how to set weather up as an alias in your profile or possibly creating a script called weather that executes the curl command with the proper location would be good also.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top