Coder Social home page Coder Social logo

amit9838 / mousam Goto Github PK

View Code? Open in Web Editor NEW
186.0 9.0 34.0 7.77 MB

Wather at a glance

Home Page: https://amit9838.github.io/mousam/

License: GNU General Public License v3.0

Meson 2.97% Python 73.23% CSS 4.29% HTML 0.93% JavaScript 18.51% Shell 0.07%
gnome gtk4 libadwaita python utility weather cairo card-design graph

mousam's Introduction

Mousam

Weather at a Glance

GitHub Discussions

Features

  • Displays real-time temperature, humidity, wind speed, UV index, pressure and more
  • Utilizes graphical representations, such as temperature , precipitation graphs and wind-speed with direction to provide an hourly forecast for the next 24 hours
  • Also shows tomorrow and 7-day forcasts
  • See conditions in metric or imperial systems

Installation

Flatpak:

Download on Flathub

  • Or you can use the terminal:
flatpak install flathub io.github.amit9838.mousam

Snap:

Download on SnapCraft

  • Or you can use the terminal:
sudo snap install mousam

Debian (Unofficial)

Download on SnapCraft

Thanks to @hsbasu for maintaining Debian package

Installation Instruction

Build

Dependances

  • python3-requests
  • build-essential
  • meson

Build

rm -rf builddir
meson setup -Dprefix=$HOME/.local builddir
meson compile -C builddir --verbose

Install

meson install -C builddir

Run

mousam

Contribution

Thanks to all the contributors have helped in the development project so that open-source community can enjoy best tools with best features.

Credits

  • Thanks to Open Meteo from providing weather data for free of cost.

  • Thanks to @basmilius for making beautiful weather icons.

Support

I hope you โค๏ธ Mousam, if you think it is worth supporting you can do so using below methods

Buy Me A Coffee

mousam's People

Contributors

amit-newstok avatar amit9838 avatar bertob avatar chlawrence31 avatar francobattista avatar gabsedits avatar georgescutelnicu avatar hsbasu avatar hui1601 avatar luiz-c-lima avatar lukaszh77 avatar nokse22 avatar originalsimon avatar radical4ever avatar rainloreley avatar scrambled777 avatar soumyadghosh avatar spicywasab avatar vistaus avatar vorons avatar yakushabb avatar yellowbery01 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  avatar  avatar  avatar  avatar  avatar  avatar

mousam's Issues

make a responsive layout

Current layout is beautiful but not responsive.so on small screen the window become cut partially.

Option to default to 5 Day forecast

I am using this on a dedicated tablet (old Surface 3 with Ubuntu 20.04) as a Weather Display and the application is always open.

It would be useful (to me :) ) to have the ability to set the 5 day forecast as the default display. Perhaps a check box in settings to set default tab?

add more css gradients for wider range of weather conditions

Current Behavior

  • Currently we have some basic background gradients that changes based on the lighting conditions (day / night) and the current weather condition.

Task

  • Create more beautiful gradient that suits different conditions, we can also improve existing ones ๐Ÿ˜Š.
    CSS file

Suggestion

  • Some more complex gradient can be used as bg.
    Since we are having two different gradients for day and night for weather condition, so we'll need two versions of gradients (day/night)

Misc

  • We can create gradient that better suits with our app,
    Add colourful gradient on the upper section 1/3(vh) and remaining 2/3 can be a darker for better visibility of weather elements.

  • If you are willing to contribute but for some reason can't build the app in your system, you can provide gradient code in the comments , Thanks for using Mousam ๐Ÿ˜Š

#css #python(basic)

No Title bar in the panel.

Currently the app has no title bar as shown in the picture below:
image
Not sure why but maybe because the app name was not set in the title bar?

Add better support for smartphone

Your weather app is looking great, and is usable with rotating the screen, however the ability to auto-adapt the ui is easy-enoooough with libadwaita and gtk4, it may require tweaking how the days are displayed, but would increase usabilty a lot!
aspectratioissue

No Data Shown

