Code Monkey home page Code Monkey logo

oss-weather's Introduction

Contributor Covenant GitHub repo stars GitHub License GitHub All Releases GitHub release Small translation badge

Installation

Get it on IzzyOnDroid Get it on PlayStore Get it on GitHub

Download on the App Store

Enjoying OSS Weather?

Please consider making a small donation to help fund the project. Developing an application, especially one that is open source and completely free, takes a lot of time and effort.


Open Source app to access detailed weather data from OpenWeather, Open-Meteo and Meteo France. Weather radar provided by RainViewer. You can create a free OWM key to access OpenWeather weather data. There is a default key included in the app but the access is limited and you could get errors related to rate limits.

Screenshots

Having issues, suggestions and feedback?

You can,

Languages: Übersetzungsstatus

Übersetzungsstatus

The Translations are hosted by Weblate.org.

oss-weather's People

Contributors

0-5-0 avatar 283375 avatar azertylr avatar badener95 avatar baltevl avatar bogdankamenski avatar bttrx avatar comradekingu avatar farfromrefug avatar jan-moeller avatar jerome-herbinet avatar ken-der-guru avatar kuragehimekurara1 avatar mattsolo451 avatar mdvhimself avatar neluji avatar oersen avatar rosen-vladimirov avatar softinterlingua avatar sphinxknight avatar symbuzzer avatar touhusouri avatar xurxogp avatar yogotami 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oss-weather's Issues

Air Quality

Air quality is starting to feel like a very important metric for anyone in the US right now...

64822439a460da0019242040
(it's not that bad where I am, and the worst is over, but it's still there)

It would be very nice to have it in the app to check, similar to the UV index metric.
Thanks :)

Use 24 hour time with english language is not available

If the app language is set to auto or English the time is always displayed in am/pm. Because my language (German) is not available yet, I would like to keep using the app in English but with 24 hour time. I believe this was possible in the past, but I can't remember with version of the app has changed that.

Add "feels like" temp

Hello,
I find that the "feels like" temperature is often more useful than the literal temperature. Would you be willing to incorporate this into the app?

Thanks

Problems with deploy

Hello,

Is it any instruction how to deploy it? Can I deploy it on services like Netlify, Vercel, etc.? Could you write an instruction steb by step how to deploy this repo? If it is open spurce repo so should be some install instruction.

When I install I have these errors:

"--> npm install @nativescript-community/observable @nativescript-community/ui-material-core ~ webpack
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @nativescript/[email protected]
npm ERR! node_modules/@nativescript/core
npm ERR! dev @nativescript/core@"8.5.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nativescript/core@"~8.1.3" from [email protected]
 sh -c ./.config/build.sh
▲ [WARNING] Duplicate key "release" in object literal [duplicate-object-key]

