szantaii / bash-weather Goto Github PK
View Code? Open in Web Editor NEWWeather report written in Bash
Home Page: http://bash.sidenote.hu/
License: GNU General Public License v3.0
Weather report written in Bash
Home Page: http://bash.sidenote.hu/
License: GNU General Public License v3.0
I don't know if you take feature request, but since you respond so fast:
coloured output would be really nice to have. As in, a yellow sun, grey clouds, and so on.
Seems like I'll be having down to -1°C tomorrow…
/print-forecast.sh: line 104: printf: -1: invalid option printf: usage: printf [-v var] format [arguments]
A solution would be to use echo or printf "%s" for all the day?_min/max_temperature output.
Within the last few days, the app stopped fetching the weather data. The program runs without error, but just doesn't display the actual weather.
Reviewing the get-weather-data.sh file, I added an API key to the end of each URI listed (two occurrences each of current_weather_data and weather_forecast_data), in the form of APPID=. For example, this:
current_weather_data=$(curl -s "http://api.openweathermap.org/\
data/2.5/weather?lat=${latitude}&lon=${longitude}&mode=xml&
units=${unit_type}&APPID=")
Of course, this means that you have to sign up for an API key with openweathermap.org, so you have an API key to enter here. I will probably end up pulling the key from a file long term, but I thought I would mention it here to see if you had a better idea on handling the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.