Find and rent cycles from the docomo cycle service using Alexa.
After creating an API for the docomo cycle service, I thought I'd try using it with via a voice interface, i.e. Alexa.
Unfortunately, Alexa's voice API didn't provide much benefit over renting via the web site.
The "Alexa, tell {skill_name} {something}" format is a bit clunky, and Alexa doesn't always recognize cycle port names, but for posterity's sake, here it is.
This is not officially associated with the docomo cycle service in any way. Use at your own discretion within the terms of use of the docomo cycle service.
- Download this code, then from the code directory:
$ pipenv install
- Activate the env and run a shell:
$ pipenv shell
- Start the server:
$ python3 server.py
- Run ngrok, observe the forwarding hostname:
$ ngrok http 5000
-
Create a skill
-
Configure skill using interaction_model.json
-
Set endpoint to hostname from step #4 above
- To check how many cycles there are at a cycle port:
alexa ask <skillname> if there are any cycles at <portname>
- To rent a cycle from a cycle port:
alexa tell <skillname> to rent a cycle from <portname>
To set up in your environment locally:
$ pipenv install
Bug reports and pull requests are welcome on GitHub at https://github.com/dan-ess/alexa-cycles
This code is available as open source under the terms of the MIT License.