my-weather-indicator applet

Technical issues/questions of an intermediate or advanced nature.
User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#16 by Rava » 05 Feb 2019, 23:17

Ed_P wrote:
05 Feb 2019, 23:09
The applet requires a DE so right click on your panel and see if it's an option. The 05-devel module is required to download it but not to run it.
Right-Clicking on the panel of Openbox does… exactly nothing. Then again, Openbox is only a simple window manager, not really a desktop Environment like e.g. XFCE is. But now that I learned about SpaceFM and what makes it unique I am kinda hooked on Openbox. And trying to get it to look and work as closely as XFCE would do. :)

But Openbox does have a panel.
Maybe it is possible to get my-weather-indicator applet running with Openbox. Maybe not out of the box, lame joke is lame, still probably possible doing some hacking or tweaking. I just would have to find a forum or place where such question was already asked and a solution was possible. Image
But I have urgent RL stuff to take care of tomorrow, so I will hit the pillow, nighty night for now.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#17 by Ed_P » 06 Feb 2019, 00:58

Sleep tight, don't let the bed bugs bite.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1758
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

Re: my-weather-indicator applet

Post#18 by ncmprhnsbl » 06 Feb 2019, 07:32

Ed_P wrote:
05 Feb 2019, 23:09
The applet requires a DE so right click on your panel and see if it's an option.
FYI "a DE", in this case, means Cinnamon specifically.
xfce has xfce4-weather-plugin-0.8.10-x86_64-4.txz
and there's this: https://github.com/kasramp/UbuntuIndicatorWeather (It runs in the system tray)
which i've managed to get working in openbox (i'll share the module later, if you want)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#19 by Rava » 06 Feb 2019, 09:58

ncmprhnsbl wrote:
06 Feb 2019, 07:32
xfce has xfce4-weather-plugin-0.8.10-x86_64-4.txz
and there's this: https://github.com/kasramp/UbuntuIndicatorWeather (It runs in the system tray)
which i've managed to get working in openbox (i'll share the module later, if you want)
Please do share the UbuntuIndicatorWeather module. :good:
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1758
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

Re: my-weather-indicator applet

Post#20 by ncmprhnsbl » 06 Feb 2019, 10:35

here you go:
simple-weather-indicator-x86_64-20190206.xzm
contains:

Code: Select all

gobject-introspection-1.58.2-x86_64-1.txz
indicator-weather_1.1-0ubuntu5_all.xzm (converted from .deb)
libappindicator3-16.10-x86_64-1_slonly.txz
libdbusmenu-gtk-16.04.0-x86_64-1alien.txz
libido3-16.10-x86_64-1_slonly.txz
libindicator-12.10.1-x86_64-2alien.txz
pygobject3-3.30.4-x86_64-1.txz
python-six-1.12.0-x86_64-2.txz
python-urllib3-1.24.1-x86_64-1.txz
python-reply (added manually via pip)
note this been made with a development version, it might work with 4.0 but will mess up package information.
went through quite a lot of "No Module named ..." python errors to track down the deps..
also, it seems operate ok mostly, but is a bit dodgy at times..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#21 by Rava » 06 Feb 2019, 11:35

^
Thanks, downloaded it, RL calling, I will report back as soon as I managed to try it out.

I presume I have to set the personal location for it to work, right? Is that done by a drop down list of large cities? Or done by latitude and longitude? (cause not everyone lives in a large city. :) )
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#22 by Ed_P » 06 Feb 2019, 16:15

:o Nice ncmp! :worship: And it auto detects location!! Wow!

The ability to configure it's update frequency would be nice to have.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#23 by Rava » 06 Feb 2019, 20:06

Ed_P wrote:
06 Feb 2019, 16:15
:o Nice ncmp! :worship: And it auto detects location!! Wow!
It is not 100% accurate in my case, does it use the IP address to guess the location?

I presume its setting are in ~/.indicator-weather/config.json

There I find these:

Code: Select all

"longitude": "0.00000"
"latitude": "0.00000"
I presume when one sets these, the indicator-weather uses the longitude and latitude as set in ~/.indicator-weather/config.json , and by doing so one would get a more accurate location?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#24 by Ed_P » 06 Feb 2019, 21:13

Right clicking on the panel's icon allows you to select Preferences and change the settings. The default is Auto but when turned off latitude and longitude can be entered.

I started the app by finding it in Menu > Accessories > Simple Weather Indicator.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#25 by Rava » 06 Feb 2019, 21:47

