Giter Site home page Giter Site logo

weather's Introduction

Weather

Weather screenshot

Weather is a Haiku application that displays the constantly-updated weather of a specified location (Weather --> Change location). It shows the current condition there and a forecast of the next 5 days. The temperature can be displayed in degrees Celsius and Fahrenheit (Weather --> Preferences).

Weather displays daily highs/lows and cloudiness, precipitation, and sunlight. As a replicant, Weather can be easily integrated into the Desktop.

You can drag & drop colors, e.g. from Icon-O-Matic, onto the Weather window or the replicant to change the text or background colors. The replicant shows a transparent background by default.

Weather data by Open-Meteo.com under Attribution-NonCommercial 4.0 International (CC BY-NC 4.0).

Weather started as tasks for Google Code-In 2014/15 and has been improved substantially since then.

weather's People

Contributors

aarroyoc avatar akshayagarwal007 avatar aunaseef avatar bachtothefuture avatar benjaminamos avatar diversys avatar galexite avatar jackburton79 avatar janus2 avatar jsteinaker avatar kallisti5 avatar kevinadams05 avatar korli avatar nexus6-haiku avatar przemub avatar pulkomandy avatar r4h33m avatar scottmc avatar stephanie-fu avatar vchrombie avatar waddlesplash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

weather's Issues

Unable to resize choose location window

  1. Open Weather
  2. Go to Change Location
  3. Click Resize window button
  4. Repeat step 3

Expected result: There is no resize window button or the window resizes both times.
Actual result: The window resizes only one way.
issue.zip
Note: The zip file contains 2 video files. They only play on Firefox.

Haikuweather needs an application key

As discussed in #3 the app needs an application key

...
e. If your product or service uses or is based upon the Yahoo APIs, then YOU SHALL comply with the following:

i. The Yahoo Developer Network Attribution Policy located at http://developer.yahoo.com/attribution/.

i.. All instructions provided in the Yahoo APIs and their associated documentation on the Yahoo Developer Network to place application identification information (API Key) into any application or service you develop that incorporates or makes any use of the Yahoo APIs. You may only create a single API Key per application or service and such API Key must accompany all web services requests coming from that application or service. You can sign up for an API Key at http://developer.yahoo.com/wsregapp/ for BBAuth API Keys and at http://developer.yahoo.com/dashboard/createKey.html for OAuth API Keys. You must provide accurate identification, contact, and other information required as part of the registration process. You SHALL NOT create any script or other automated tool that attempts to create multiple API Keys.
...

From https://info.yahoo.com/legal/us/yahoo/api/api-2140.html

Re-enable recipe

I've seen that a recipe exists for Weather, maybe we could re-enable it?
Although the Deskbar replicant is still broken, We have enough positive feedback to justify it.

Update and add more translations

If anyone wants to update translations with missing strings or add strings for more languages, please visit Polyglot. You can log in with your GitHub account.
Thanks!

Remove preferences / merge with location setting

Currently the only option is to switch between Celsius and Fahrenheit.
IMO Weather should just use the system's locale setting and be done with it.

One could think up other preferences like the refresh frequency, but I'm not a fan of this micro-management. A good default setting should suffice.

If there are actually useful options (maybe selecting the weather service if there are more available), they could all be put in one panel together with the location setting, which is a preference after all.

Breezy weather condition has no icon

There is no icon for the Breezy weather condition as seen below. To reproduce it, you have to keep searching until you find a city with the condition breezy.
virtualbox_haiku_03_01_2018_18_46_40

Add a compact mode (without forecast)

User should have an option to minimize app to see today's weather and temperature by clicking on the top part of the weather panel. The same option is available on Mac weather app in the dashboard.

Temperature format should default to locale standard

There was some discussion on pull request #3 on how to add this functionality, but it seems some work on Locale Kit needs to be done first.

(mmuman said...) headers/os/locale/FormattingConventions.h seems to have a B_METRIC / B_US BMeasurementKind enum, not sure how to get it, but it should give a hint to C vs F (although ideally you'd want to support Kelvins as well :D)

(pulkomandy said...) The locale kit does not expose default formatting units (yet). This should be implemented with http://icu-project.org/apiref/icu4c/classicu_1_1MeasureUnit.html, http://icu-project.org/apiref/icu4c/classicu_1_1Measure.html and http://icu-project.org/apiref/icu4c/classicu_1_1MeasureFormat.html in the Locale Kit, exposing a BLocale::FormatMeasure and with integration in BMessageFormat.

and so on.

Add clickable link to current weather source

Add a link to the current source of the weather data. This might be a better solution than some of the other feature requests. Make it easy for a user to click somewhere on the app in order to open a web page showing more detailed weather for their selected location.

[RFC] Hide or remove inappropriate units K R and D

  • The Kelvin scale is widely used in science and technology.
  • The Rankine scale may be used in engineering systems where heat computations are done using degrees Fahrenheit.
  • The Delisle thermometer remained in use for almost 100 years in Russia (from 1732). Are we supporting a scale unused since 1832?

from wikipedia

I never saw another app with these scales, please leave your thoughts...

Should re-try a few times when there's no connection

When used as a replicant, the internet connection (over wifi at least) isn't yet established when Weather tries to hook up with the weather service.
Would be nice if it tried to connect a few times for a few seconds.

Forecast is clipped

Triple clicking (or pressing Alt+R several times) shows text clipping:

image

The length is the same as "Loading..." string.

"About" is missing

Pretty much every Haiku app has an "About..." to tell you something about the release version and author of the app. This is missing from Weather.

Weather app broken

Weather application broken across all tested builds (x86_gcc2h, x86_gcc5, x86_gcc5h, x86_64) with the following error message:

"Could not open "Weather" (Missing symbol: HeadersReceived__20BUrlProtocolListenerP11BUrlRequest)."

Temp. units do not sync with main window and replicant

  1. Set San Francisco as the city.
  2. Create a replicant of the main window.
  3. Change the units from Celsius to Fahrenheit in main window

Expected outcome: The units of the main window should be the same
Actual outcome: The units of the main window were different from the units in the replicant
screen shot 2017-12-02 at 9 47 13 pm

Show only city name as location

As space is precious, the country name of the location is almost always truncated. Having "city, country" makes sense when choosing the location, but when presented in the GUI, showing only the city is enough.

Use one "Weather" menu for all menu items

There are only relatively few menu items, which are currently split into an "Edit" and "View" menu. Those two contain items that don't fit their label. E.g. the "Desktop Replicant" doesn't fit in "View", "Quit" doesn't fit in "Edit".

I'd say, put it all in one application menu "Weather".

Some icons are missing

This is the list of missing icons, only the icons marked(*) are without a fallback icon
tornado
tropical storm
hurricane
severe thunderstorms
mixed rain and snow
mixed rain and sleet
mixed snow and sleet
freezing drizzle
drizzle
freezing rain
snow flurries
light snow showers
blowing snow
hail
sleet
*dust
*haze
*smoky
*blustery
*windy
*cold
mostly cloudy (night)
mixed rain and hail
isolated thunderstorms
heavy snow
scattered snow showers
snow showers
isolated thundershowers
*not available

You can find the documentation here https://developer.yahoo.com/weather/documentation.html

Forecast messages and days are not internationalized

I don't know if this is worth the effort. I will open a pull request, if is too much feel free to discard the changes. There isn't a solution for the name of the cities.
(BTW The service does not support i18n.)

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.