solus-project / budgie-desktop

I Tawt I Taw A Purdy Desktop
https://solus-project.com/
2.34k stars 159 forks source link

Weather applet for Budgie Desktop #689

Open Codalunga opened 7 years ago

Codalunga commented 7 years ago

Operating System: Solus 1.2.1. Budgie version: Budgie 10.2.8.

Maybe is just me, but I'm used to check the weather with just a glimpse at the up-right corner of my screen, so a weather applet that can be easily added via Raven is sorely missed :D I don't think people are craving for this, but it'd still be cool to have such a feature!

...

tristan957 commented 7 years ago

I'd love a little applet in Raven to show current temp and stuff. An implementation like macOS' would be quite nice as an optional applet.

ikeydoherty commented 7 years ago

Screenie?

tristan957 commented 7 years ago

20161027_214001

@ikeydoherty took this right off my friend's laptop. I think it has potential regarding a basic design. Would love to see how you could improve it.

ikeydoherty commented 7 years ago

I should murder you for the pissed screenshot. lol.

Justinzobel commented 7 years ago

A start on one was made by this user and code can be retrieved from there if anyone is interested http://entornosgnulinux.com/2016/05/21/minimalist-weather-indicator-en-solus-1-1/

tristan957 commented 7 years ago

I just got back from basketball shenanigans. Cut me some slack Jack ;)

ikeydoherty commented 7 years ago

=P

Codalunga commented 7 years ago

Yeah I was just thinking something simple, similar to Ubuntu Weather Indicator, or any xfce/mate weather plugin :D You know, something similar to this

weather

@tristan957 that looks pretty rad, man. I can't figure out a way to implement it without adding another tab to Raven tough, which would be sort of redundant just for weather notifications, at least for me :D @Justinzobel thanks for the heads-up, it needs more polish but it's promising!

Vistaus commented 7 years ago

I want such an applet as well! I've tried to install and setup the aforementioned Weather applet but it doesn't display the current temperature :cry: A real applet is what we need!

ikeydoherty commented 7 years ago

We support out of tree applets, there is literally nothing stopping anyone from writing one :) It's encouraged, I don't want bloat in the core of Budgie.

tristan957 commented 7 years ago

How can we go about learning how to create an applet? I'd like to try my hand at programming that isn't related to schoolwork.

ikeydoherty commented 7 years ago

Good question! So, what resources can I help create, and what would be the best format?

tristan957 commented 7 years ago

That's an even better question. I feel like there could be a video series or an online tutorial written out with screenshots that followed the development of an applet, which included commented source code to look at. Obviously I'm no expert, but maybe a page on the Wiki that was titled "For Developers" and had different headers or sub-pages like "Applet Development", "Budgie Development", "Packaging" (maybe packaging could be moved onto this page as well), etc. For example in "Applet Development", there could be "Creating the 'Hello World' applet", "How to integrate an applet into the panel", "How to integrate an applet into Raven", etc. There could also be opinions like what the preferred language is for creating an applet. Also helpful links to the GTK documentation as well as others.

I think this would be a better suited question on Google+ and Reddit where you can get more opinions though.

ikeydoherty commented 7 years ago

Well asking on G+ is nice but leads to a lot of bikeshedding, where there isn't genuine interest in developing a Budgie applet, rather just a large box for people to shout into :)

tristan957 commented 7 years ago

Maybe asking the IRC would be better. There are normally technologically literate people there :P

ikeydoherty commented 7 years ago

No :P Summons IRC People

.... waits awkwardly ...

baimafeima commented 7 years ago

(...) but maybe a page on the Wiki that was titled "For Developers" and had different headers or sub-pages like "Applet Development", "Budgie Development", "Packaging" (maybe packaging could be moved onto this page as well), etc.

@tristan957 I think this would be a good start.

kyrios123 commented 7 years ago

I also hope that someone will develop such an applet: I'm using the MATE edition because my wife wants to see the weather in the panel :sunny: :partly_sunny: :cloud:

jawz101 commented 7 years ago

Now it's approved? lol @kyrios123 good work, man.

