Code Monkey home page Code Monkey logo

Comments (4)

JohnKacz avatar JohnKacz commented on June 6, 2024

I'm working on a pull request to add a bit more customization to the current weather output, but I believe what you are asking for is to have both the forecast data (which defaults to 5 days) and the current weather data (like wind, humidity, and pressure). So for example you'd like to see something like this:

Yourtown forecast =>
Tue Aug 02: 80/74 °F ☔ - Wind => 3.89 mph SE - Humidity => 94 % - Pressure => 30.00 inHg
Wed Aug 03: 80/74 °F ☁ - Wind => 3.89 mph E - Humidity => 90 % - Pressure => 31.00 inHg
Thu Aug 04: 82/74 °F ☁ - Wind => 3.89 mph SSE - Humidity => 87 % - Pressure => 30.00 inHg
Fri Aug 05: 84/73 °F ☔ - Wind => 3.89 mph ESE - Humidity => 92 % - Pressure => 29.00 inHg
Sat Aug 06: 90/77 °F ☔  - Wind => 3.89 mph SE - Humidity => 96 % - Pressure => 30.00 inHg

This is not possible nor would it make much sense. The API that is used, OpenWeatherMap API, is able to give current information or forecasted information. The forecasted information does not include wind, humidity, or pressure. If you think about it that information would have to be a range and I'm not a weather geek but I think that info is not as predictable as high and low temperatures.

If I'm correct in what you are asking for and in the limitations of the OpenWeatherMap API then this issue could be closed I think.

from ansiweather.

resistor4u avatar resistor4u commented on June 6, 2024

Thanks for the response. As I tried to show in the hypothetical output, I'd like to receive the current data (showing all the measured observances) as well as the forecast of hi-lows. The program already shows one or the other, and I'd just like a default option to show both. I can't seem to control it from default RC file options, so I issued the request. And yes, it would be silly to have the program attempt to make accurate predictions even as the API doesn't. This is really an issue of trying to combine the fine-grained current data output with the forecast temps and conditions output. Current weather and forecast together.

from ansiweather.

JohnKacz avatar JohnKacz commented on June 6, 2024

Ah I get it now. Sorry I misunderstood what you were asking.

So one option would be you could just call it twice (ansiweather && ansiweather -F).

It's not as elegant what you are asking for (something like ansiweather -b and in 'both'), but functionally I don't think it would be different as I think -b would still need to make to API calls. (The current data and the forecast are different endpoints)

from ansiweather.

fcambus avatar fcambus commented on June 6, 2024

As JohnKacz pointed, you can achieve the desired effect with ansiweather && ansiweather -F, you can add a shell alias to perform this.

from ansiweather.

Related Issues (20)

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.