Giter VIP home page Giter VIP logo

fallback-wolfram-alpha's Introduction

Wolfram Alpha

Use Wolfram Alpha for general knowledge questions

About

Ask general-knowledge queries of your Mycroft device. If no other Skills can handle the Intent, Wolfram Alpha will be queried to see if it can find an answer. You'll be surprised by how much it knows!

For deeper exploration, you can also request the sources behind the answer. An email will be sent to your registered account linking you to all the details within Wolfram Alpha's website.

Examples

  • "How tall is Mount Everest?"
  • "When was The Rocky Horror Picture Show released?"
  • "What is Madonna's real name?"
  • "What's 18 times 4?"
  • "How many inches in a meter?"
  • "Send me the source on that"

Credits

Mycroft AI (@MycroftAI)

Category

Information

Tags

#wolfram-alpha #fallback #query #general-knowledge #information

fallback-wolfram-alpha's People

Contributors

aatchison avatar antlarr avatar augustnmonteiro avatar devs-mycroft avatar domcross avatar forslund avatar gras64 avatar kathyreid avatar krisgesling avatar learnedvector avatar luke5sky avatar matthewscholefield avatar penrods avatar tony763 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fallback-wolfram-alpha's Issues

Invalid AppId?

As I noticed the Wolfram Alpha skill was blacklisted, and a "fallback"-version was available, I installed it.
Asking "what is 2 times 2" gets me this error, and no "4":

- DEBUG - {"type": "recognizer_loop:utterance", "data": {"lang": "en-us", "utterances": ["what is 2 times 2"]}, "context": null}
mycroft.skills.intent_service - ERROR -
Traceback (most recent call last):
File "/home/bokkie/programming/Github/MyCroft/mycroft-core/mycroft/skills/intent_service.py", line 239, in handle_utterance
context_manager=self.context_manager))
StopIteration
- DEBUG - {"type": "intent_failure", "data": {"lang": "en-us", "utterance": "what is 2 times 2"}, "context": null}
mycroft.skills.padatious_service - DEBUG - Padatious fallback attempt: what is 2 times 2
mycroft.skills.core - INFO - Exception in fallback: max() arg is an empty sequence
fallback-wolfram-alpha__init__ - DEBUG - WolframAlpha fallback attempt: what is 2 times 2
fallback-wolfram-alpha__init__ - DEBUG - Falling back to WolframAlpha: what is 2 times 2
Display Manager (mycroft.client.enclosure) - DEBUG - Setting active skill to WolframAlphaSkill
- DEBUG - {"type": "enclosure.mouth.think", "data": {}, "context": null}
requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/wa?input=what+is+2+times+2 HTTP/1.1" 200 417
fallback-wolfram-alpha__init__ - ERROR - Error 1: Invalid appid
Traceback (most recent call last):
File "/opt/mycroft/skills/fallback-wolfram-alpha/__init__.py", line 156, in handle_fallback
res = self.client.query(query)
File "/opt/mycroft/skills/fallback-wolfram-alpha/__init__.py", line 82, in query
return wolframalpha.Result(StringIO(data.content))
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 178, in __init__
super(Result, self).__init__(doc)
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 62, in __init__
self._handle_error()
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 69, in _handle_error
raise Exception(template.format(**self))
Exception: Error 1: Invalid appid
mycroft.skills.core - WARNING - No fallback could handle intent.

Check for pairing rather than responding to 401 error

As noted in:
#42

We currently catch a 401 error returned by the server error. Should really be checking if the device is paired before attempting to make a call. Or disable intents unless the device is paired.

If a user is using their own API key this would not be required. Need to handle both scenarios.

issue with MSM update?

When I run msm update, I get the following error for this skill:

"ERROR - Error running update_skill on fallback-wolfram-alpha: GitException(Git command failed: GitCommandError(['git', 'fetch'], 255, b'error: cannot open .git/FETCH_HEAD: Permission denied\n', b''))"

Anything I am doing wrong?

Asking general question does not return an answer.

e.g. How tall is mount everest

returns

~~~~| INFO     |   607 | Skill Recommendations Fallback | fallback-wolfram-alpha
~~~~croft_skills_manager | Best match (1.0): fallback-wolfram-alpha by mycroftai
  ^--- NEWEST ---^ 

but then replies with 'I'm not sure I understand'.

I am running 
***********************************************************************
** Picroft enclosure platform version: Buster Keaton - Pork Pi
**                       mycroft-core: 20.2.4 ( master )
***********************************************************************

I'm a little new to this, what additonal information can i provide?

improve regex - upper-case fails

question parser needs some work

02:57:44.023 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: When will the world end?
02:57:44.024 - WolframAlphaSkill - DEBUG - Non-question, ignoring: When will the world end?

02:52:10.739 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: What is the speed of light?
02:52:10.739 - WolframAlphaSkill - DEBUG - Non-question, ignoring: What is the speed of light?

this is when i type in the cli, if i do it lower case it works

02:57:56.123 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: when will the world end 02:57:56.123 - WolframAlphaSkill - DEBUG - Querying WolframAlpha: when will the world end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.