polybar / polybar-scripts

This is a community project. We write and collect scripts for polybar!
The Unlicense
2.46k stars 338 forks source link

Add weatherscrapper-simple #403

Closed FromWau closed 1 year ago

FromWau commented 1 year ago

WeatherScraper

Displays weather stats.

weather_scraper.py

Is the same as the openweathermap scripts but can display up to 48h forecasts and has much more weather info. The weather_scraper.py scraps the weather.com site and returns the forecasts in json format for the given location.

weather.sh

The weather.sh script uses the python script to get the next two hourly forecasts and displays the temp the icon for the weather state (sunny, foggy, ...) and the diff between the temperatures by an arrow (see example in README.md).

x70b1 commented 1 year ago

Sorry for the late response. I would add your own repo to the link list on the main README? Than you can manage that script at your repo? How do you think about that?

FromWau commented 1 year ago

That would be great, thanks.