app.webpack.config.js:600:20:
  600 │                     release: `${nconfig.id}@${appVersi...
      ╵                     ~~~~~~~

The original key "release" is here:

app.webpack.config.js:597:20:
  597 │                     release: appVersion,
      ╵                     ~~~~~~~

 node --enable-source-maps .build/index.js
node:internal/modules/cjs/loader:988
throw err;
^

Error: Cannot find module '/home/runner/oss-weather-2/.build/index.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
exit status 1"

What do I do wrong?

Thank you

Crash with open app

Samsung, Android 8.0
FATAL EXCEPTION: main Process: com.akylas.weather, PID: 29227 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.akylas.weather/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreateView failed Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/inspector/InspectionCompanion; at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6944) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) Caused by: com.tns.NativeScriptException: Calling js method onCreateView failed Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/inspector/InspectionCompanion; at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Unknown Source:118) at com.tns.Runtime.callJSMethodImpl(Unknown Source:102) at com.tns.Runtime.callJSMethod(Unknown Source:42) at com.tns.Runtime.callJSMethod(Unknown Source:7) at com.tns.Runtime.callJSMethod(Unknown Source:1) at com.tns.FragmentClass.onCreateView(Unknown Source:16) at androidx.fragment.app.Fragment.performCreateView(Unknown Source:19) at androidx.fragment.app.w.f(:6) at androidx.fragment.app.w.k(:6) at androidx.fragment.app.FragmentManager.B(:9) at androidx.fragment.app.FragmentManager.T(Unknown Source:81) at androidx.fragment.app.FragmentManager.A(Unknown Source:30) at androidx.fragment.app.a.commitNowAllowingStateLoss(Unknown Source:6) at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Unknown Source:118) at com.tns.Runtime.callJSMethodImpl(Unknown Source:102) at com.tns.Runtime.callJSMethod(Unknown Source:42) at com.tns.Runtime.callJSMethod(Unknown Source:7) at com.tns.Runtime.callJSMethod(Unknown Source:1) at com.tns.NativeScriptActivity.onStart(Unknown Source:7) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1340) at android.app.Activity.performStart(Activity.java:7200) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2920) ... 9 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/inspector/InspectionCompanion; ... 33 more Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.inspector.InspectionCompanion" on path: DexPathList[[zip file "/data/app/com.akylas.weather-vAM9mE_l4PgJbEAZU3LpfA==/base.apk"],nativeLibraryDirectories=[/data/app/com.akylas.weather-vAM9mE_l4PgJbEAZU3LpfA==/lib/arm, /data/app/com.akylas.weather-vAM9mE_l4PgJbEAZU3LpfA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 33 more

Location Names

Hi,

Would it be possible to make it so that you could rename favorites, instead of just showing a GPS coordinate please?

Group info together

There is lots of info and some of it is all over the place. There is a section for hourly forcast and a section for daily. These are good organized.

However, the section that shows the current weather is all over the place:

Screenshot_20221021-200407_OSS Weather

Some icons/text are on the top, other on the bottom. Some are left aligned, some right.

"About" error + OWM api error

Version 1.5.1 build 64 on MIUI 14.0.4.0 android 13
When I try to open the "about" page on the top right menu, the app gives me this error: IMG_20230424_092330.jpg
The app just freezes after tapping the ok button and won't respond to any clicking, unless I close the app and reopen it.

Also, when I tried to use my own OWM api key, it keeps giving me the faq#error401 error, even though the api key is fully functional when I open it on a browser tab https://api.openweathermap.org/data/2.5/weather?q=peshawar&appid=insert-api-key My plan is this: Screenshot_2023-04-24-09-26-26-144_org.mozilla.fennec_fdroid-edit.jpg
Thank you!

Météo France error when searching for a city not in France.

Hello,

When searching for a city outside of France (tried with Coppenhagen and Tokyo) with Meteo-France set as provider, it gives an error :

"Cannot read properties of undefined (reading gridded)"

Works fine with cities in France.

I'm on Android 13 with latest (1.7.1.74)

Thanks

Open (and Open Source) Weather API Alternative

Open-Meteo looks like a good new option to use instead of OpenWeatherMap because it's completely open with no API key necessary (and is entirely F/LOSS unlike OWM).

They have a ludicrous amount of weather data to add, documented here: https://open-meteo.com/en/docs

The only thing they don't provide is a weather map service as it's very bandwidth heavy, so that can still fall back to OWM or a different API such as RainViewer.com's radar API (which isn't F/LOSS but appears to not require an api key) that apps such as omWeather use.

Their full list of APIs is very long, so I'm not gonna list all of them here.

Please take a look, as the OpenWeatherMap API key requirement is very annoying, especially for new users.

Include in F-Droid

It would be nice if this app was included in F-Droid. I am opening a request for this. Please make it known if you oppose to inclusion.

Some Features & Suggestions

Thanks for this app! I currently use Forecastie because I like to see the current temperature in my notifications. What I like about this app is that it shows the days of the week much clearer. Yes, the font is small but no busy.

My suggestion is to have the temperature in the notification bar, a possible widget in the future, and to change the military time to regular standard time for the hours of the current day for an easier read.

Missing dependencies in package.json

I had to add the following deps to get the app to run locally.

{
"@nativescript/theme": "^3.0.0",
"copy-webpack-plugin": "^6.1.1",
"fork-ts-checker-webpack-plugin": "^5.2.0",
"css-loader": "^4.3.0",
"nativescript-worker-loader": "^0.12.1",
"sass-loader": "^10.0.2",
"terser-webpack-plugin": "^4.2.2",
"ts-loader": "^8.0.4",
"webpack-bundle-analyzer": "^3.9.0"
}

I also notice there is a "tns-ios": "6.5.2" dev dependency which might be obsolete

option for 12-hour times

If imperial measurements are an option, 12 hour instead of just 24 hour times should be an option too

Gadgetbridge support

Gadgetbridge is a oss companion app for all sorts of wearables. Among a lot of other features, it is able to provide weather data to devices. It does this by implementing recievers and relying on weather apps to send weather data. See https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Weather#weather-app-development for details.
Is this a feature you would be willing to consider or do you think it is out of scope for this project?
If there is an interest i'd offer myself to work on this feature. Only problem is, I have never worked with NativeScript before so a short how to build (Is it just as simple as ns run android?) and maybe a pointer where to best implement this would be amazing.
King regards

Add m/s for wind speed data

Kilometers per hour as a unit of wind speed is almost never used in the countries of the former Soviet Union.

Add material you theme ?

I think that adding material you I think that adding material U to the application will modernize it more and therefore to make it fit better into the rest of the system
Thanks !

OpenWeatherMap API error & crashing

Hello. I've been using the app for quite awhile now but have recently been having some problems.

It feels like these problems started happening around version 1.7.1. I use OpenWeatherMap for this app and several others and have my own private API key. When I initially open the app I get a pop-up asking me for my key, which is already there.

Ossweather.png

When I click save, the app will crash every time and I have to manually clear it from active apps or it will crash when I try to open it again. If I do not touch save, but touch the screen anywhere else, the pop-up will disappear; however, the app will not automatically update. I have to select the ellipsis and touch refresh. If I pull down to refresh, about half of the time nothing happens. The other half of the time, the app will crash.

I couldn't find anywhere to collect logs for you. If there is, please let me know.

OS: Android 14 - GrapheneOS
Device: Pixel 7 pro
App version: 1.7.5.77
APK source: GitHub

Weather alerts not showing up

When the top of the app indicates there is a severe weather alert, tapping on the alert shows a blank popup. For example, today we have a storm (which I don't need the app to see) and I want to tap the severe weather alert to learn how long they estimate the storm will last and what the conditions will be. See image.

Device: Pixel 7 Pro
Android: 13
App version: 1.3.2.50
App source: F-droid

Screenshot2.2.2.png

Round Imperial temperature units

I would like to request that when using the imperial units that the temperature (°F) be rounded to its nearest whole number. It would tidy up the displayed data a little bit to omit the decimal and all figures after it much like the rest of the data. I attached a screenshot of both settings to see the difference, and what I think the result could look like (the way figures are displayed with metric units).

Current Imperial units displlay
Imperial_Ubits

Enhancement request for whole Imperial units (example)
Metric_Units

license confusion

While the Readme states "GPL3", the package.json says "MIT". Do both apply (a la "take your pick")? Or which one is it? 😉 Thanks!

Weather map not showing any data

Hi,

First of, thanks for the great app, it does all I need, in simple concise way. Loving it.

I was looking into the weather map section which from what I understand from the sceenshots should show precipitation data. It would be so helpful to forcast rain when on a biking roadtrip!

Unfortunatly I only see the osm layer and not the precipitation data one.

Is it just me ? Or is it a known issue ?( could find anything related to this in the existing GH issues)

From what I saw in the code in map/index.ts, at the very bottom, it seems that the url used to call OW's map API could be wrong since it seems different from the documentation.

Note that I use a personal OW api key, I might have missed something when setting it up.

Thanks for your inputs !

More Graph Options

The weather graph currently only shows temperature and Precipitation.

It would be very nice if there were layer options, similar to a radar app, but instead for raw weather data.

Geometric Weather's approach (with different categories for each metric) is pretty good, but I like your design better, and I would love to see more options for the graph, such as wind speed, UV index, and air quality, in hourly and possibly a daily form...

233225613-843f8fe0-27e0-464d-83fd-af5249a72362

In the future, a customizable Windy.com style Meteogram/Airgram option with cloud height etc. could be an even better option if you decide to use Open-Meteo's API (see #30)

image

image

I would love to see new graph options available, thanks for making such a great app!

font improvements

Great little app you got, thanks.

Some improvements could be made to the ui.

  • the gray colour of the cloud overcast % is almost imperceptible while the dark theme is active
  • the yellow colour of the UV intensity is imperceptible while the light theme is active
  • it would be nice to be able to choose a larger font because on smaller devices it is a bit hard to read

Add widget

it would be nice to be able to add a widget with the time, date and of course the weather
a bit like can do geometric weather
Screenshot_20230429-215612_Trebuchet.png

Messed up display

When used in portrait mode, the sunset hours and last update words get mixed up (in french).
Screenshot_2023-03-10-00-31-53-74_1c70c3151298b10f38162db1fcf1d3d5

Can't select favourites

Hello,

when I set a city as a favourite with a star, I should be able to select that city in the sidebar.

But when I click on a set favourite in the sidepanel, it does not change to that city in the main view.

The delete button for removing a set favourite from the sidepanel works as expected.

Auto black theme

Currently it is not possible to have the theme follow system settings and use black theme for dark mode. Please make this possible.

app won't start

Thanks for the new features and fixes.

v1.5.1 Build 63 won't start on Android 12. Error message "app keeps stopping".

v1.5.0 Build 62 did work as intended.

Can't scroll on favorite side bar.

Hello,
I've added more than 10 favorites and on my side bar i can't scroll down the list to see those above 10th rank. I can only see the first ten favorites.

I think you could maybe add the possibility to scroll down the favorites list.

Thanks

Show local time, rather than "current location" time

Display local time, instead of the time at "Current Location" when showing a location with a different local time. For example, if I'm in NY and I'd like to see the weather in LA, the time shown on the origin of time axis should be 3:00 hours behind New York.
Currently, the time for all locations is shown in reference to the Current Location, rather than local time.

Wind gust colour and dark theme

It's great that you are now including the wind gust speeds. However the current colour of red text on a dark background is quite difficult to read. Perhaps some shade of yellow could be used instead? It would be legible and stand out from the normal wind speed shown in white.

Also, strong gusty wind can be damaging to property, so anything over (for example) 80km/h | 50mph could be shown as white text on a red background tile to make it stand out.

Using v1.7.0.73 on Android 13

Invalid API key error

I'm getting the following error

Error
Invalid API key. Please see https://openweathermap.org/faq#error401 for more info.

I have created an open weather map account and have used the default key, created a new key, waited several days between account creation and new key creation before using the keys. But I continue to get the same error. I've verified I'm copying and pasting the full key correctly.

Do you have any recommendations?

[Suggestion] Programmed weather notification

It would be nice to be able to set a programmed notification to be sent with the current day's weather. In my case I would like to have the current day's weather summary for when I wake up, so I would set the notification to be sent at 7h30 so when I wake up no need to manually open the app.

Any comments on this?

Querying OWM API doesn't handle redirection

Most of the time I try refreshing my weather feed I get the following error:
Screenshot_20221027-095617_OSS_Weather_1

This can be bypassed by using VPN to get another end point.

curl-ing both api.openweathermap.org and 82.196.7.246 yields the following response:

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

My assumed solution is to properly handle redirection.

App says that my API key is invalid

Hello,

I've created an account on OpenWeatherMap (free account) and get my Api key.

It was 2 ou 3 days ago. Now on my account it says that the API key is "active".

But when i put it in the app, i got the message that my key is invalid.

Thanks for your help.

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.