kyrios123 commented 7 years ago

lol @jawz101 Yeah I am such an influential person, you know ! :trollface:

ilgarmehmetali commented 7 years ago

Is anyone working on this? im thinking of giving it a go. I tried looking for a completely free to use weather api but couldn't find one. Would asking users to register a apikey from an online provider be okey?

Vistaus commented 7 years ago

@ilgarmehmetali

You can use darksky.net's API. The API calls are limited to 1000 free calls a day (you can have more if you pay) so it's no ideal, but for a first applet, you should be okay with 1000 free calls. A subscription allows more calls, it costs money, but it's cheap and maybe we (all) could work out some sort of crowdfunding/donation thing. But like I said: the free version should be good enough given the limited scope of users right now. Or you could have everyone register their own API key, that way every user has 1000 free calls a day. I love Dark Sky esp. for the fact that they're very accurate.

If you're not satisfied with that, you can also use the IMHO almost-as-good OpenWeatherMap, but everyone needs to register their own API so that's slightly inconvenient. But it's free, no limited API calls and having your own key as a user also has benefits :) You can make inserting the API key easy for users by allowing to do it through a GUI. That's how the OpenWeather extension for GNOME does it.

Btw, thanks for looking into it! I love Budgie so much every day, but I do miss a weather applet so I'd be very happy and willing to donate if you could create one :)

tristan957 commented 7 years ago

Why not just use libgweather I think is the name of the library?

ilgarmehmetali commented 7 years ago

@Vistaus We would have to crowdfund it somehow if we are to use darksky;

Can I require my users to sign up for a developer's API key? No, your end-users should not sign up for Dark Sky API keys as a means for you to circumvent the daily cap of 1,000 free calls. The 1,000 free calls per day are intended for one developer or company to explore the API.

@tristan957 libgweather doesnt have all the cities in my country and they have 53 open bug reports about locations thats just sitting there. So i dont realy want to use it.

I think i will use OpenWeatherMap and ask users to get apikey.

tristan957 commented 7 years ago

I mean it doesn't seem so hard to contribute to libgweather. Why not contribute and make the library better? It says it only allows for cities with greater than 100,000 people. Shouldn't be too hard for your country.

ilgarmehmetali commented 7 years ago

Unfortunately there are no public metar stations in my city to contribute data for but in a later time i might try finding metar stations for other major cities in my country. I think it would be hard to cover whole of the world in libgweather with people - companies etc selling their metar reports. Unfortunately not every weather station is sharing their data freely.

ilgarmehmetali commented 7 years ago

started working on this https://github.com/ilgarmehmetali/budgie-weather-applet its little rough on the edges but its working, i think :)

Justinzobel commented 7 years ago

Asking users to get an API key is just ugly :/ but I'll try out your implementation @ilgarmehmetali

Vistaus commented 7 years ago

@Justinzobel It's the same way the popular (!) OpenWeather extension for GNOME does it and no one complains about that. I don't think it's ugly, but it's not as user-friendly, of course. But hey, give the guy some credit. At least he cared enough to create a weather applet for us! And keep in mind that this is a first start, who knows, maybe later on he can rework it so that users don't need their own API key anymore.

@ilgarmehmetali Thank you so, so much for doing this! I'll try it out today :)

Justinzobel commented 7 years ago

@Vistaus you mistake my comments for insult, they are not. It's just that with Solus we try to make things as simple as possible for the end user.

ilgarmehmetali commented 7 years ago

I have added libgweather as a provider too. Things are working better now, check it out again. @Justinzobel It seems OpenWeatherMap supports foss, i have requested them to remove limitations from my key too, they said they will consider it. Lets hope they decide to support my project too.

Justinzobel commented 7 years ago

Oh that's excellent news! I'll give it a try now.

Justinzobel commented 7 years ago

Great work already! Are you planning for it to be clickable to see forecast type information?

ilgarmehmetali commented 7 years ago

Yes, im thinking of adding forecast, but i cant give any estimated time for that. Though i could say most of the work is already done, adding forecast shouldn't be too hard.