OS: Fedora 39
DE: Gnome
Package Format: Flatpak
Application Version: 1.0

Steps to Reproduce

  • Open Flatseal
  • Select Weather
  • Observe that Weather has network access
  • Open Weather
  • Observe no data is shown, just an error message saying "Could not fetch data from API"

Before updating to 1.0 I was able to use the app just fine. I've tried restarting my computer but it had no effect. Other software on my computer is able to access the internet without issue. I am able to search for and add new locations in the locations dialogue.

New Icon

The app seems tailored for gnome since it is using gtk4 / libadwaita so I'm thinking the icon could be redesigned to better fit the gnome guidelines / aesthetics.

Update the website

Design outine

Pages

  • Home
  • Downloads (Installation)
  • About

Elements to add on the page

Home

  • Title
  • Description
  • Screenshots
  • Features
  • Download Now (link to download page)
  • Footer

Downloads

  • provide some info about the current version just above the download links and add link to
    github downloads (button with text "download from github").
  • Platform
  • link to platform (like flatpak link)
  • CLI installation instructions (like - flatpak install flathub io.github.amit9838.weather, and RUN command)

About

  • Project card
  • Contributors card (with social links)
Prefer dark mode (would be great with theme toggle option)

Design idea is appreciated

Inclusion of Units for Imperial

Just what it says, a sad fact that Americans use imperial units for distance and degrees in F* - app is coming along though nicely. Thanks.

Use location services

It would be nice to make use of location services (if available) to automatically detect my location.

Debian packaging

Hi,
I really liked this app. Especially it provides some quite accurate forecasts at par with the weather channel.
I have implemented debian packaging for this app. If you are interested I can create a PR. You can check out this branch.

Inconsistent Hourly Forecast Data for Today and Tomorrow

Hello,

I've noticed an inconsistency in the hourly forecast data retrieved for 'today' and 'tomorrow', the data seems to be the same regardless of location, so it can't be just a coincidence.

issue

Can someone take a look into it so i make sure is not only a me problem? I guess it might be related to how the weather items are added into the stack-box, since the i always starts from 0 we keep getting the today's forecast instead of tomorrow's one.

Note: I'm running the app locally on Win7 OS, that's why im thinking it might be only me experiencing this issue and i decided to not look further into it for now.

State "No Internet" when external DNS communication blocked

Hey, I really like the design of your App, but was unable to use it as I always had the state "no internet".
I couldn't understand why only this Flatpak App couldn't access the internet.

The App has the flatpak sandbox network permission, so that shouldn't be the problem.
grafik

I then used Wireshark to try to find the issue and stumbled upon this. A connection to 1.1.1.1 on Port 53 (DNS) is blocked by my network gateway. This is intended as I have a local resolver and don't want other DNS Servers to be used on the network.
Bildschirmfoto vom 2024-02-12 22-40-39
Bildschirmfoto vom 2024-02-12 22-41-10

The allowed DNS Server is set as the system / network connection DNS Server. It seems the App has 1.1.1.1 hard-coded and therefore ignores the system-wide DNS setting.
Bildschirmfoto vom 2024-02-12 22-56-50

When I temporarily disabled the external DNS filter on my network gateway, the application worked normally.

As far as I can see, the App should just use the system-wide DNS setting, like any other Application does.
It could also be that the App uses a DNS Request to 1.1.1.1 to perform the internet connectivity check itself, then maybe using ping one.one.one.one or nmcli networking connectivity (on Devices using NetworkManager) instead would be less error-prone.

See here under "Networking Control Commands" for the possible return values of nmcli networking connectivity.

Thank you very much!

Create sub dirs to restructure src files

  • Create subdir for windows and spliit windows.py into diffrent windows like AboutWindow.py, PreferencesWindow.py.
  • Also spilit the PreferencesWindow into pages(dir) like location_page.py, appearance_page.py. etc.
  • Move the css content from css.py to style.css

Add keyboard shortcuts

