GitHub | 您所在的位置:网站首页 › i3blocks › GitHub |
i3-blocks weather script
Simple script which uses the Wttr.in Api to display location based weather information in i3blocks. If a location is not provided via the command line, the script will automatically locate you using your IP address. This obviously doesn't work if you use a VPN. In that case, you must specify your location on the command line. Location data is provided by IP-API.com (it works better than Wttr default). They automatically ban any IP address that exceeds 150 requests per minute. AppearanceDependencies python3.7 requests Weather Icons Config # Current weather # # The script may be called with -s (for short input), -f (for input in farenheit) and -c (to specify city) switches, # see the script for details. [weather] command=$SCRIPT_DIR/weather.py interval=3600 |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |