WeatherFetcher
Small program that uses online APIs to fetch current information about the weather (could be added to bashrc file).
Install / Use
/learn @alavifazel/WeatherFetcherREADME
WeatherFetcher
WeatherFetcher is a boost-powered small program that determines your location based on your IP address and fetches your current weather information using online APIs. This program was written to be added to my .bashrc file which makes it run on terminal startup. dependencies:
- RapidJSON
- Boost.beast
Building
In order to build this project, follow these steps:
- Sign up on free on OpenWeatherMap and get a token.
- Replace the token you received by
<Token>in main function. - Download RapidJSON and put its
includedirectory in the root of the project. - Install the latest version of Boost library.
- Create a directory called
buildin the project's root andcdinto it and run (without $):
$ cmake ...
$ make
- Now you have
weatherFetchercompiled and ready to be added to your.bashrcfile.
example output:
Temperature: 33.15°
Humidity: 21%
Condition:
\ /
(O)- (CLEAR)
/ \
--------------------
Current ascii arts:
- Atomosphere
______
~~~~~~ (ATMOSPHERIC)
------
- Clear
\ /
(O)- (CLEAR)
/ \
--------------------
- Clouds
.-~~~-.
.--( )_____
/ `-~ -
| \ (CLOUDS)
\ .'
~- . ___________ -~
- Drizzle
.-~~~-.
.--( )_____
/ `-~ - (DRIZZLE)
| \
\ ` ` ` ` ` ` .'
\`_`__`_` -`~--- `--
` ` `` ` ` ` ` ` `
- Rain
.-~~~-.
.--( )_____
/ `-~ - (RAIN)
| \
\ .'
/ /-/ /_/_/_/_____ -~
/ / / / / / /
/ / / / / /
- Snow
,\/,
_\_\/_/_ (SNOW)
/ /\ \
'/\'
- Thunderstorm
\ \
\ \_
\_ \
\ \_ (THUNDER)
\__ \
\\
\\
\\
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
