LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 03-08-2019, 02:29 PM   #1
panorain
Member
 
Registered: Dec 2018
Location: North Pole
Distribution: LinuxMint 20.1 Mate Desktop/openSUSE Tumbleweed
Posts: 55

Rep: Reputation: Disabled
inxi -w fails to report weather conditions.


I have installed the weather report applet v.120.1 on the Mate taskbar.

Most of the time the applet does in fact report the weather conditions for my area but sometimes does fail.

Looking in ~/.local/share/inxi
there are 2 files:

location-main.txt
weather-45.7953-92.6935.txt

Code:
inxi -w
Weather:
Message: No weather data found. Internet connection working?

1. For the taskbar applet is there a preferred way to enable/setup the 'radar map' feature for the specific area one lives in?
2. Is there a way for me to get inxi -w working?

Thank You for any help on this.
 
Old 03-08-2019, 05:11 PM   #2
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 104

Rep: Reputation: Disabled
The data source in legacy inxi (legacy in this case is inxi version 3.0.31 or older) is gone, that is why 3.0.32 was hurried out the door. There is nothing you can do to get -w data in inxi except upgrade to current inxi.

Note that new inxi also has the --weather-source option, takes values 1-6, but 1 is the one that went offline this month.

All of them are quite different, internally I pick a default source to use based on which seems most consistent, or you can force it.
 
1 members found this post helpful.
Old 03-08-2019, 05:25 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
@panorain: given h2 (the inxi developer)'s answer, which distro are you running? There are various ways of getting a more up-to-date version of inxi.
 
Old 03-08-2019, 07:16 PM   #4
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 104

Rep: Reputation: Disabled
As an aside, while developing the fixes for inxi weather, I also learned that the xfce weather applet is using a deprecated api as well, from norway, however, while the fix to update it is easy if you know C, the api itself is basically worthless, I tested that one for inxi too, and dumped it because it wasn't even remotely close to reality.

So the xfce weather applet may start to fail soon too. The maintainer isn't really the author, and he doesn't express any interest in doing the work, which is understandable, it's always easy to volunteer someone else to do the work, lol...
 
1 members found this post helpful.
Old 03-08-2019, 07:24 PM   #5
panorain
Member
 
Registered: Dec 2018
Location: North Pole
Distribution: LinuxMint 20.1 Mate Desktop/openSUSE Tumbleweed
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thank you for your responses and help. I am using Linux Mint 19.1 Tessa with the Mate desktop.

I was given a solution which does not seem to work as of yet. Adding a PPA. It also seems that removing version inxi 3.0.27-00 removes alot of other packages also which I am not certain is a very good idea on my end.

apt-add-repository ppa:unit193/inxi <---- I did add the PPA yet still inxi -V reports inxi 3.0.27-00

I also did logout initially and then reboot/power cycle the computer after adding the PPA.

Thank You

Last edited by panorain; 03-08-2019 at 07:31 PM. Reason: Wording
 
Old 03-08-2019, 09:12 PM   #6
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 104

Rep: Reputation: Disabled
If you added unit193's repository, you would have gotten 3.0.32, since he is the maintainer of inxi in debian and ubuntu, and that's the version in his repos.

I can't say anything about how mint handles versioning. Also, you can just overwrite the inxi version in /usr/bin/inxi with the github version, it's just a file.

You don't have to do stuff like logout or reboot, this isn't windows, if the repo is added correctly, and you run apt-get update, and if the packaging is correct in mint, it should 'just work'.
 
Old 03-09-2019, 03:54 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by panorain View Post
Thank you for your responses and help. I am using Linux Mint 19.1 Tessa with the Mate desktop.

I was given a solution which does not seem to work as of yet. Adding a PPA. It also seems that removing version inxi 3.0.27-00 removes alot of other packages also which I am not certain is a very good idea on my end.

apt-add-repository ppa:unit193/inxi <---- I did add the PPA yet still inxi -V reports inxi 3.0.27-00

I also did logout initially and then reboot/power cycle the computer after adding the PPA.

Thank You
I also run Mint 19.1. If the repository was added ok, then as h2-1 says, all you should need to do is run:

Code:
apt update
then

Code:
apt upgrade
to update inxi to the version in the repo.
 
Old 03-09-2019, 12:16 PM   #8
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 104

Rep: Reputation: Disabled
I don't know how Mint does this, but it is possible that given Mint is based on an older Ubuntu, you'd have to force the more current version to install with the -t flag:

Code:
-t, --target-release, --default-release
           This option controls the default input to the policy engine; it creates a default pin at priority 990 using the specified
           release string. This overrides the general settings in /etc/apt/preferences. Specifically pinned packages are not
           affected by the value of this option. In short, this option lets you have simple control over which distribution packages
           will be retrieved from. Some common examples might be -t '2.1*', -t unstable or -t sid. Configuration Item:
           APT::Default-Release; see also the apt_preferences(5) manual page.
To me this is all needlessly complex when you can just update the file manually with wget.