Ed_P wrote:
06 Feb 2019, 21:13
Right clicking on the panel's icon allows you to select Preferences and change the settings. The default is Auto but when turned off latitude and longitude can be entered.
The question is... where do I again find latitude and longitude when using openstreetmap?
Finding the location is easy, and zooming into the exact place as well, and I was able getting the latitude and longitude, but now I don't see that info anymore.

Right-clicking a place in openstreetmap gives me this menu
Image
but that menu is not really helpful. Or is latitude and longitude hidden in one of these entries? =@

Update
Maybe it is a bug in Palemoon?
https://help.openstreetmap.org/question ... nstreetmap
Use the www.openstreetmap.org website and hover the mouse pointer over the "permalink" link. The status bar in your browser should display the URL of the current map view which includes latitude and longitude of the map center. Or click the "export" tab which allows you to draw a rectangle on the map and see its edge coordinates.
The Palemoon status bar is empty and no latitude and longitude is displayed whatsoever. :crazy:

But the click the "export" tab which allows you to draw a rectangle technique is working. :Yahoo!:

__________________

Update2
Entering latitude and longitude and trying to exit Preferences seem to have crashed simple-weather-indicator-x86_64-20190206.xzm
Take a look at the screenshot, that is what is still there from the Preferences, and trying to click on the panel icon does nothing.
Image

And I cannot even kill is:

Code: Select all

guest@porteus:~$ killall indicator-weather 
indicator-weather: no process found
Could it be it terminated, but the panel is still displaying the icon?

Update3

Code: Select all

root@porteus:/mnt/live/memory/images# psg weath
 3222 pts/3    Sl     0:03 python /usr/bin/indicator-weather
 5081 tty2     Sl     0:02 python /usr/bin/indicator-weather
root@porteus:/mnt/live/memory/images# kill -9 3222
root@porteus:/mnt/live/memory/images# kill -9 5081
After that, I was able to start it anew, and it did remember the latitude and longitude settings, it even tells the position by streetname, which is a bit creepy. I feel like the thing is stalking me. :D

In case one wonders what psg is:

Code: Select all

root@porteus:/mnt/live/memory/images# type psg
psg is a function
psg () 
{ 
    /bin/ps ax | /bin/grep "$1" | /bin/grep -v grep
}
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#26 by Ed_P » 06 Feb 2019, 23:13

psg

Code: Select all

guest@porteus:~$ psg weath
bash: psg: command not found
guest@porteus:~$ type psg
bash: type: psg: not found
guest@porteus:~$ cd /mnt/live/memory/images
guest@porteus:/mnt/live/memory/images$ su
Password: 
root@porteus:/mnt/live/memory/images# psg weather
bash: psg: command not found
root@porteus:/mnt/live/memory/images# type psg
bash: type: psg: not found
root@porteus:/mnt/live/memory/images# 
psg = Rava-code?
Ed

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#27 by Rava » 06 Feb 2019, 23:17

Ed_P wrote:
06 Feb 2019, 23:13
psg

Code: Select all

guest@porteus:~$ psg weath
bash: psg: command not found
guest@porteus:~$ type psg
bash: type: psg: not found
guest@porteus:~$ cd /mnt/live/memory/images
guest@porteus:/mnt/live/memory/images$ su
Password: 
root@porteus:/mnt/live/memory/images# psg weather
bash: psg: command not found
root@porteus:/mnt/live/memory/images# type psg
bash: type: psg: not found
root@porteus:/mnt/live/memory/images# 
psg = Rava-code?
Did you not read my post?
Rava wrote:
06 Feb 2019, 21:47
In case one wonders what psg is:

Code: Select all

root@porteus:/mnt/live/memory/images# type psg
psg is a function
psg () 
{ 
    /bin/ps ax | /bin/grep "$1" | /bin/grep -v grep
}
:%)

You do know how to set up a bash function when the code is given to you, yes?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#28 by Ed_P » 06 Feb 2019, 23:24

Inside a script yes.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 2021
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: my-weather-indicator applet

Post#29 by Rava » 06 Feb 2019, 23:29

Ed_P wrote:
06 Feb 2019, 23:24
Inside a script yes.
News flash, it can be done inside a bash shell as well. You can define it in the same file that defines your aliases, e.g. in ~/.bashrc.
Just add this:

Code: Select all

function psg () { /bin/ps ax|/bin/grep "$1"|/bin/grep -v grep; }
into your ~/.bashrc and save ~/.bashrc. Then start a new terminal and try it via "type psg"
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 4489
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: my-weather-indicator applet

Post#30 by Ed_P » 06 Feb 2019, 23:54

I don't have a /home/guest/.bashrc file.
Ed

Post Reply