marksev1 / mycroft-sunskill Goto Github PK
View Code? Open in Web Editor NEWrelevant sun-times skill for Mycroft
relevant sun-times skill for Mycroft
Mycroft core is moving to Python 3, so all skills need to be made compatible as well.
Here is the error log:
22:08:02.729 - mycroft.client.speech.main:handle_utterance:61 - INFO - Utterance: ['when is sunrise']
22:08:02.767 - SKILLS - DEBUG - {"context": null, "type": "skill.converse.request", "data": {"utterances": ["when is sunrise"], "lang": "en-US", "skill_id": "Mycroft-SunSkill"}}
22:08:02.772 - mycroft.skills.main:handle_converse_request:476 - ERROR - Error in converse method for skill Mycroft-SunSkill
Traceback (most recent call last):
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/main.py", line 470, in handle_converse_request
result = instance.converse(utterances, lang)
AttributeError: 'NoneType' object has no attribute 'converse'
22:08:02.782 - SKILLS - DEBUG - {"context": null, "type": "skill.converse.response", "data": {"result": false, "skill_id": 0}}
22:08:02.759 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
22:08:02.877 - mycroft.skills.intent_service:send_metrics:241 - DEBUG - Sending metric if opt_in is enabled
~~~~se", "Mycroft_SunSkillSunRiseKeyword"], ["sunrise", "skill_weatherSunrise"]], "match": "sunrise"}], "match": "sunrise", "key": "sunrise", "confidence": 1.0, "end_token": 2}]}}
22:08:02.892 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
22:08:02.905 - mycroft.skills.core:wrapper:607 - ERROR - An error occurred while processing a request in Sun Skill
Traceback (most recent call last):
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py", line 598, in wrapper
handler(message)
File "/opt/mycroft/skills/Mycroft-SunSkill/__init__.py", line 37, in handle_sunrise_intent
sunrise = self.schedule['sunrise'].astimezone(self.localtz)
File "/opt/mycroft/skills/Mycroft-SunSkill/__init__.py", line 30, in schedule
sun = SolarTime()
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/solartime.py", line 56, in __init__
self.solar_depression = solar_depression # Set default depression in degrees
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/solartime.py", line 78, in solar_depression
if isinstance(depression, basestring):
NameError: name 'basestring' is not defined
22:08:02.907 - SKILLS - DEBUG - {"context": null, "type": "mycroft.skill.handler.start", "data": {"name": "SunSkill.handle_sunrise_intent"}}
22:08:02.931 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
~~~~2120040863", "client_name": "mycroft_listener"}, "type": "speak", "data": {"utterance": "An error occurred while processing a request in Sun Skill", "expect_response": false}}
22:08:02.953 - SKILLS - DEBUG - {"context": null, "type": "mycroft.skill.handler.complete", "data": {"name": "SunSkill.handle_sunrise_intent"}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.