Skip to content

Commit

Permalink
releasev1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed Feb 8, 2024
1 parent 2b8e481 commit 7e09e5e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 36 deletions.
31 changes: 19 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@

<p>Beautiful lightweight weather app based on Python and Gtk</p>

<div align="center">
<h2>Support</h2>
I hope you ❤️ the weather app, if you think it is worth supporting you can do so using below methods

<a href="https://www.buymeacoffee.com/ami9838" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >
</a>
</div>
<div align="center">
<a href="https://opencollective.com/weather"><img src="https://opencollective.com/spotube/donate/button.png?color=blue" alt="Donate to our Open Collective" height="45"></a>
</div>

---

<img src="https://img.shields.io/github/v/release/amit9838/mousam?style=flat&label=Latest+Release&color=%234a92ff">
</div>
Expand Down Expand Up @@ -72,3 +60,22 @@ meson install -C builddir
```
mousam
```

### **Debian** (Unofficial)
Thanks to @hsbasu for maintaining Debian package

[Installation Instruction](https://github.com/amit9838/mousam/discussions/68)



<div align="center">
<h2>Support</h2>
I hope you ❤️ <b>Mousam</b>, if you think it is worth supporting you can do so using below methods
<br>
<br>
<a href="https://www.buymeacoffee.com/ami9838" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >
</a>
</div>
<div align="center">
<a href="https://opencollective.com/weather"><img src="https://opencollective.com/spotube/donate/button.png?color=blue" alt="Donate to our Open Collective" height="45"></a>
</div>
17 changes: 15 additions & 2 deletions data/io.github.amit9838.mousam.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<id>io.github.amit9838.mousam.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>Weather</name>
<name>Mousam</name>
<summary>Beautiful and lightweight mousam app</summary>
<description>
<p>Current Weather conditions and forcasts.</p>
<p>Features:</p>
<ul>
<li>Displays real-time temperature, humidity, and wind speed,UV index,pressure and more</li>
<li>Displays real-time temperature, humidity,wind speed,UV index,pressure and more</li>
<li>Utilizes graphical representations, such as temperature , precipitation graphs and wind-speed with direction to provide an hourly forecast for the next 24 hours</li>
<li>Also provides tomorrow and 7-day forcasts</li>
<li>See conditions in metric or imperial systems</li>
Expand Down Expand Up @@ -55,6 +55,19 @@
</categories>
<content_rating type="oars-1.1" />
<releases>
<release version="1.0.2" date="2024-02-8">
<description translatable="no">
<p>Bug fixes</p>
<ul>
<li>Bug fixes related to build</li>
</ul>
<p>Thanks to</p>
<ul>
<li>@hsbasu: multiple improvents related to build.</li>
<li>@soumyaDghosh: for bug fixes related to snap.</li>
</ul>
</description>
</release>
<release version="1.0.1" date="2024-01-16">
<description translatable="no">
<p>Bug fixes</p>
Expand Down
40 changes: 20 additions & 20 deletions src/frontendForecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,29 +142,29 @@ def page_stacks(self, page_name):
forecast_cond_grid = Gtk.Grid(valign=Gtk.Align.CENTER,margin_end = 20)
forecast_item_grid.attach(forecast_cond_grid, 2, 0, 1, 1)

# prec probability
if page_name == 'tomorrow':
prec_probability = hourly_data.precipitation_probability.get("data")[i]
wind_probability = hourly_data.windspeed_10m.get("data")[i]
# # prec probability
# if page_name == 'tomorrow':
# prec_probability = hourly_data.precipitation_probability.get("data")[i]
# wind_probability = hourly_data.windspeed_10m.get("data")[i]


drop_icon = Gtk.Image().new_from_file(icons["raindrop"])
drop_icon.set_pixel_size(25)
drop_icon.set_halign(Gtk.Align.START)
forecast_cond_grid.attach(drop_icon, 0, 0, 1, 1)

prec_probability_label = Gtk.Label(label=f" {prec_probability}%", margin_top=5)
prec_probability_label.set_halign(Gtk.Align.START)
forecast_cond_grid.attach(prec_probability_label, 1, 0, 1, 1)
# drop_icon = Gtk.Image().new_from_file(icons["raindrop"])
# drop_icon.set_pixel_size(25)
# drop_icon.set_halign(Gtk.Align.START)
# forecast_cond_grid.attach(drop_icon, 0, 0, 1, 1)

# prec_probability_label = Gtk.Label(label=f" {prec_probability}%", margin_top=5)
# prec_probability_label.set_halign(Gtk.Align.START)
# forecast_cond_grid.attach(prec_probability_label, 1, 0, 1, 1)

# Wind speed probability
wind_icon = Gtk.Image().new_from_file(icons["wind"])
wind_icon.set_pixel_size(25)
wind_icon.set_halign(Gtk.Align.START)
forecast_cond_grid.attach(wind_icon, 0, 1, 1, 1)
speed_unit= hourly_data.windspeed_10m.get("unit")
wind_probability_label = Gtk.Label(label=f" {wind_probability} {speed_unit}", margin_top=5)
forecast_cond_grid.attach(wind_probability_label, 1, 1, 1, 1)
# # Wind speed probability
# wind_icon = Gtk.Image().new_from_file(icons["wind"])
# wind_icon.set_pixel_size(25)
# wind_icon.set_halign(Gtk.Align.START)
# forecast_cond_grid.attach(wind_icon, 0, 1, 1, 1)
# speed_unit= hourly_data.windspeed_10m.get("unit")
# wind_probability_label = Gtk.Label(label=f" {wind_probability} {speed_unit}", margin_top=5)
# forecast_cond_grid.attach(wind_probability_label, 1, 1, 1, 1)


# Temp label grid
Expand Down
8 changes: 6 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
integrity="sha512-Avb2QiuDEEvB4bZJYdft2mNjVShBftLdPG8FJ0V7irTLQ8Uo0qcPxh4Plq7G5tGm0rU+1SPhVotteLpBERwTkw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="script.js" defer></script>
<title>Mousam App</title>
<title>Mousam</title>
</head>

<body>
Expand Down Expand Up @@ -93,6 +93,10 @@ <h3 class="subheading">Get it from Snapstore</h3>
src='https://github.com/snapcore/snap-store-badges/blob/master/EN/%5BEN%5D-snap-store-black-uneditable.png?raw=true' /></a>
<p>Or you can use the terminal:</p>
<pre><code>sudo snap install mousam</code></pre>

<h3 class="subheading">Install Debian Package</h3>
<p>Thanks to @hsbasu for maintaining Debian package</p>
<a href="https://github.com/amit9838/mousam/discussions/68">See Installation Instructions</a>
</section>

<section id="about" class="about">
Expand All @@ -104,7 +108,7 @@ <h2>About</h2>

<section class="donation">
<h2>Support</h2>
I hope you ❤️ the weather app, if you think it is worth supporting you can do so using below methods
I hope you ❤️ <b>Mousam</b> , if you think it is worth supporting you can do so using below methods
<br>
<br>
<div align="center">
Expand Down

0 comments on commit 7e09e5e

Please sign in to comment.