diff --git a/Alexa-Skill/index b/Alexa-Skill/index index 504ad46..2ad7605 100644 --- a/Alexa-Skill/index +++ b/Alexa-Skill/index @@ -64,6 +64,10 @@ DTVControl.prototype.intentHandlers = { path = '/pink.php'; break; + case "purple": + path = '/purple.php'; + break; + case "off": path = '/off.php'; break; diff --git a/Alexa-Skill/index.zip b/Alexa-Skill/index.zip index 777b12a..19234bc 100644 Binary files a/Alexa-Skill/index.zip and b/Alexa-Skill/index.zip differ diff --git a/index.php b/index.php index 53bd695..67e9cf0 100644 --- a/index.php +++ b/index.php @@ -91,7 +91,9 @@ $file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH); $rgb = "Yellow"; } elseif ($file == "255, 102, 255") { $rgb = "Pink"; - } + } elseif ($file == "75, 0, 130") { + $rgb = "Purple"; + } // Rendering Page. ?> @@ -213,7 +215,7 @@ $file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);