But usually distros based on frozen pools have apt set to use only that pool by default, so if you install out of the pool, as with a PPA, you have to force it. I do not know how Ubuntu does that re syntax etc.

I've suggested Mint start grabbing the current inxi from unit193 repo and keeping inxi up to date for its users, but I can't force them to do such a clearly beneficial thing. All new inxi updates happen for a reason, whether as in this case, it's replacing a deprecated data source, or fixing a bug, or adding support for more hardware/software, but, again, despite this being clearly in Mint's self interest to do, Mint isn't doing that.

Last edited by h2-1; 03-09-2019 at 12:21 PM.
 
Old 03-09-2019, 12:21 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by h2-1 View Post
I don't know how Mint does this, but it is possible that given Mint is based on an older Ubuntu, you'd have to force the more current version to install with the -t flag:

Code:
-t, --target-release, --default-release
           This option controls the default input to the policy engine; it creates a default pin at priority 990 using the specified
           release string. This overrides the general settings in /etc/apt/preferences. Specifically pinned packages are not
           affected by the value of this option. In short, this option lets you have simple control over which distribution packages
           will be retrieved from. Some common examples might be -t '2.1*', -t unstable or -t sid. Configuration Item:
           APT::Default-Release; see also the apt_preferences(5) manual page.
To me this is all needlessly complex when you can just update the file manually with wget.

But usually distros based on frozen pools have apt set to use only that pool by default, so if you install out of the pool, as with a PPA, you have to force it. I do not know how Ubuntu does that re syntax etc.
All you need to do with Mint/Ubuntu is ensure that the correct version is included in the software source file, but this is automatically handled by add-apt-repository ppa:.... The OP will not need to do anything apart from use that command to add the PPA, update the local package details with apt update, and then issue an apt upgrade to update anything that needs updating.
 
Old 03-09-2019, 12:23 PM   #10
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 104

Rep: Reputation: Disabled
https://launchpad.net/~unit193/+archive/ubuntu/test As Unit193 says, don't use this repo in a frozen pool release, because when you run apt-get upgrade things may change. They should not theory do so, but they may, since upgrade only upgrades packages where it's safe to do so, in theory, however, theory and reality have to be synced before assuming the theory actually works.

I don't run frozen pool distros, so you shouldn't listen to any recommendations I give beyond the suggestion to do what I do, update manually. Note that if you open up /etc/inxi.conf then comment out the B_ALLOW_UPDATE, then as root or sudo run: inxi -U
your troubles will be over.

Last edited by h2-1; 03-09-2019 at 12:25 PM.
 
Old 03-09-2019, 12:36 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by h2-1 View Post
https://launchpad.net/~unit193/+archive/ubuntu/test As Unit193 says, don't use this repo in a frozen pool release, because when you run apt-get upgrade things may change. They should not theory do so, but they may, since upgrade only upgrades packages where it's safe to do so, in theory, however, theory and reality have to be synced before assuming the theory actually works.

I don't run frozen pool distros, so you shouldn't listen to any recommendations I give beyond the suggestion to do what I do, update manually. Note that if you open up /etc/inxi.conf then comment out the B_ALLOW_UPDATE, then as root or sudo run: inxi -U
your troubles will be over.
I think that unit193 is only referring to where he says "Desktop/GUI packages will not be supported longer than the usual release cycle in LTSes."

That doesn't refer to inxi though. Using inxi from that PPA should be perfectly ok.
 
Old 03-09-2019, 01:04 PM   #12
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,313
Blog Entries: 21

Rep: Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167
Code:
harry@biker:~
$ sudo inxi -U
Starting inxi self updater.
Using curl as downloader.
Currently running inxi version number: 3.0.29
Current version patch number: 00
Current version release date: 2018-12-10
Updating inxi in /usr/local/bin using main branch as download source...
Successfully updated to main branch version: 3.0.32
New main branch version patch number: 00
New main branch version release date: 2019-02-07
To run the new version, just start inxi again.
----------------------------------------

Starting download of man page file now.
Downloading Man page file...
Download successful. Compressing file...
Download and install of man page successful.
Check to make sure it works: man inxi
harry@biker:~
$ cat /etc/inxi.conf
B_ALLOW_UPDATE='true'

Code:
harry@biker:~
$ inxi -wxxx 79772
Weather:
  Temperature: 20.2 C (68 F) Conditions: Clear Sky 
  Wind: from W at 4.0 m/s (14 km/h, 9 mph) Cloud Cover: 0% Humidity: 15% 
  Dew Point: -7.5 C (19 F) Pressure: 919.084 mb (31 in) Location: Pecos, TX, USA
  Current Time: Sat 09 Mar 2019 12:52:19 PM CST (America/Chicago) 
  Observation Time: Sat 09 Mar 2019 12:52:19 PM CST Source: WeatherBit.io
tired of waiting on Debian stretch . No need to play with my repos.

Code:
$ inxi -V
inxi 3.0.32-00 (2019-02-07)

