Severe Weather Information skill


#1

Severe Weather Information

Checks your national weather service and notifies you when there are alerts for your region

The severe weather information skill can connect to dozens of weather alerting services, among them many from following lists:
severe weather information center
alerting world weather
meteoalarm

After installation go to home.mycroft.ai and select your preferred weather service from the list on the skills configuration page.
You can also set a “watchdog” that automatically checks for new alerts and notifies you…

How to install Severe Weather Information skill

  • Install Severe Weather Information skill by …

    • msm install https://github.com/domcross/severe-weather-information-skill
    • There are some dependencies in requirements.txt which should be automatically installed by msm
  • Severe Weather Information skill connects to public weather information services …

    • A number of services is included and can be selected in the skill configuration (home.mycroft.ai)
    • You can use custom services as long as they provide a ATOMpub or RSS feed with entries in CAP-xml format.

How to test Severe Weather Information skill

  • Configure the Skill Settings in home.mycroft.ai
  • Speak Are there weather alerts
  • Mycroft should reply with “There are the following alerts …” (continuing with alert information) or with “Currently there are no alerts for your region”

Where feedback on Severe Weather Information skill should be directed at

  • as comment here in this topic
  • Issues on GitHub
  • Mycroft Chat.

[Essentials] Severe Weather and Natural Disaster Warning
#2

On a Mark I, core release 19.08.2B:
Installation failed via copy-and-pasted installation line: “msm install https://github.com/domcross/severe-weather-information-skill

Tail end excerpt of the stdout where the errors began:

Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Error: Timeout was reached
Reading package lists… Done
Reading package lists…
Building dependency tree…
Reading state information…
The following extra packages will be installed:
libgeos-3.4.2 libgeos-c1
Suggested packages:
libgdal-doc
The following NEW packages will be installed:
libgeos-3.4.2 libgeos-c1 libgeos-dev
0 upgraded, 3 newly installed, 0 to remove and 65 not upgraded.
Need to get 815 kB of archives.
After this operation, 2,099 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgeos-3.4.2 armhf 3.4.2-6 [469 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgeos-c1 armhf 3.4.2-6 [164 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgeos-dev armhf 3.4.2-6 [182 kB]
Fetched 815 kB in 1s (615 kB/s)
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault)
dpkg: error processing archive /var/cache/apt/archives/libgeos-3.4.2_3.4.2-6_armhf.deb (–unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault)
dpkg: error processing archive /var/cache/apt/archives/libgeos-c1_3.4.2-6_armhf.deb (–unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault)
dpkg: error processing archive /var/cache/apt/archives/libgeos-dev_3.4.2-6_armhf.deb (–unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libgeos-3.4.2_3.4.2-6_armhf.deb
/var/cache/apt/archives/libgeos-c1_3.4.2-6_armhf.deb
/var/cache/apt/archives/libgeos-dev_3.4.2-6_armhf.deb
Error: Timeout was reached
E: Sub-process /usr/bin/dpkg returned an error code (1)
INFO - Successfully ran requirements.sh for severe-weather-information-skill
INFO - Installing system requirements…
INFO - Installing requirements.txt for severe-weather-information-skill
INFO - Problem performing action. Restoring skill to previous state…
ERROR - Failed to install skill severe-weather-information-skill
Traceback (most recent call last):
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/msm/mycroft_skills_manager.py”, line 372, in install
skill.install(constraints)
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/msm/skill_entry.py”, line 82, in wrapper
func(self, *args, **kwargs)
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/msm/skill_entry.py”, line 473, in install
self.run_pip(constraints)
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/msm/skill_entry.py”, line 313, in run_pip
pip_code, proc.stdout.read().decode(), stderr
msm.exceptions.PipRequirementsException:
Pip returned code 1:
Requirement already satisfied: feedparser in /opt/venvs/mycroft-core/lib/python3.4/site-packages (5.2.1)
Requirement already satisfied: xmltodict in /opt/venvs/mycroft-core/lib/python3.4/site-packages (0.11.0)
Requirement already satisfied: requests in /opt/venvs/mycroft-core/lib/python3.4/site-packages (2.20.0)
Collecting Shapely
Downloading https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz (225kB)
Complete output from command python setup.py egg_info:
Failed CDLL(libgeos_c.so.1)
Failed CDLL(libgeos_c.so)
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-tq7z_0xt/Shapely/setup.py”, line 80, in
from shapely._buildcfg import geos_version_string, geos_version,
File “/tmp/pip-install-tq7z_0xt/Shapely/shapely/_buildcfg.py”, line 167, in
fallbacks=[‘libgeos_c.so.1’, ‘libgeos_c.so’])
File “/tmp/pip-install-tq7z_0xt/Shapely/shapely/_buildcfg.py”, line 161, in load_dll
libname, fallbacks or []))
OSError: Could not find library geos_c or load any of its variants [‘libgeos_c.so.1’, ‘libgeos_c.so’]

----------------------------------------

/opt/venvs/mycroft-core/lib/python3.4/site-packages/cryptography/hazmat/bindings/openssl/binding.py:163: CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no longer supported by the OpenSSL project, please upgrade. A future version of cryptography will drop support for it.
utils.CryptographyDeprecationWarning
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won’t be maintained after March 2019 (cf PEP 429).
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-tq7z_0xt/Shapely/
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.


#3

Thanks for trying my skill and reporting this.
In the stdout you have provided I see some reoccuring error messages:

  1. Error: Timeout was reached
  2. dpkg-deb: error: subprocess tar was killed by signal (Segmentation fault)

Maybe there was a network error while you tried to install?
Did you try to install some other apt-packages before and that failed somehow and now your apt-database is somehow broken?
How old is the SD-card in your Mark-1 - maybe that card is too old (assuming a 24/7 usage of the Mark-1 one year is old) and is simply dying - which results in erratic behaviour when trying to write data to the card…?

The error messages at the end are kind of exspected errors as the libgeos-packages were not succesfully installed before but are required by the pip-install of the Shapely pypi-package.


#4

I tried again, this time logging in with pi (and not su-ing to mycroft this time) and running the command with the “mycroft-” prefix. I got esstenially the same errors.

It is possible that some other apt stuff has mucked things up, perhaps through the requirements.sh of another skill, but I don’t recall doing anything like that on purpose.

Do you think a “factory reset” as described in https://mycroft.ai/wp-content/uploads/2017/06/Mark_1_User_Guide.pdf would suffice to cleanup/repair the apt stuff (if it is indeed a problem)? I don’t know if that does any kind of OS image work, or just purges skills and configuration files.


#5

Hi @jrwarwick
sorry, I somehow missed your reply… as far as I know the RESET function from the Mark-I menu does only wipe your settings. After that you will have to go through the wifi setup and register the device again at home.mycroft.ai

Honestly, I don’t think this will help with your problem as either your apt database is corrupted or your SD-card is dying. Is flashing the Mark-I image to a new SD card a feasible option for you?


#6

Yes, I think I can handle a fresh flashing on a fresh card. It will take me a little while to do this though. I’ll report back with results. Thanks, Dominik.