Giter VIP home page Giter VIP logo

bash-weather's People

Contributors

szantaii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bash-weather's Issues

coloured output

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.

printf error with negative degrees in forecast

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.

API key needed

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.