Creating an Alexa Skill to work with your Synology

I found this excellent article on creating a basic Alexa skill. Follow this tutorial to get a basic skill and use the php code below instead of the shell script in the tutorial as the Synology does not like non-PHP scripts.

<?php
 header("Content-Type: application/json;charset=utf-8");
?>
{ "version": "1.0", "response": { "outputSpeech": { "type": "PlainText", "text": "Got it. Yes, your command was received."} }}

In the Amazon skill testing you can see the JSON data sent to the Synology. After the tutorial you will find that that you are only sending the date and no other command data. To send more data the Amazon skill will need to be further developed.

More to come on linking the broadlink and Alexa skill

About Warren Cross

A contract IT professional that has been in the technology industry a number of years at various blue chip companies. During his career he has been a successful application developer, analyst, project manager, IT manager and system administrator, and performed in both global and local roles. For contract opportunities feel free to contact Warren through this site.
This entry was posted in Code, Home Automation. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *