Comments (5)
I'm having some trouble with building an intent. Does anyone have experience using regexes in the intent? @pcwii, is there a reason why I don't see any of the regexes in this project being used in intent handler decorators? Is there a reason why they're all one line?
from cpkodi-skill.
@david-morris, I don't usually use regex in my intents. And I don't use Padatious. All of my intents are built using keywords (vocab/en-us/*.voc). I am using the regex files to parse the remainder of the intents and determine what is being requested. Yes this could be done with regex in the intents but not something I got used to doing early on in mycroft.ai development and have been continuing to follow my old habits. Currently all the regex files are loaded with the self.translate_regex() function. This function is currently hardcoded with en-us and will need to be updated at some point to support multiple languages.
from cpkodi-skill.
To assist, I have been using this api for reference.
https://kodi.wiki/view/JSON-RPC_API/Examples
https://kodi.wiki/view/JSON-RPC_API/v10
All the existing JSON-RPC items can be found in .kodi_tools. I am sure this can be made more efficient but this was my attempt to disconnect this application from other dependencies that either became stale or did not have the functionality I required.
from cpkodi-skill.
Yeah, I asked in the mattermost channel for skill development and nobody saw what I was doing wrong, so I'll use the translate_regex function.
from cpkodi-skill.
Closed by merge.
from cpkodi-skill.
Related Issues (20)
- Add ability to play "next episode" from TV show library HOT 1
- More a question than issue :) HOT 2
- Installing on mk1 mycroft HOT 3
- Load fails on Ubuntu 20.10 HOT 1
- Fails to load freshly installed on x86_64 HOT 3
- Enchancement request on Youtube HOT 3
- Contribute italian HOT 1
- [Request] Add support for PVR HOT 6
- Enchancement: Put regex in adapt
- [Request] License? HOT 1
- Update Readme.md to reflect recent changes
- Menu Navigation HOT 2
- Crash while reading some PVR intent block in __init__.py HOT 17
- Support music play queue skip, previous HOT 2
- mute/reduce kodi volume while "hey mycroft"
- push skill to the market HOT 2
- play command not working anymore HOT 1
- Issue with libenchant in raspbian bullseye
- OVOS ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpkodi-skill.