0.0.1 • Published 7 years ago

skill-siemens-mo v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
7 years ago

Alexa Skill for Siemens Mobility Division

Author: Hanno Walischewski

Intro

This is an Alexa Skill for Siemens MO. It should inform about running projects at first. Later, special functionality for concrete projects shall be included also.

The implementation of Alexa's functionality is done as AWS Lambda function.

Hosting

This Alexa Skill is currently deployed in my private AWS account so tha tI can test it with my own Amazon Echo device.

Getting Started

Get the code:

$ git clone https://gitlab.mo-siemens.com/walihann/skill-siemens-mo.git

speechAssets is what is needed for the Alexa Skill. Please note that this cannot be updated via Gitlab CI as there is currently no API available in AWS.

src holds the AWS Lambda function that is called from Alexa Skill.

spec holds unit tests.

The bin directory holds some useful shell scripts:

  • build.sh builds the project
  • clean.sh deletes all created artifacts
  • test.sh runs unit tests
  • local-test.sh starts a local server that allows playing with the browser
  • publish.sh updates the lambda package in AWS

Gitlab CI

CI pipeline currently has the following stages:

  • build
  • test
  • package
  • publish

In order to be able to deploy to AWS Lambda, the private and secret keys are configued as protected variables in Gitlab's pipeline settings.u

Trying out the Skill

The wake work starts the Echo and this is usually Alexa.

The second phrase starts our skill. This will be done by saying something with Smart Mobility.

The third part then is the question you have to our skill. Following is a list of phrases that are tested so far. Note: currently, I just started with German as only language. An issue for adding English is already created.

  • Alexa, starte Smart Mobility. * Willkommen bei Siemens Mobility.
  • Alexa, frage Smart Mobility nach laufenden Projekten. * Ich kenne folgende Projekte: APM, OTS und RIM.
  • Alexa, frage Smart Mobility nach Sensoren. * Aktuell gibt es # Sensoren.

Ideas for future conversations

For brevity I will leave out the starting phrase, "Alexa, ".

  • frage Smart Mobility, in welchen Regionen Parkplätze überwacht werden.
  • frage Smart Mobility, wie viele Parkplätze in Region existieren.
  • frage Smart Mobility, wie viele Parkplätze in Region frei sind.

Region should be something like "Budapest", "Garching", or "Berlin".

0.0.1

7 years ago