add shortcuts for following events

  • Refresh weather (ctrl+r)
  • Open settings (ctrl + ,)
  • Open locations dialog (ctrl + l)
  • Press Enter to search when searching for locations (Enter)
    If i'm missing something pls suggest ๐Ÿ™‚

The visibility is always 24.1 km

As the title shows, the visibility is always 24.1 km for different days and different cities in version 1.0.1. What's more, the air pollution information is renewed slowly, lagging the actuality, in fact.

  • Fix Visibility
  • Fix Air Pollution

Better horizontal scrolling

Currently, the only way to scroll through the horizontal list is by using the scrollbar (which is tiny and sometimes difficult to grab). This is fine but it would be nice to be able to scroll using the scroll wheel or/and click-and-drag.

image

New icon?

Would you be interested in help with a new icon following the HIG more closely?

Here's a super quick attempt at just making the current icon use the square base shape, but I'd also be happy to try something more elaborate if you're interested.

image

Update Readme

  • Add details like App info,screenshots , flathub url, features, steps to build manually and thankyou list of contributers/developers .

Gathering Weather Data Spinner too big

Seems like the loading spinner is ginormous when the window is maximized. Don't really know if this is a feature or a bug in which case, feel free to close the this issue (if its a feature).

image

Add mousam.pot file

Add weather.pot so that that other developers can use it as a template for translation.

EXPOSED API KEY

Hey man its a nice project! However I saw that you are using an API key and its public. So anyone can use it and make thousands of requests costing you a lot of money.

Auto Refresh

It would be useful to be able to set an auto-refresh interval. Al least hourly.

I am using this on a dedicated tablet (old Surface 3 with Ubuntu 20.04) as a Weather Display and the application is always open. It has to be manually refreshed to show current time.

A name for the snap

Hiii, can you please suggest a name for your app which I will use in the snap-store for listing? The word weather is a vetted name, it's not allowed to use that. So, anything else?

Window resizing based on display size

This app really looks beautiful and is functional for me on the desktop, but it has no responsive layout to collapse into on a smaller screen size, like a Linux based phone.

[Request] Split translations for some strings

There are several strings used multiple times in different contexts. This works in English, but for languages that use noun declension (i.e. Polish) not so much.

Example:
"High" is used in mousam.py on line 276 (and also 286, but that's missing from mousam.pot), and in weatherData.py on lines 120, 133 and 142. In Polish translation, that should be "Max.", "Wysoki", "Wysoka" and "Wysokie".

The same with "Moderate", "Low" and "Extreme".

Show forecasts for, today, tomorrow, and 5days

Approach

  • Create a page switcher below main temperature box for today tomorrow and 5 days (left alingned) in the middle row.
  • Add scrolled window in each page.
  • Today and tomorrow cards may be nearly similar.
  • 7days card should include min/max temp (may be remove wind speed).

Inconsistent naming convention

I observed at some places the program is named as weather, while some other places use mousam as the package name as in snap. I'd suggest sticking to a single naming convention with mousam.

For example, you need to rename the following files and their contents as:

io.github.amit9838.weather.json  -->  io.github.amit9838.mousam.json

and its contents where ever you used weather.

Wrong description in flathub

WIth the new name, the flathub page received a new issue, the word weather got replaced with the word mousam in "Beautiful and lightweight weather app", to "Beautiful and lightweight mousam app"
imagen

Maximize window option

While 'Weather' can be maximized, it does not remember this setting on subsequent opening. It would be useful to have an 'open maximized' option or if it could remember the last window size.

I am using this on a dedicated tablet (old Surface 3 with Ubuntu 20.04) as a Weather Display and the application is always open.

Feature Request: Move "Now" to start of row

Hey everyone :-)

Firstly, awesome application; I tried the KDE and Gnome weather apps, and this was the easy winner.

That said, I'm wondering if the Now block in the Hourly, Wind and Precipitation tabs could be moved to the front of the row of hours so I can see what the current wind/temp/precipitation is?

[Suggestion] Add 24h time

Love the app, but would be nice to have the option to toggle between 12h and 24h time style.

image

Thanks!

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.