0
Są inne wtyczki pogodowe, ta najwyraźniej nie została jeszcze dostosowana do Mint 20.
Aktualizacja: zrobiem testy na Mint 20 w wersji live.
Pierwsze uruchomienie nieudane
Drugie uruchomienie udane:
Plik configuracyjny z jakim mi to dziala:
Być może wystarczy ustawić "autolocation": false,
Aktualizacja: zrobiem testy na Mint 20 w wersji live.
Kod:
mint@mint:~$ sudo apt-add-repository ppa:atareao/atareao
You are about to add the following PPA:
Applications from atareao
More info: https://launchpad.net/~atareao/+archive/ubuntu/atareao
Press Enter to continue or Ctrl+C to cancel
Executing: /tmp/apt-key-gpghome.6zQZvwZ3kK/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys A3D8A366869FE2DC5FFD79C36A9653F936FD5529
gpg: key 6A9653F936FD5529: public key "Launchpad PPA for atareao" imported
gpg: Total number processed: 1
gpg: imported: 1
mint@mint:~$ sudo apt update
Ign:1 cdrom://Linux Mint 20 _Ulyana_ - Release amd64 20200624 focal InRelease
Err:2 cdrom://Linux Mint 20 _Ulyana_ - Release amd64 20200624 focal Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://archive.canonical.com/ubuntu focal InRelease
Get:4 http://ppa.launchpad.net/atareao/atareao/ubuntu focal InRelease [17.5 kB]
Ign:5 http://packages.linuxmint.com ulyana InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:10 http://packages.linuxmint.com ulyana Release
Get:11 http://ppa.launchpad.net/atareao/atareao/ubuntu focal/main i386 Packages [8412 B]
Get:12 http://ppa.launchpad.net/atareao/atareao/ubuntu focal/main amd64 Packages [8664 B]
Get:13 http://ppa.launchpad.net/atareao/atareao/ubuntu focal/main Translation-en [4736 B]
Reading package lists... Done
E: The repository 'cdrom://Linux Mint 20 _Ulyana_ - Release amd64 20200624 focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Kod:
mint@mint:~$ sudo apt install my-weather-indicator
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gir1.2-geocodeglib-1.0 gir1.2-osmgpsmap-1.0 libosmgpsmap-1.0-1
python3-dateutil python3-html5lib python3-lxml python3-requests-oauthlib
python3-tzlocal
Suggested packages:
python3-genshi python3-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
gir1.2-geocodeglib-1.0 gir1.2-osmgpsmap-1.0 libosmgpsmap-1.0-1
my-weather-indicator python3-dateutil python3-html5lib python3-lxml
python3-requests-oauthlib python3-tzlocal
0 upgraded, 9 newly installed, 0 to remove and 433 not upgraded.
Need to get 5493 kB of archives.
After this operation, 22.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/atareao/atareao/ubuntu focal/main amd64 my-weather-indicator all 0.9.5-0extras20.04.09 [3879 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 gir1.2-geocodeglib-1.0 amd64 3.26.2-2 [6472 B]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libosmgpsmap-1.0-1 amd64 1.1.0-6 [40.0 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 gir1.2-osmgpsmap-1.0 amd64 1.1.0-6 [6188 B]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-dateutil all 2.7.3-3ubuntu1 [63.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-html5lib all 1.0.1-2 [84.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-lxml amd64 4.5.0-1 [1381 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-requests-oauthlib all 1.0.0-1.1build1 [16.8 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-tzlocal all 2.1~b1-2 [16.2 kB]
Fetched 5493 kB in 1s (4997 kB/s)
Selecting previously unselected package gir1.2-geocodeglib-1.0:amd64.
(Reading database ... 298032 files and directories currently installed.)
Preparing to unpack .../0-gir1.2-geocodeglib-1.0_3.26.2-2_amd64.deb ...
Unpacking gir1.2-geocodeglib-1.0:amd64 (3.26.2-2) ...
Selecting previously unselected package libosmgpsmap-1.0-1:amd64.
Preparing to unpack .../1-libosmgpsmap-1.0-1_1.1.0-6_amd64.deb ...
Unpacking libosmgpsmap-1.0-1:amd64 (1.1.0-6) ...
Selecting previously unselected package gir1.2-osmgpsmap-1.0.
Preparing to unpack .../2-gir1.2-osmgpsmap-1.0_1.1.0-6_amd64.deb ...
Unpacking gir1.2-osmgpsmap-1.0 (1.1.0-6) ...
Selecting previously unselected package python3-dateutil.
Preparing to unpack .../3-python3-dateutil_2.7.3-3ubuntu1_all.deb ...
Unpacking python3-dateutil (2.7.3-3ubuntu1) ...
Selecting previously unselected package python3-html5lib.
Preparing to unpack .../4-python3-html5lib_1.0.1-2_all.deb ...
Unpacking python3-html5lib (1.0.1-2) ...
Selecting previously unselected package python3-lxml:amd64.
Preparing to unpack .../5-python3-lxml_4.5.0-1_amd64.deb ...
Unpacking python3-lxml:amd64 (4.5.0-1) ...
Selecting previously unselected package python3-requests-oauthlib.
Preparing to unpack .../6-python3-requests-oauthlib_1.0.0-1.1build1_all.deb ...
Unpacking python3-requests-oauthlib (1.0.0-1.1build1) ...
Selecting previously unselected package python3-tzlocal.
Preparing to unpack .../7-python3-tzlocal_2.1~b1-2_all.deb ...
Unpacking python3-tzlocal (2.1~b1-2) ...
Selecting previously unselected package my-weather-indicator.
Preparing to unpack .../8-my-weather-indicator_0.9.5-0extras20.04.09_all.deb ...
Unpacking my-weather-indicator (0.9.5-0extras20.04.09) ...
Setting up libosmgpsmap-1.0-1:amd64 (1.1.0-6) ...
Setting up gir1.2-geocodeglib-1.0:amd64 (3.26.2-2) ...
Setting up python3-html5lib (1.0.1-2) ...
Setting up python3-lxml:amd64 (4.5.0-1) ...
Setting up python3-dateutil (2.7.3-3ubuntu1) ...
Setting up python3-tzlocal (2.1~b1-2) ...
Setting up python3-requests-oauthlib (1.0.0-1.1build1) ...
Setting up gir1.2-osmgpsmap-1.0 (1.1.0-6) ...
Setting up my-weather-indicator (0.9.5-0extras20.04.09) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Kod:
mint@mint:~$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7faa33d67be0>
#####################################################
System: Linux
Machine: x86_64
Node: mint
Release: 5.4.0-26-generic
Version: #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020
Platform: Linux-5.4.0-26-generic-x86_64-with-glibc2.29
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
OK. Internet connection. HTTPConnection: www.google.com
[Errno 2] No such file or directory: '/home/mint/.config/my-weather-indicator/my-weather-indicator.conf'
Error 1 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.UbuntuGeoIP was not provided by any .service files
Error 2 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.Hostip was not provided by any .service files
******* Adquiring inv direction *******
(process:6452): GLib-GObject-WARNING **: 11:41:52.472: ../../../gobject/gsignal.c:2617: signal 'changed::' is invalid for instance '0x55ca0184e430' of type 'GSettings'
(process:6452): GLib-GObject-WARNING **: 11:41:52.490: ../../../gobject/gsignal.c:2617: signal 'changed::' is invalid for instance '0x55ca0184ec80' of type 'GSettings'
(process:6452): GLib-GObject-WARNING **: 11:41:52.506: ../../../gobject/gsignal.c:2617: signal 'changed::' is invalid for instance '0x55ca0184edc0' of type 'GSettings'
(process:6452): GLib-GObject-WARNING **: 11:41:52.507: ../../../gobject/gsignal.c:2617: signal 'changed::' is invalid for instance '0x55ca0184e700' of type 'GSettings'
(process:6452): GLib-GObject-WARNING **: 11:41:52.519: ../../../gobject/gsignal.c:2617: signal 'changed::' is invalid for instance '0x55ca0184e5c0' of type 'GSettings'
Traceback (most recent call last):
File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
main()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
MWI()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
self.load_preferences()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 231, in load_preferences
city = geocodeapi.get_inv_direction(
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 144, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_opt_extras.ubuntu.com_my-weather-indicator_bin_my-weather-indicator.999.crash'
Original exception was:
Traceback (most recent call last):
File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
main()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
MWI()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
self.load_preferences()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 231, in load_preferences
city = geocodeapi.get_inv_direction(
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)
Kod:
mint@mint:~/.config/my-weather-indicator$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7fa38d81cd60>
#####################################################
System: Linux
Machine: x86_64
Node: mint
Release: 5.4.0-26-generic
Version: #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020
Platform: Linux-5.4.0-26-generic-x86_64-with-glibc2.29
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
****** Requesting timezone identificacion
Error requesting timezone identification:
Error requesting timezone identification:
** OWM **
6295630 0 0
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?id=6295630&appid=4516154e5c8a6494e7e13b550408c863
-------------------------------------------------------
****** Updated weather
None
--- End of updating data in location 0 ---
*** Looking For Internet ***
OK. Internet connection. HTTPConnection: www.google.com
*** Internet Found ***
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?id=6295630&appid=4516154e5c8a6494e7e13b550408c863
-------------------------------------------------------
****** Updated weather
{'update_time': 1605613442.2662184, 'ok': True, 'current_conditions': {'rawOffset': 0.0, 'condition_text': 'Overcast', 'condition_image': 'mwig-cloudy.png', 'condition_icon_dark': 'mwid-cloudy.png', 'condition_icon_light': 'mwil-cloudy.png', 'temperature': '27', 'pressure': None, 'humidity': '81 %', 'dew_point': '23', 'wind_condition': '12 km/h (SSE)', 'wind_icon': 'mwi-wind14.png', 'heat_index': 4.162502772746976, 'windchill': 0.0, 'feels_like': '29', 'visibility': None, 'cloudiness': '88 %', 'solarradiation': None, 'UV': None, 'precip_1hr': None, 'precip_today': None, 'sunrise_time': '05:41', 'sunset_time': '17:48', 'isday': True, 'sunrise': '05:41', 'sunset': '17:48', 'sunrise_time_utc': '05:41', 'sunset_time_utc': '17:48', 'dawn_time': '05:19', 'dusk_time': '18:10', 'dawn': '05:19', 'dusk': '18:10', 'moon_icon': 'mwi-moon02.png', 'moon_phase': 'Waxing Crescent', 'condition': 'overcast'}, 'forecasts': [{'day_of_week': 'Tuesday', 'low': '26', 'high': '27', 'cloudiness': '94 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '12 km/h (SSE)', 'wind_icon': 'mwi-wind14.png', 'avehumidity': '81 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:41', 'sunset': '17:48', 'moon_icon': 'mwi-moon02.png', 'moon_phase': 'Waxing Crescent'}, {'day_of_week': 'Wednesday', 'low': '26', 'high': '26', 'cloudiness': '91 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '11 km/h (S)', 'wind_icon': 'mwi-wind16.png', 'avehumidity': '81 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:41', 'sunset': '17:49', 'moon_icon': 'mwi-moon03.png', 'moon_phase': 'Waxing Crescent'}, {'day_of_week': 'Thursday', 'low': '26', 'high': '26', 'cloudiness': '74 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '9 km/h (S)', 'wind_icon': 'mwi-wind16.png', 'avehumidity': '82 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:41', 'sunset': '17:49', 'moon_icon': 'mwi-moon04.png', 'moon_phase': 'Waxing Crescent'}, {'day_of_week': 'Friday', 'low': '26', 'high': '26', 'cloudiness': '15 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '11 km/h (SSE)', 'wind_icon': 'mwi-wind14.png', 'avehumidity': '80 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:42', 'sunset': '17:49', 'moon_icon': 'mwi-moon05.png', 'moon_phase': 'Waxing Crescent'}, {'day_of_week': 'Saturday', 'low': '26', 'high': '26', 'cloudiness': '45 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '11 km/h (SBE)', 'wind_icon': 'mwi-wind15.png', 'avehumidity': '79 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:42', 'sunset': '17:49', 'moon_icon': 'mwi-moon06.png', 'moon_phase': 'First Quarter'}, {'day_of_week': 'Sunday', 'low': '26', 'high': '26', 'cloudiness': '77 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '8 km/h (SBE)', 'wind_icon': 'mwi-wind15.png', 'avehumidity': '77 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:42', 'sunset': '17:49', 'moon_icon': 'mwi-moon07.png', 'moon_phase': 'First Quarter'}, {'day_of_week': 'Monday', 'low': '26', 'high': '26', 'cloudiness': '75 %', 'qpf_allday': None, 'qpf_day': None, 'qpf_night': None, 'snow_allday': None, 'snow_day': None, 'snow_night': None, 'maxwind': None, 'avewind': '10 km/h (SBE)', 'wind_icon': 'mwi-wind15.png', 'avehumidity': '80 %', 'maxhumidity': None, 'minhumidity': None, 'condition': 'light rain', 'condition_text': 'Rain', 'condition_image': 'mwig-rain.png', 'condition_icon': 'mwil-rain.png', 'sunrise': '05:42', 'sunset': '17:50', 'moon_icon': 'mwi-moon08.png', 'moon_phase': 'First Quarter'}], 'forecast_information': {'city': '...', 'postal_code': '', 'latitude_e6': '', 'longitude_e6': '', 'forecast_date': '', 'current_date_time': '', 'unit_system': 'SI'}}
--- End of updating data in location 0 ---
mint@mint:~/.config/my-weather-indicator$
Plik configuracyjny z jakim mi to dziala:
Kod:
cat ~/.config/my-weather-indicator/my-weather-indicator.conf
{
"24h": true,
"autolocation": false,
"first-time": true,
"http-port": 0,
"http-proxy": "",
"https-port": 0,
"https-proxy": "",
"icon-light": true,
"latitude": 0,
"latitude2": 0,
"location": "",
"location2": "",
"longitude": 0,
"longitude2": 0,
"main-location": true,
"onalldesktop1": true,
"onalldesktop2": true,
"onwidget1hide": false,
"onwidget1top": false,
"onwidget2hide": false,
"onwidget2top": false,
"pressure": "mbar",
"rain": "mm",
"refresh": 1,
"second-location": false,
"show-notifications": true,
"show-notifications2": true,
"show-temperature": true,
"show-temperature2": true,
"showintaskbar1": false,
"showintaskbar2": false,
"skin1": "/usr/share/my-weather-indicator/skins/little",
"skin2": "/usr/share/my-weather-indicator/skins/little",
"snow": "cm",
"temperature": "C",
"version": "",
"visibility": "km",
"weather-service": "openweathermap",
"widget1": false,
"widget2": false,
"wind": "km/h",
"wp1-x": 0,
"wp1-y": 0,
"wp2-x": 0,
"wp2-y": 0,
"wu-key": "",
"wwo-key": ""
Być może wystarczy ustawić "autolocation": false,
Zasady forum | Poradniki i najczęstsze pytania | 90% odpowiedzi na wszystkie pytania
A imię jego czterdzieści i cztery.
A imię jego czterdzieści i cztery.