Program Location: /usr/local/bin/
Website: https://github.com/smxi/inxi or https://smxi.org/
IRC: irc.oftc.net channel: #smxi
Forums: https://techpatterns.com/forums/forum-33.html
 
inxi - the universal, portable, system information tool for console and irc.
Using Perl version: 5.024001
 
This program started life as a fork of Infobash 3.02: 
Copyright (C) 2005-2007 Michiel de Boer aka locsmif. 
Subsequent changes and modifications (after Infobash 3.02): 
Copyright (C) 2008-2019 Harald Hope aka h2. 
CPU/Konversation fixes: Scott Rogers aka trash80. 
USB audio fixes: Steven Barrett aka damentz. 

This program is free software; you can redistribute it and/or modify it under the terms 
of the GNU General Public License as published by the Free Software Foundation; either 
version 3 of the License, or (at your option) any later version. 
(https://www.gnu.org/licenses/gpl.html)
While I am there



Code:
$ sudo pinxi -U
Starting pinxi self updater.
Using curl as downloader.
Currently running pinxi version number: 3.0.30
Current version patch number: 10
Current version release date: 2019-02-06
Updating pinxi in /usr/local/bin using inxi-perl branch as download source...
Successfully updated to inxi-perl branch version: 3.0.32
New inxi-perl branch version patch number: 03
New inxi-perl branch version release date: 2019-02-26
To run the new version, just start pinxi again.
----------------------------------------

Starting download of man page file now.
Skipping man download because branch version is being used.
harry@biker:~
$ pinxi -wxxx 79772
Weather:
  Temperature: 20.2 C (68 F) Conditions: Clear Sky 
  Wind: from W at 4.0 m/s (14 km/h, 9 mph) Cloud Cover: 0% Humidity: 15% 
  Dew Point: -7.5 C (19 F) Pressure: 919.084 mb (31 in) Location: Pecos, TX, USA 
  Current Time: Sat 09 Mar 2019 12:58:49 PM CST (America/Chicago) 
  Observation Time: Sat 09 Mar 2019 12:52:19 PM CST Source: WeatherBit.io 
harry@biker:~
$ pinxi -V
pinxi 3.0.32-03 (2019-02-26)

Program Location: /usr/local/bin/
Website: https://github.com/smxi/inxi or https://smxi.org/
IRC: irc.oftc.net channel: #smxi
Forums: https://techpatterns.com/forums/forum-33.html
 
pinxi - the universal, portable, system information tool for console and irc.
Using Perl version: 5.024001
 
This program started life as a fork of Infobash 3.02: 
Copyright (C) 2005-2007 Michiel de Boer aka locsmif. 
Subsequent changes and modifications (after Infobash 3.02): 
Copyright (C) 2008-2019 Harald Hope aka h2. 
CPU/Konversation fixes: Scott Rogers aka trash80. 
USB audio fixes: Steven Barrett aka damentz. 

This program is free software; you can redistribute it and/or modify it under the terms 
of the GNU General Public License as published by the Free Software Foundation; either 
version 3 of the License, or (at your option) any later version. 
(https://www.gnu.org/licenses/gpl.html) 
harry@biker:~
$
 
Old 03-09-2019, 02:37 PM   #13
panorain
Member
 
Registered: Dec 2018
Location: North Pole
Distribution: LinuxMint 20.1 Mate Desktop/openSUSE Tumbleweed
Posts: 55

Original Poster
Rep: Reputation: Disabled
It is very nice how others that are much smarter than I ever will be to give input on this particular forum topic.

Ended up reverting the inxi -V output and installation to ----> inxi 3.0.27-00 ---- inxi 3.0.27-00

So afraid of broken scripts my apologies.

have a nice time hey.
 
Old 03-09-2019, 02:46 PM   #14
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,313
Blog Entries: 21

Rep: Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167Reputation: 3167
Man. If you only know how self taught I am. It is frightening how computer ignorant I was in 2008.

Not smart. I just take notes. Plus. I volunteer alot of my time to developers.
Being a 2 way street. I test. They teach me. Win win.
 
Old 03-09-2019, 03:26 PM   #15
panorain
Member
 
Registered: Dec 2018
Location: North Pole
Distribution: LinuxMint 20.1 Mate Desktop/openSUSE Tumbleweed
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thank You for being a part of the open source community.

---looks like I may have to close this post soon. To many awesome responses.
 
  


Reply

Tags
applet, inxi, weather


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Weather App catering for IRISH weather? business_kid Linux - General 30 10-26-2017 02:25 PM
[SOLVED] gnome shell weather extension no longer loads, says 'loading current weather' sdowney717 Linux - Software 3 10-16-2015 12:23 PM
LXer: Weather Trek - Weather planning for Trips LXer Syndicated Linux News 0 01-07-2015 12:21 PM
how do I get the output of (inxi -F) to forum? rayratliff Linux - Newbie 17 07-09-2014 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration