diff --git a/Coba/Makefile b/Coba/Embedded/IntelEdison/Makefile similarity index 100% rename from Coba/Makefile rename to Coba/Embedded/IntelEdison/Makefile diff --git a/Coba/main.c b/Coba/Embedded/IntelEdison/main.c similarity index 100% rename from Coba/main.c rename to Coba/Embedded/IntelEdison/main.c diff --git a/Coba/setup/setup.sh b/Coba/Embedded/IntelEdison/setup.sh similarity index 100% rename from Coba/setup/setup.sh rename to Coba/Embedded/IntelEdison/setup.sh diff --git a/Hochob/Applications/AmikooMayaLands/Chip.sh b/Hochob/Applications/AmikooMayaLands/Chip.sh new file mode 100755 index 00000000..57b62808 --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Chip.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CHIP_PID=$$ +export CHIP_NAME="Chip" +export CHIP_PATH=$(readlink -f "$0") +export CHIP_DIRECTORY=$(dirname "$CHIP_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $CHIP_PID $CHIP_NAME + +LOCAL_LANGUAGE=`Language.sh` + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Photography express service, Smile." +else + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Servicio express de fotografía, Sonríe." +fi + +sleep 3 + +Amikoo.sh amikoo/headright && sleep 1 +Amikoo.sh amikoo/headleft && sleep 1 + +AmikooCommunication.sh "Amikoo" "Audio" "TakePictureEllie.mp3" +sleep .5 +AmikooSense.sh "Sight" "Picture" +AmikooCommunication.sh "Amikoo" "Audio" "Stop" diff --git a/Hochob/Applications/AmikooMayaLands/Coji.sh b/Hochob/Applications/AmikooMayaLands/Coji.sh new file mode 100755 index 00000000..83831842 --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Coji.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export COJI_PID=$$ +export COJI_PATH=$(readlink -f "$0") +export COJI_DIRECTORY=$(dirname "$COJI_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +AmikooVoice.sh english \ + "Hello World. I can speak English. One, Two, Three." + +sleep 5 + +AmikooVoice.sh spanish \ + "Hola Mundo. Puedo hablar Español. Uno, Dos, Tres." + +sleep 5 + +LOCAL_LANGUAGE=`Language.sh` +if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Hello World. I can speak English. One, Two, Three." +else + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Hola Mundo. Puedo hablar Español. Uno, Dos, Tres." +fi + +# End of File diff --git a/Hochob/Applications/AmikooMayaLands/Makeblock.sh b/Hochob/Applications/AmikooMayaLands/Makeblock.sh new file mode 100755 index 00000000..1ac0953f --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Makeblock.sh @@ -0,0 +1,100 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MAKEBLOCK_PID=$$ +export MAKEBLOCK_NAME="Makeblock" +export MAKEBLOCK_PATH=$(readlink -f "$0") +export MAKEBLOCK_DIRECTORY=$(dirname "$IXTAPA_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE="Amikoo" +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE="festival" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Puedes decirme que aportaron los Mayas a la tecnología? \ + Uno, Las pirámides. \ + Dos, El cero. \ + Tres, El calendario. \ + Cuatro, El chocolate. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Quiénes son los fundadores de Intel? \ + " +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Uno, Robert Noyce, Gordon Moore. \ + Dos, Steve Allen. \ + Tres, Elon Musk. \ + Cuatro, Larry Page and Sergey Brin. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Cuántos ingenieros erán cuando empezó Intel Guadalajara? \ + Uno, 60. \ + Dos, 33. \ + Tres, 1200. \ + Cuatro, 15. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + El microprocesador es el cerebro de la computadora? Sí o no? + " +SurveyYesNo.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE yes + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Las fábricas de Intel son 200 veces mas limpias que un quirófano? Sí o no? + " +SurveyYesNo.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE no + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Podemos encontrar el microprocesador en? \ + Uno, Accesorios para las personas. \ + Dos, En la tierra. \ + Tres, En el espacio. \ + Cuatro, En todos los anteriores. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 4 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + En el sistema binario, el cero significa? \ + Uno, Encendido. \ + Dos, Apagado. \ + Tres, Nada. \ + Cuatro, Todo. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + "Eso es todo. Muchas gracias por tu participacion." + +# End of File diff --git a/Hochob/Applications/AmikooMayaLands/Meccanoid.sh b/Hochob/Applications/AmikooMayaLands/Meccanoid.sh new file mode 100755 index 00000000..bcb5fb69 --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Meccanoid.sh @@ -0,0 +1,72 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MECCANOID_PID=$$ +export MECCANOID_NAME="Meccanoid" +export MECCANOID_PATH=$(readlink -f "$0") +export MECCANOID_DIRECTORY=$(dirname "$MECCANOID_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $MECCANOID_PID $MECCANOID_NAME + +LOCAL_LANGUAGE=`Language.sh` + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Let's dance" +else + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Vamos a bailar" +fi + +AmikooCommunication.sh "DiaDeMuertos" "Audio" "MichaelJacksonThrillerShort.mp3" + +sleep 10 + +Amikoo.sh amikoo/headright && sleep .6 +Amikoo.sh amikoo/headleft && sleep .6 +Amikoo.sh amikoo/moveforward && sleep .6 +Amikoo.sh amikoo/movewbackward && sleep .6 + +sleep 14 + +Amikoo.sh amikoo/headright && sleep .6 +Amikoo.sh amikoo/headleft && sleep .6 +Amikoo.sh amikoo/rightup && sleep .6 +Amikoo.sh amikoo/leftup && sleep .6 +Amikoo.sh amikoo/rightfold && sleep .6 +Amikoo.sh amikoo/leftfold && sleep .6 +Amikoo.sh amikoo/moveright && sleep .6 +Amikoo.sh amikoo/movestop && sleep .6 +Amikoo.sh amikoo/moveleft && sleep .6 +Amikoo.sh amikoo/movestop && sleep .6 +Amikoo.sh amikoo/moveleft && sleep .6 +Amikoo.sh amikoo/movestop && sleep .6 +Amikoo.sh amikoo/moveleft && sleep .6 +Amikoo.sh amikoo/movestop && sleep .6 +Amikoo.sh amikoo/leftfold && sleep .6 +Amikoo.sh amikoo/rightfold && sleep .6 +Amikoo.sh amikoo/leftup && sleep .6 +Amikoo.sh amikoo/rightup && sleep .6 +Amikoo.sh amikoo/headleft && sleep .6 +Amikoo.sh amikoo/headright && sleep .6 + +AmikooCommunication.sh "DiaDeMuertos" "Audio" "Stop" + +# End of File diff --git a/Hochob/Applications/AmikooMayaLands/Papirolas.sh b/Hochob/Applications/AmikooMayaLands/Papirolas.sh new file mode 100644 index 00000000..6f3e0f9d --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Papirolas.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MECCANOID_PID=$$ +export MECCANOID_NAME="Meccanoid" +export MECCANOID_PATH=$(readlink -f "$0") +export MECCANOID_DIRECTORY=$(dirname "$MECCANOID_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $MECCANOID_PID $MECCANOID_NAME + +#AmikooCommunication.sh "Amikoo" "Audio" "R2D2AgainSoundBibleCom.mp3" +Vlc.sh ~/HochobServerMedia/Tradition/Amikoo/Sound/R2D2AgainSoundBibleCom.mp3 & + +sleep 1 + +Amikoo.sh amikoo/moveforward && sleep 2 +Amikoo.sh amikoo/movestop && sleep .6 +Amikoo.sh amikoo/headleft && sleep .6 +Amikoo.sh amikoo/headright && sleep .6 + +sleep 25 + +Amikoo.sh amikoo/headleft && sleep .6 +Amikoo.sh amikoo/headright && sleep .6 + +# End of File + diff --git a/Hochob/Applications/AmikooMayaLands/Sphero.sh b/Hochob/Applications/AmikooMayaLands/Sphero.sh new file mode 100755 index 00000000..89cc6949 --- /dev/null +++ b/Hochob/Applications/AmikooMayaLands/Sphero.sh @@ -0,0 +1,88 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export SPHERO_PID=$$ +export SPHERO_NAME="Sphero" +export SPHERO_PATH=$(readlink -f "$0") +export SPHERO_DIRECTORY=$(dirname "$SPHERO_PATH") + +LOCAL_PHRASE[0]="¿Que pez, acuaman?" +LOCAL_PHRASE[1]="¿Que pasotes con esos zapatotes, brother?" +LOCAL_PHRASE[2]="¿Que Honduras con las verduras que andan bajas las temperaturas?" +LOCAL_PHRASE[3]="¿Qué Pachuca por Toluca?" +LOCAL_PHRASE[4]="¿Qué Pachuca por Acámbaro?" +LOCAL_PHRASE[5]="¿Qué rollo, Goyo?" +LOCAL_PHRASE[6]="¿Qué Honduras, mi Nicaragua?" +LOCAL_PHRASE[7]="¿Qué transita por tu avenida?" +LOCAL_PHRASE[8]="¿Que transita por tus venas?" +LOCAL_PHRASE[9]="¿Como estanques?" +LOCAL_PHRASE[10]="¿Qué trampa, cazador?" +LOCAL_PHRASE[11]="¿Te conozco, Orozco?" +LOCAL_PHRASE[12]="¿Que ondón, Ramón?" +LOCAL_PHRASE[13]="¿Cómo estanques, mi pescado?" +LOCAL_PHRASE[14]="¿Que tranza, Carranza?" +LOCAL_PHRASE[15]=" ¿Qué pez, marques?" +LOCAL_PHRASE[16]="¿Qué ondón, panzón?" +LOCAL_PHRASE[17]="¿Qué pasó mi rín cromado?" +LOCAL_PHRASE[18]="Vientos huracanados del norte y del sur con tendencias a la baja." +LOCAL_PHRASE[19]=" Según lo programado por los meteorólogos y Tucson Arizona como has Estados Unidos." +LOCAL_PHRASE[20]="Yo pensé que ya estabas morongas, pero nopales, estas bien vivorolas." +LOCAL_PHRASE[21]="Nadando de muertito. " +LOCAL_PHRASE[22]="¡Chido, Liro, Ramiro y el vampiro Clodomiro!" +LOCAL_PHRASE[23]="Me late un restorán!" +LOCAL_PHRASE[24]="¡Me late, cacahuate!" +LOCAL_PHRASE[25]="¡Chido one, Tehuacán!" +LOCAL_PHRASE[26]="¡Camara conchinchín!" +LOCAL_PHRASE[27]="¡Me gusta un montón ese pachangón!" +LOCAL_PHRASE[28]="¡Asústame pantera!" +LOCAL_PHRASE[29]="¡Espántame panteón!" +LOCAL_PHRASE[30]="¡Ay nanita, manita!" +LOCAL_PHRASE[31]=" ¡Abuelo, soy tu nieto!" +LOCAL_PHRASE[32]="¡A hueso!" +LOCAL_PHRASE[33]="¡Yes en inglés, Takanaka en Japonés!" +LOCAL_PHRASE[34]="¡A Wilson mi Nike!" +LOCAL_PHRASE[35]="¡Abuelita de Batman!" +LOCAL_PHRASE[36]="¡Cámara pibote y rín!" +LOCAL_PHRASE[37]="¡Ya rugiste pantera!" +LOCAL_PHRASE[38]="Como dijo el gran Tom Boy, ¡yo ya me voy!" +LOCAL_PHRASE[39]="¡Este osito de peluche, ya se va para su estuche!" +LOCAL_PHRASE[40]="Este muñeco cambia de aparador." +LOCAL_PHRASE[41]="Aquí se rompió una taza, cada quien para su casa." +LOCAL_PHRASE[42]="Ay nos vidrios." +LOCAL_PHRASE[43]="¡Al ratón vaquero!" +LOCAL_PHRASE[45]="Como dijo el resorte: ¡me restiro!" +LOCAL_PHRASE[46]="¡Ahí nos vemos cocodrilo! " +LOCAL_PHRASE[47]="¡Como dijo el gran queso al rato regreso! " +LOCAL_PHRASE[48]="¡Si tienen lavadora ahí lavemos! " +LOCAL_PHRASE[49]="¡Me multiplico por Serapio Rendon! " +LOCAL_PHRASE[50]="¡Ahí la vemos de Niu Yor!" + +# From https://www.taringa.net/posts/humor/10591773/Frases-Nacas-corrientes-o-populares.html + +# ============================================================================= +# Functions +# ============================================================================= + +choosePhrase() +{ + rand=$[ $RANDOM % 50 ] + LOCAL_PHRASE=${LOCAL_PHRASE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $SPHERO_PID $SPHERO_NAME + +choosePhrase +AmikooVoice.sh spanish "$LOCAL_PHRASE" + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Dance.sh b/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Dance.sh new file mode 100755 index 00000000..b09bd1e7 --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Dance.sh @@ -0,0 +1,80 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export DANCE_PID=$$ +export DANCE_NAME="Dance" +export DANCE_PATH=$(readlink -f "$0") +export DANCE_DIRECTORY=$(dirname "$DANCE_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $MECCANOID_PID $MECCANOID_NAME + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/headright && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/rightup && sleep .8 +Amikoo.sh amikoo/headright && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/leftup && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/rightfold && sleep .8 +Amikoo.sh amikoo/headright && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/leftfold && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +#Amikoo.sh amikoo/moveright && sleep .7 +#Amikoo.sh amikoo/movestop && sleep .7 +#Amikoo.sh amikoo/moveleft && sleep .8 +#Amikoo.sh amikoo/movestop && sleep .8 +#Amikoo.sh amikoo/moveleft && sleep .8 +#Amikoo.sh amikoo/movestop && sleep .8 +#Amikoo.sh amikoo/moveleft && sleep .7 +#Amikoo.sh amikoo/movestop && sleep .7 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/headright && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/leftunfold && sleep .8 +Amikoo.sh amikoo/headright && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/rightunfold && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/leftdown && sleep .8 +Amikoo.sh amikoo/headright && sleep .8 + +AmikooCommunication.sh "Intel" "Image" "Random" +Amikoo.sh amikoo/rightdown && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +Amikoo.sh amikoo/headright && sleep .8 +Amikoo.sh amikoo/headleft && sleep .8 + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Welcome.sh b/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Welcome.sh new file mode 100755 index 00000000..495661cf --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Welcome.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export WO_PID=$$ +export WO_NAME="Wo" +export WO_PATH=$(readlink -f "$0") +export WO_DIRECTORY=$(dirname "$WO_PATH") + +LOCAL_INSTITUTION_NAME="México" +LOCAL_EVENT_NAME_ENGLISH="Intel Experience Day 2017" +LOCAL_EVENT_NAME_SPANISH="Experiencia Intel 2017" + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +Tbd + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $WO_PID $WO_NAME + +HostExternal.sh robot spanish "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_SPANISH}" + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/PhotoBooth/DoNotForget.sh b/Hochob/Applications/CalendarMayaLands/PhotoBooth/DoNotForget.sh new file mode 100755 index 00000000..ddebfcf1 --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/PhotoBooth/DoNotForget.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export DONOTFORGET_PID=$$ +export DONOTFORGET_NAME="DoNotForget" +export DONOTFORGET_PATH=$(readlink -f "$0") +export DONOTFORGET_DIRECTORY=$(dirname "$DONOTFORGET_PATH") + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $DONOTFORGET_PID $DONOTFORGET_NAME + +chooseLanguage + +AmikooCommunication.sh "Navidad" "Image" "PhotoBoothFirst.jpg" +if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Do not forget our christmas photo booth at the classroom of the future, check your email for more information" +else + AmikooVoice.sh $LOCAL_LANGUAGE \ + "No olvides tu fotografía navideña en el aula del futuro, mas información en tu correo electrónico" +fi +sleep 3 +AmikooCommunication.sh "Navidad" "Image" "Stop" + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/Pop.sh b/Hochob/Applications/CalendarMayaLands/Pop.sh new file mode 100755 index 00000000..1101197c --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/Pop.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export POP_PID=$$ +export POP_NAME="Pop" +export POP_PATH=$(readlink -f "$0") +export POP_DIRECTORY=$(dirname "$POP_PATH") + +# Innovation Week 2017 +LOCAL_INSTITUTION_NAME=`Intel Guadalajara` +LOCAL_EVENT_NAME_ENGLISH="Innovation Week 2017" +LOCAL_EVENT_NAME_SPANISH="Semana de Innovación 2017" + +# PCIE Tech Week 2017 +LOCAL_INSTITUTION_NAME=`Intel Guadalajara` +LOCAL_EVENT_NAME_ENGLISH="PCI Express Tech Week" +LOCAL_EVENT_NAME_SPANISH="Semana de Tecnología PCI Express" +LOCAL_PHRASE="The PCI Center of Excellence invites you to attend \ + the PCIE Tech Week at Intel GDC Auditorium this November 7th, 8th and 9th. \ + Senior Principal Engineers, Principal Engineers and Technical Leaders \ + will be available to hear your ideas. Please come and share your knowledge so \ + we can provide customer support with excellende and efficiency." + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="english" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $POP_PID $POP_NAME + +chooseLanguage + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + HostInternal.sh robot $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_ENGLISH}" "${LOCAL_PHRASE}" +else + HostInternal.sh robot $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_SPANISH}" "${LOCAL_PHRASE}" +fi + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/Sip.sh b/Hochob/Applications/CalendarMayaLands/Sip.sh new file mode 100755 index 00000000..9a66e87f --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/Sip.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export SIP_PID=$$ +export SIP_NAME="Sip" +export SIP_PATH=$(readlink -f "$0") +export SIP_DIRECTORY=$(dirname "$SIP_PATH") + +# Innovation Week 2017 +LOCAL_INSTITUTION_NAME="Intel Guadalajara" +LOCAL_EVENT_NAME_ENGLISH="Innovation Week 2017" +LOCAL_EVENT_NAME_SPANISH="Semana de Innovación 2017" + +# PCIE Tech Week 2017 +LOCAL_INSTITUTION_NAME=`Intel Guadalajara` +LOCAL_EVENT_NAME_ENGLISH="PCI Express Tech Week" +LOCAL_EVENT_NAME_SPANISH="Semana de Tecnología PCI Express" +LOCAL_PHRASE="The PCI Center of Excellence invites you to attend \ + the PCIE Tech Week at Intel GDC Auditorium this November 7th, 8th and 9th. \ + Senior Principal Engineers, Principal Engineers and Technical Leaders \ + will be available to hear your ideas. Please come and share your knowledge so \ + we can provide customer support with excellende and efficiency." + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="english" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $WINDRIVER_PID $WINDRIVER_NAME + +chooseLanguage + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + HostInternal.sh server $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_ENGLISH}" +else + HostInternal.sh server $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_SPANISH}" +fi + +# End of File diff --git a/Hochob/Applications/CalendarMayaLands/Wo.sh b/Hochob/Applications/CalendarMayaLands/Wo.sh new file mode 100755 index 00000000..342eb3da --- /dev/null +++ b/Hochob/Applications/CalendarMayaLands/Wo.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export WO_PID=$$ +export WO_NAME="Wo" +export WO_PATH=$(readlink -f "$0") +export WO_DIRECTORY=$(dirname "$WO_PATH") + +LOCAL_INSTITUTION_NAME="México" +LOCAL_EVENT_NAME_ENGLISH="Intel Experience Day 2017" +LOCAL_EVENT_NAME_SPANISH="Experiencia Intel 2017" + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $WO_PID $WO_NAME + +HostExternal.sh robot spanish "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_SPANISH}" + +exit 0 + +chooseLanguage + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + HostExternal.sh robot $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_ENGLISH}" +else + HostExternal.sh robot $LOCAL_LANGUAGE "${LOCAL_INSTITUTION_NAME}" "${LOCAL_EVENT_NAME_SPANISH}" +fi + +# End of File diff --git a/Hochob/Applications/CampaignMayaLands/Drones/IntelAero.sh b/Hochob/Applications/CampaignMayaLands/Drones/IntelAero.sh new file mode 100755 index 00000000..ecb1232a --- /dev/null +++ b/Hochob/Applications/CampaignMayaLands/Drones/IntelAero.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export SOTZ_PID=$$ +export SOTZ_NAME="Sotz" +export SOTZ_PATH=$(readlink -f "$0") +export SOTZ_DIRECTORY=$(dirname "$SOTZ_PATH") + +LOCAL_INSTITUTION_NAME="México" + +LOCAL_EVENT_NAME_ENGLISH="Aerial Technology" +LOCAL_EVENT_NAME_SPANISH="Tecnología Aérea" + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} + +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $SOTZ_PID $SOTZ_NAME + +LOCAL_LANGUAGE="english" + +AmikooCommunication.sh "Drones" "Image" "IntelAeroReadyToFlyDrone.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "The Airbone Revolution in Drone Innovation, visit our Drone Stands" +sleep 5 + +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Experience the amazing innovation driving the next frontier of flight. \ + Our technology propels everything from commercial inspection, surveying and \ + mapping to world record setting light show spectacles" +sleep 15 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsDronecode.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "The Complete “End-to-End” Open Source UAV Platform. \ + A neutral place where industry and ecosystem developers \ + can work to build the world’s leading open UAV software platform." +sleep 15 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsStationKaan.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Drone Simulation using Software In The Loop \ + and Ground Control Station" +sleep 5 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsStationMuuyal.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Drone Simulation using Mavlink and DroneKit" +sleep 5 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsIntelAeroRTFSpecs.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Intel Aero Ready to Fly Drone is an Unmanned Aerial Vehicle development \ + platform: fully assembled, fully functional quadcopter" +sleep 10 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsStationIik.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Intel Aero Ready to Fly Drone controlled via Mavlink with Python Programming Language" +sleep 5 + +AmikooCommunication.sh "Drones" "Image" "DroneDemoStandsStationChakiik.jpg" +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Intel Aero Ready to Fly Drone via Remote Control" +sleep 5 + +AmikooVoice.sh $LOCAL_LANGUAGE \ + "Come and talk to us about your ideas." + +AmikooCommunication.sh "Drones" "Image" "Stop" +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Acapulco.sh b/Hochob/Applications/CentralMayaLowlands/Acapulco.sh new file mode 100755 index 00000000..ceb8da51 --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Acapulco.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export ACAPULCO_PID=$$ +export ACAPULCO_PATH=$(readlink -f "$0") +export ACAPULCO_DIRECTORY=$(dirname "$ACAPULCO_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + "Future Engineers from ${LOCAL_INSTITUTION}. Welcome to this first hall! We called it: The Beginning. \ + Here we will remember the Mayans, the history of Intel y this Intel Guadalajara Design Center. \ + Enjoy your tour." +else + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + "Futuros Ingenieros de ${LOCAL_INSTITUTION}. Bienvenidos a esta primer sala, le llamamos: El Inicio. \ + Aquí recordaras a los Mayas, la historia de Intel y de este Centro de Diseño de Intel en Guadalajara. \ + Que disfruten su recorrido." +fi + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/AcapulcoEnglish.mp3" +else + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/Acapulco.mp3" +fi + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Cancun.sh b/Hochob/Applications/CentralMayaLowlands/Cancun.sh new file mode 100755 index 00000000..79916767 --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Cancun.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CANCUN_PID=$$ +export CANCUN_PATH=$(readlink -f "$0") +export CANCUN_DIRECTORY=$(dirname "$CANCUN_PATH") + +LOCAL_LANGUAGE=`Language.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME="1.0" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/CancunEnglish.mp3" +else + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/Cancun.mp3" +fi + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Huatulco.sh b/Hochob/Applications/CentralMayaLowlands/Huatulco.sh new file mode 100755 index 00000000..072efe06 --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Huatulco.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export HUATULCO_PID=$$ +export HUATULCO_PATH=$(readlink -f "$0") +export HUATULCO_DIRECTORY=$(dirname "$HUATULCO_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/HuatulcoEnglish.mp3" +else + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/Huatulco.mp3" +fi + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + "${LOCAL_INSTITUTION}, you know more about the Mayans, Intel and Intel Guadalajara Design Center, \ + now let's get into the next hall where we will find information about our Microproccesors, \ + our Fabs and Laboratories. Let's go." +else + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + "${LOCAL_INSTITUTION}, ahora que saben más acerca de los Mayas, \ + de Intel y del Centro de Diseño de Intel en Guadalajara, podemos pasar a la siguiente sección \ + en la que encontraremos información acerca del Microprocesador, nuestras fábricas \ + y nuestros laboratorios. Vamos!" +fi + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Ixtapa.sh b/Hochob/Applications/CentralMayaLowlands/Ixtapa.sh new file mode 100755 index 00000000..50103435 --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Ixtapa.sh @@ -0,0 +1,100 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export IXTAPA_PID=$$ +export IXTAPA_NAME="Ixtapa" +export IXTAPA_PATH=$(readlink -f "$0") +export IXTAPA_DIRECTORY=$(dirname "$IXTAPA_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Puedes decirme que aportaron los Mayas a la tecnología? \ + Uno, Las pirámides. \ + Dos, El cero. \ + Tres, El calendario. \ + Cuatro, El chocolate. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Quiénes son los fundadores de Intel? \ + " +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Uno, Robert Noyce, Gordon Moore. \ + Dos, Steve Allen. \ + Tres, Elon Musk. \ + Cuatro, Larry Page and Sergey Brin. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Cuántos ingenieros erán cuando empezó Intel Guadalajara? \ + Uno, 60. \ + Dos, 33. \ + Tres, 1200. \ + Cuatro, 15. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + El microprocesador es el cerebro de la computadora? Sí o no? + " +SurveyYesNo.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE yes + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Las fábricas de Intel son 200 veces mas limpias que un quirófano? Sí o no? + " +SurveyYesNo.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE no + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Podemos encontrar el microprocesador en? \ + Uno, Accesorios para las personas. \ + Dos, En la tierra. \ + Tres, En el espacio. \ + Cuatro, En todos los anteriores. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 4 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + En el sistema binario, el cero significa? \ + Uno, Encendido. \ + Dos, Apagado. \ + Tres, Nada. \ + Cuatro, Todo. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + "Eso es todo. Muchas gracias por tu participacion." + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Mazatlan.sh b/Hochob/Applications/CentralMayaLowlands/Mazatlan.sh new file mode 100755 index 00000000..d6910bcb --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Mazatlan.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MAZATLAN_PID=$$ +export MAZATLAN_PATH=$(readlink -f "$0") +export MAZATLAN_DIRECTORY=$(dirname "$MAZATLAN_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/MazatlanEnglish.mp3" +else + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/Mazatlan.mp3" +fi + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/PuertoVallarta.sh b/Hochob/Applications/CentralMayaLowlands/PuertoVallarta.sh new file mode 100755 index 00000000..b75b3afe --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/PuertoVallarta.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export PUERTOVALLARTA_PID=$$ +export PUERTOVALLARTA_PATH=$(readlink -f "$0") +export PUERTOVALLARTA_DIRECTORY=$(dirname "$PUERTOVALLARTA_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/PuertoVallartaEnglish.mp3" +else + StreamAudio.sh "$LOCAL_DEVICE" "$LOCAL_VOLUME" "$AREA_CENTRAL_MAYA_LOWLANDS/PuertoVallarta.mp3" +fi + +# End of File diff --git a/Hochob/Applications/CentralMayaLowlands/Veracruz.sh b/Hochob/Applications/CentralMayaLowlands/Veracruz.sh new file mode 100755 index 00000000..baa8c0f4 --- /dev/null +++ b/Hochob/Applications/CentralMayaLowlands/Veracruz.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export VERACRUZ_PID=$$ +export VERACRUZ_PATH=$(readlink -f "$0") +export VERACRUZ_DIRECTORY=$(dirname "$VERACRUZ_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LOCAL_LANGUAGE=`Language.sh` +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + " \ + Hi There!. \ + " +else + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + " \ + Hola a todos!. \ + " +fi + +# kill -- -$(ps -o pgid=$VERACRUZ_PID | grep -o '[0-9]*') + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Aak.sh b/Hochob/Applications/MediaMayaLands/Aak.sh new file mode 100755 index 00000000..05cf32fe --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Aak.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AAK_PID=$$ +export AAK_NAME="Aak" +export AAK_PATH=$(readlink -f "$0") +export AAK_DIRECTORY=$(dirname "$AAK_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $AAK_PID $AAK_NAME + +Eog.sh "$TRADITION_INTEL/Image/*" & + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Aayin.sh b/Hochob/Applications/MediaMayaLands/Aayin.sh new file mode 100755 index 00000000..001abd7a --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Aayin.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AAYIN_PID=$$ +export AAYIN_NAME="Aayin" +export AAYIN_PATH=$(readlink -f "$0") +export AAYIN_DIRECTORY=$(dirname "$AAYIN_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $AAYIN_PID $AAYIN_NAME + +VlcVideo.sh "on" "$TRADITION_INTEL/Video/IntelSolutions.mp4" + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Am.sh b/Hochob/Applications/MediaMayaLands/Am.sh new file mode 100755 index 00000000..42b220ac --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Am.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AM_PID=$$ +export AM_NAME="Am" +export AM_PATH=$(readlink -f "$0") +export AM_DIRECTORY=$(dirname "$AM_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $AM_PID $AM_NAME + +Eog.sh "$TRADITION_VISITORS_CENTER/Image/*" & + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Chakmool.sh b/Hochob/Applications/MediaMayaLands/Chakmool.sh new file mode 100755 index 00000000..8b879c78 --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Chakmool.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CHAKMOOL_PID=$$ +export CHAKMOOL_NAME="Chakmool" +export CHAKMOOL_PATH=$(readlink -f "$0") +export CHAKMOOL_DIRECTORY=$(dirname "$CHAKMOOL_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $CHAKMOOL_PID $CHAKMOOL_NAME + +Eog.sh "$TRADITION_INTEL_GUADALAJARA/Image/*" & + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Chiich.sh b/Hochob/Applications/MediaMayaLands/Chiich.sh new file mode 100644 index 00000000..bf912d60 --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Chiich.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export PUEBLA_PID=$$ +export PUEBLA_NAME="Queretaro" +export PUEBLA_PATH=$(readlink -f "$0") +export PUEBLA_DIRECTORY=$(dirname "$PUEBLA_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $PUEBLA_PID $PUEBLA_NAME + +Eog.sh "/var/www/html/Drawing/dibujos/*.png" & + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Cho.sh b/Hochob/Applications/MediaMayaLands/Cho.sh new file mode 100755 index 00000000..4f4bece9 --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Cho.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export QUERETARO_PID=$$ +export QUERETARO_NAME="Queretaro" +export QUERETARO_PATH=$(readlink -f "$0") +export QUERETARO_DIRECTORY=$(dirname "$QUERETARO_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $QUERETARO_PID $QUERETARO_NAME + +Eog.sh "$MEMORIES_CAMERA/*" & + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Chuwen.sh b/Hochob/Applications/MediaMayaLands/Chuwen.sh new file mode 100755 index 00000000..59ae9c57 --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Chuwen.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export QUINTANAROO_PID=$$ +export QUINTANAROO_NAME="QuintanaRoo" +export QUINTANAROO_PATH=$(readlink -f "$0") +export QUINTANAROO_DIRECTORY=$(dirname "$QUINTANAROO_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $QUINTANAROO_PID $QUINTANAROO_NAME + +VlcVideo.sh "on" "$MEMORIES_VIDEO/*" + +# End of File diff --git a/Hochob/Applications/MediaMayaLands/Kaab.sh b/Hochob/Applications/MediaMayaLands/Kaab.sh new file mode 100755 index 00000000..e6d5d083 --- /dev/null +++ b/Hochob/Applications/MediaMayaLands/Kaab.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Implementation under HomeAssistant default configuration file: configuration.yaml + +# command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0 &" +# command_off: "pkill -9 vlc" + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/Calakmul.sh b/Hochob/Applications/NorthernMayaLowlands/Calakmul.sh new file mode 100755 index 00000000..b6fcda5d --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/Calakmul.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CALAKMUL_PID=$$ +export CALAKMUL_NAME="Calakmul" +export CALAKMUL_PATH=$(readlink -f "$0") +export CALAKMUL_DIRECTORY=$(dirname "$CALAKMUL_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + "To be written" +else + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + "La ciencia es muy divertida, es la curiosidad sobre el mundo y cómo se comporta. \ + Es observarlo, escucharlo y registrar lo que se aprende. \ + Te gustaría entender porqué la Tierra gira alrededor del Sol? \ + Porqué las cosas caen hacia el suelo? \ + Que hace a los pájaros volar? \ + El científico es una persona que se dedica a entender el mundo y saber como se comporta. \ + Cualquiera puede pensar como un científico, y a ti, te gustaría ser científico? \ + " +fi + +#Los que aplican los descubrimientos de la ciencia para hacer cosas útiles se llaman Ingenieros. + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/ElCielo.sh b/Hochob/Applications/NorthernMayaLowlands/ElCielo.sh new file mode 100755 index 00000000..1f146188 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/ElCielo.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export ELCIELO_PID=$$ +export ELCIELO_PATH=$(readlink -f "$0") +export ELCIELO_DIRECTORY=$(dirname "$ELCIELO_PATH") + +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamAudio.sh $LOCAL_DEVICE $LOCAL_VOLUME "$AREA_NORTHERN_MAYA_LOWLANDS/ElCielo.mp3" + +#kill -- -$(ps -o pgid=$ELCIELO_PID | grep -o '[0-9]*') + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/IslasMarias.sh b/Hochob/Applications/NorthernMayaLowlands/IslasMarias.sh new file mode 100755 index 00000000..09cdae40 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/IslasMarias.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export ISLASMARIAS_PID=$$ +export ISLASMARIAS_NAME="IslasMarias" +export ISLASMARIAS_PATH=$(readlink -f "$0") +export ISLASMARIAS_DIRECTORY=$(dirname "$ISLASMARIAS_PATH") + +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +LOCAL_QUESTION_SPANISH[0]="¿Cual fue la aportación de los Mayas?" +LOCAL_QUESTION_SPANISH[1]="¿Cual es el sistema de numeración en el que los números se representan utilizando solamente dos cifras? cero y uno" +LOCAL_QUESTION_SPANISH[2]="¿Con cuantas personas empezó Intel en Guadalajara?" +LOCAL_QUESTION_SPANISH[3]="¿Qué es lo que hace Intel?" +LOCAL_QUESTION_SPANISH[4]="¿Qué otras cosas hace Intel?" +LOCAL_QUESTION_SPANISH[5]="¿Elemento para la elaboración de los microprocesadores?" +LOCAL_QUESTION_SPANISH[6]="¿Cuantas veces es más estéril un lab de Intel que un quirófano?" +LOCAL_QUESTION_SPANISH[7]="¿Como se le llama al atuendo, ropa o traje, que utilizan los ingenieros en los labs?" +LOCAL_QUESTION_SPANISH[8]="¿Porque creen que es importante la tecnología en estos tiempos?" +LOCAL_QUESTION_SPANISH[9]="¿Qué es la inteligencia artificial?" +LOCAL_QUESTION_SPANISH[10]="¿En qué áreas creen que la tecnología podría aportar algo y porque?" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseQuestion() +{ + LANGUAGE=$1 + rand=$[ $RANDOM % 6 ] + if [ "$LANGUAGE" = "english" ]; then + LOCAL_QUESTION=${LOCAL_QUESTION_ENGLISH[$rand]} + else + LOCAL_QUESTION=${LOCAL_QUESTION_SPANISH[$rand]} + fi +} + +# ============================================================================= +# Main +# ============================================================================= + +chooseQuestion $LOCAL_LANGUAGE + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE "${LOCAL_QUESTION}" + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/Janos.sh b/Hochob/Applications/NorthernMayaLowlands/Janos.sh new file mode 100755 index 00000000..a94416d6 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/Janos.sh @@ -0,0 +1,135 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export JANOS_PID=$$ +export JANOS_NAME="Janos" +export JANOS_PATH=$(readlink -f "$0") +export JANOS_DIRECTORY=$(dirname "$JANOS_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + En que fecha se celebra el dia Nacional del libro en Mexico? \ + Uno, 20 de Noviembre. \ + Dos, 12 de Noviembre. \ + Tres, 2 de Noviembre. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Personaje que conmemora el dia del libro? \ + " +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Uno, Pancho Villa. \ + Dos, Sor Juana Ines de la Cruz. \ + Tres, Josefa Ortiz de Dominguez. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 2 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Desde cuando se utiliza un sistema de correos en Mexico? \ + Uno, Despues de la llegada de los espanoles. \ + Dos, Despues de la Revolucion Mexicana. \ + Tres, Desde antes de la llegada de los Espanoles. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 3 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Quienes eran los encargados de llevar los mensajes en la epoca de los aztecas? \ + Uno, Painani \ + Dos, Teopixque \ + Tres, Teotecuhtli \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Para ti, que es la tolerancia?\ + Uno, El respeto, la aceptacion y el aprecio a la diversidad. \ + Dos, El respeto, la aceptacion y el aprecio a la diversidad. \ + Tres, El respeto, la aceptacion y el aprecio a la diversidad. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Para que nos sirve porner en practica la tolerancia?\ + Uno, Para convivir sanamente. \ + Dos, Para convivir sanamente. \ + Tres, Para convivir sanamente. \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Nombre del presidente que duro mas de 30 anios en el poder?\ + Uno, Porfirio Diaz \ + Dos, Francisco Villa \ + Tres, Venustiano Carranza \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Triunfo con las elecciones presidenciales de 1911?\ + Uno, Francisco I Madero \ + Dos, Francisco Villa \ + Tres, Venustiano Carranza \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Era conocido como el centauro del norte?\ + Uno, Francisco Villa \ + Dos, Francisco I Madero \ + Tres, Venustiano Carranza \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Era conocido como el baron de cuatro cienegas?\ + Uno, Venustiano Carranza \ + Dos, Francisco Villa \ + Tres, Porfirio Diaz \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 1 + + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Derecho que tuvimos gracias a la revolucion mexicana?\ + Uno, Francisco y Madero \ + Dos, Francisco Villa \ + Tres, El voto \ + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 3 + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/LaMichilia.sh b/Hochob/Applications/NorthernMayaLowlands/LaMichilia.sh new file mode 100755 index 00000000..e0dfc0e5 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/LaMichilia.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export LAMICHILIA_PID=$$ +export LAMICHILIA_PATH=$(readlink -f "$0") +export LAMICHILIA_DIRECTORY=$(dirname "$LAMICHILIA_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamAudio.sh "Eek'" "1.0" "$AREA_NORTHERN_MAYA_LOWLANDS/LaMichilia.mp3" + +LOCAL_LANGUAGE=`Language.sh` +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + " +else + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Intel no solo se queda en la tierra, es tal el alcance del Microprocesador que puede \ + estar en el universo, por ejemplo, ha trabajado con la NASA para crear cohetes y vehiculos \ + no tripulados. Veamos el siguiente video. \ + " +fi + +#kill -- -$(ps -o pgid=$LAMICHILIA_PID | grep -o '[0-9]*') + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/Mapimi.sh b/Hochob/Applications/NorthernMayaLowlands/Mapimi.sh new file mode 100755 index 00000000..04031892 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/Mapimi.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MAPIMI_PID=$$ +export MAPIMI_NAME="Mapimi Application" +export MAPIMI_PATH=$(readlink -f "$0") +export MAPIMI_DIRECTORY=$(dirname "$MAPIMI_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + " \ + It was a great pleasure to meet you and have you here at Intel Guadalajara. \ + Come back soon future Engineers. \ + " +else + StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + " \ + Nos dio mucho gusto conocerlas, conocerlos y que hayan venido a Intel Guadalajara. \ + Fue un placer recibirlos en nuestras instalaciones y esperamos verlos de nuevo!. \ + " +fi + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/MontesAzules.sh b/Hochob/Applications/NorthernMayaLowlands/MontesAzules.sh new file mode 100755 index 00000000..2a080cb6 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/MontesAzules.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MONTESAZULES_PID=$$ +export MONTESAZULES_NAME="MontesAzules" +export MONTESAZULES_PATH=$(readlink -f "$0") +export MONTESAZULES_DIRECTORY=$(dirname "$MONTESAZULES_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Future Mathematicians. We have seen the importance of our Fabs and Labs. \ + Now, we will get into a section where we can play and understand closely the technology. + " +else + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Futuras y futuros Matemáticos. Ya vimos la importancia de nuestras Fábricas y Laboratorios. \ + Ahora entraremos a una sección que nos permite jugar y conocer de cerca la tecnología. \ + " +fi + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + echo "Tbd" +else + StreamAudio.sh "Eek'" "1.0" "$AREA_NORTHERN_MAYA_LOWLANDS/MontesAzules.mp3" +fi + +#kill -- -$(ps -o pgid=$MONTESAZULES_PID | grep -o '[0-9]*') + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/OjoDeLiebre.sh b/Hochob/Applications/NorthernMayaLowlands/OjoDeLiebre.sh new file mode 100755 index 00000000..54b71654 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/OjoDeLiebre.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export OJODELIEBRE_PID=$$ +export OJODELIEBRE_PATH=$(readlink -f "$0") +export OJODELIEBRE_DIRECTORY=$(dirname "$OJODELIEBRE_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamAudio.sh $LOCAL_DEVICE $LOCAL_VOLUME "$AREA_NORTHERN_MAYA_LOWLANDS/OjoDeLiebre.mp3" + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/SianKaan.sh b/Hochob/Applications/NorthernMayaLowlands/SianKaan.sh new file mode 100755 index 00000000..3cb030d3 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/SianKaan.sh @@ -0,0 +1,57 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export SIANKAAN_PID=$$ +export SIANKAAN_NAME="Mapimi Application" +export SIANKAAN_PATH=$(readlink -f "$0") +export SIANKAAN_DIRECTORY=$(dirname "$SIANKAAN_PATH") + + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_LANGUAGE=`Language.sh` + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + To be written, ${LOCAL_INSTITUTION} \ + " +else + StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Por escribirse, ${LOCAL_INSTITUTION} \ + " +fi + +StreamAudio.sh $LOCAL_DEVICE $LOCAL_VOLUME "$AREA_NORTHERN_MAYA_LOWLANDS/SianKaan.mp3" & + +Amikoo.sh amikoo/headright 1 +sleep .75 +Amikoo.sh amikoo/headleft 1 +sleep .75 + +#kill -- -$(ps -o pgid=$SIANKAAN_PID | grep -o '[0-9]*') + +# End of File diff --git a/Hochob/Applications/NorthernMayaLowlands/TiburonBallena.sh b/Hochob/Applications/NorthernMayaLowlands/TiburonBallena.sh new file mode 100755 index 00000000..e1b639e4 --- /dev/null +++ b/Hochob/Applications/NorthernMayaLowlands/TiburonBallena.sh @@ -0,0 +1,70 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export TIBURONBALLENA_PID=$$ +export TIBURONBALLENA_NAME="TiburonBallena" +export TIBURONBALLENA_PATH=$(readlink -f "$0") +export TIBURONBALLENA_DIRECTORY=$(dirname "$TIBURONBALLENA_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE +LOCAL_VOLUME=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE=$HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +StreamAudio.sh $LOCAL_DEVICE $LOCAL_VOLUME "$AREA_NORTHERN_MAYA_LOWLANDS/TiburonBallena/LiftoffSpaceXFalcon9CRS10Mission.mp4" + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Imagina esto, cielo rosa, atardeceres naranjas, mucho desierto y acantilados. \ + Pero donde puedes ver esto y mas? En el planeta marte! Veamos si puedes responder un par de preguntas. + " + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + A Marte se le conoce también como el planeta rojo? que opinas, sí o no? \ + " +SurveyYesNo.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE yes + +StreamText.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE \ + " \ + Cual fue la primer misión que tomó por primera vez fotos de Marte? \ + " + +StreamText.sh $LOCAL_DEVICE english $LOCAL_TTS_ENGINE \ + " \ + Uno, Curiosity. \ + Dos, Spirit. \ + Tres, Sojourner. \ + Cuatro, Mariner 4. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE $LOCAL_LANGUAGE $LOCAL_TTS_ENGINE 4 + +StreamText.sh $LOCAL_DEVICE english $LOCAL_TTS_ENGINE \ + " \ + Which spacecraft took the first photos of Mars? \ + One, Curiosity. \ + Two, Spirit. \ + Three, Sojourner. \ + Four, Mariner 4. + " +SurveyMultipleChoice.sh $LOCAL_DEVICE english $LOCAL_TTS_ENGINE 4 + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/Aguascalientes.sh b/Hochob/Applications/SouthernMayaHighlands/Aguascalientes.sh new file mode 100755 index 00000000..e88fbb0e --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/Aguascalientes.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AGUASCALIENTES_PID=$$ +export AGUASCALIENTES_NAME="Aguascalientes" +export AGUASCALIENTES_PATH=$(readlink -f "$0") +export AGUASCALIENTES_DIRECTORY=$(dirname "$AGUASCALIENTES_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $AGUASCALIENTES_PID $AGUASCALIENTES_NAME + +Memories.sh "5" "off" "${AGUASCALIENTES_NAME}" & + +Eog.sh "$TRADITION_INTEL/Image/*" & +Vlc.sh "$AREA_SOUTERN_MAYA_HIGHLANDS/Aguascalientes.mp3" & + +sleep 75 + +KillApp.sh "cvlc" +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaNorte.sh b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaNorte.sh new file mode 100755 index 00000000..e4fb94b4 --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaNorte.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export BAJACALIFORNIANORTE_PID=$$ +export BAJACALIFORNIANORTE_NAME="BajaCaliforniaNorte" +export BAJACALIFORNIANORTE_PATH=$(readlink -f "$0") +export BAJACALIFORNIANORTE_DIRECTORY=$(dirname "$BAJACALIFORNIANORTE_PATH") + +LOCAL_LANGUAGE="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $BAJACALIFORNIANORTE_PID $BAJACALIFORNIANORTE_NAME + +Memories.sh "5" "off" "${BAJACALIFORNIANORTE_NAME}" & + +Eog.sh "$TRADITION_VISITORS_CENTER/Image/*" & +sleep 2 +Vlc.sh "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaNorte.mp3" & +sleep 18.8 +AmikooVoice.sh $LOCAL_LANGUAGE "Nel Pastel" +sleep .6 +Amikoo.sh amikoo/headright 1 +sleep .6 +Amikoo.sh amikoo/headleft 1 +sleep .6 +Amikoo.sh amikoo/headright 1 +sleep .6 +Amikoo.sh amikoo/headleft 1 +sleep .6 +Amikoo.sh amikoo/headright 1 +sleep .6 +Amikoo.sh amikoo/resetall 1 +sleep 5 + +KillApp.sh "eog" +KillApp.sh "cvlc" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSur.sh b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSur.sh new file mode 100755 index 00000000..0137c518 --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSur.sh @@ -0,0 +1,78 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export BAJACALIFORNIASUR_PID=$$ +export BAJACALIFORNIASUR_NAME="BajaCaliforniaSur" +export BAJACALIFORNIASUR_PATH=$(readlink -f "$0") +export BAJACALIFORNIASUR_DIRECTORY=$(dirname "$BAJACALIFORNIASUR_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $BAJACALIFORNIASUR_PID $BAJACALIFORNIASUR_NAME + +Memories.sh "280" "on" "${BAJACALIFORNIASUR_NAME}" & + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur01.mp4" & +$(AmikooVoice.sh spanish "Hola a todos") && sleep 1.25 + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur02.mp4" & +sleep 6.35 && AmikooVoice.sh spanish "Perdon! Lo se!, Es que me emociono" && sleep 4 + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur03.mp4" & +sleep 2.7 && AmikooVoice.sh spanish "Por supuesto" && sleep 2.5 + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur04.mp4" & +sleep 37.5 && AmikooVoice.sh spanish "En mi caso mi cerebro, esta en mi espalda!" +sleep 2 +Amikoo.sh amikoo/rightup 1 +sleep .25 +Amikoo.sh amikoo/leftup 1 +sleep .25 +Amikoo.sh amikoo/rightfold 1 +sleep .25 +Amikoo.sh amikoo/leftfold 1 +sleep 2 + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur05.mp4" & +sleep 25.5 && AmikooVoice.sh spanish "Yo funciono con la platafoma Intel Edison y Uppboard" +sleep 3 +Amikoo.sh amikoo/rightdown 1 +sleep .25 +Amikoo.sh amikoo/leftdown 1 +sleep .25 +Amikoo.sh amikoo/rightunfold 1 +sleep .25 +Amikoo.sh amikoo/leftunfold 1 +sleep 2 + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur06.mp4" & +sleep 75 + +wait + +SpeechSynthetizer.sh off espeak spanish \ +"Muchas gracias futuras y futuros ingenieros!. +A nombre del equipo de Intel, deseamos que hayan tenido una gran visita." + +MemoriesAudio.sh "${BAJACALIFORNIASUR_NAME}" + +wait + +KillApp.sh "vlc" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSurLocal.sh b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSurLocal.sh new file mode 100755 index 00000000..c9de63a5 --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSurLocal.sh @@ -0,0 +1,64 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export BAJACALIFORNIASUR_PID=$$ +export BAJACALIFORNIASUR_NAME="BajaCaliforniaSur" +export BAJACALIFORNIASUR_PATH=$(readlink -f "$0") +export BAJACALIFORNIASUR_DIRECTORY=$(dirname "$BAJACALIFORNIASUR_PATH") + +LOCAL_LANGUAGE="spanish" +LOCAL_TTS_ENGINE="espeak" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $BAJACALIFORNIASUR_PID $BAJACALIFORNIASUR_NAME + +Memories.sh "280" "on" "${BAJACALIFORNIASUR_NAME}" & + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur01.mp4" & +SpeechSynthetizer.sh on espeak $LOCAL_LANGUAGE "Hola a todos" + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur02.mp4" & +sleep 6.45 && SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE "Perdon! Lo se!, Es que me emociono!" + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur03.mp4" & +sleep 2.8 && SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE "Por supuesto" + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur04.mp4" & +sleep 37.6 && SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE "En mi caso, mi cerebro esta aqui, en la caja azul!" + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur05.mp4" & +sleep 25.6 && SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE "Yo funciono con la plataforma Intel Edison" + +VlcVideo.sh off "$AREA_SOUTERN_MAYA_HIGHLANDS/BajaCaliforniaSur06.mp4" & + +LOCAL_INSTITUTION=`Name.sh` +SpeechSynthetizer.sh off $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Muchas gracias Futuros Ingenieros del ${LOCAL_INSTITUTION}. \ + A nombre del Equipo de Intel, deseamos que hayan tenido una gan visita." + +MemoriesAudio.sh "${BAJACALIFORNIASUR_NAME}" + +wait + +sleep 15 + +KillApp.sh "cvlc" +KillApp.sh "vlc" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/Campeche.sh b/Hochob/Applications/SouthernMayaHighlands/Campeche.sh new file mode 100755 index 00000000..976949be --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/Campeche.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CAMPECHE_PID=$$ +export CAMPECHE_NAME="Campeche" +export CAMPECHE_PATH=$(readlink -f "$0") +export CAMPECHE_DIRECTORY=$(dirname "$CAMPECHE_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $CAMPECHE_PID $CAMPECHE_NAME + +Eog.sh "$FSWEBCAM_IMAGE" & +sleep 1 +Vlc.sh "$AREA_SOUTERN_MAYA_HIGHLANDS/Campeche.mp3" & + +sleep 28 + +KillApp.sh "cvlc" +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/Michoacan.sh b/Hochob/Applications/SouthernMayaHighlands/Michoacan.sh new file mode 100755 index 00000000..f8e4cfab --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/Michoacan.sh @@ -0,0 +1,134 @@ + +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MICHOACAN_PID=$$ +export MICHOACAN_NAME="Michoacan" +export MICHOACAN_PATH=$(readlink -f "$0") +export MICHOACAN_DIRECTORY=$(dirname "$MICHOACAN_PATH") + +LOCAL_INSTITUTION=`Name.sh` +LOCAL_DEVICE="NohochTata" +LOCAL_VOLUME="1.0" +LOCAL_LANGUAGE=`Language.sh` +LOCAL_TTS_ENGINE="espeak" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $MICHOACAN_PID $MICHOACAN_NAME + +#AmikooVoice.sh spanish \ +# "Bienvenidos ${LOCAL_INSTITUTION} a mi casa, su casa. \ +# Es un gusto conocerlos. Ya saben mi nombre, soy Lupe y \ +# hace rato estaba un poco chiveado pero ya estoy listo para mostrarles \ +# lo interesante que es el mundo de las Ciencias, la Tecnología, \ +# las Ingenierías y las Matemáticas. A nombre de cada uno de los Ingenieros \ +# que aquí trabajamos les deseamos la mejor de las experiencias. \ +# Muchas gracias por haber venido." +StreamText.sh "$LOCAL_DEVICE" "$LOCAL_LANGUAGE" "$LOCAL_TTS_ENGINE" \ + "Bienvenidos ${LOCAL_INSTITUTION} a mi casa, su casa. \ + Es un gusto conocerlas y conocerlos. Ya saben mi nombre, soy Lupe, \ + tengo 2 años robot y estudio el primer año de primaria robot. \ + Mis pasatiempos favoritos son compartir tiempo con mi familia, jugar al aire libre, \ + leer cuentos divertidos, hacer ejercicio y aprender con mis familiares y amigos \ + todo el conocimiento científico y tecnológico que está presente en nuestra vida cotidiana. \ + También soy guia en este emocionante Centro de Visitantes. \ + Hace rato estaba un poco chiviado pero ya estoy listo para mostrarles \ + lo interesante que es el mundo de las Ciencias, la Tecnología, \ + las Ingenierías y las Matemáticas. A nombre de cada uno de los Ingenieros \ + que aquí trabajamos les deseamos la mejor de las experiencias. \ + Muchas gracias por haber venido. \ + " + +sleep 1 + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "Ahora tomaremos una foto para el recuerdo. \ +# Primero, me iré a mi lugar preferido, denme unos segundos." +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Ahora tomaremos una foto para el recuerdo. \ + Primero, me iré a mi lugar preferido, denme unos segundos. \ + " + +Amikoo.sh amikoo/headright 1 +sleep .6 +Amikoo.sh amikoo/headleft 1 +sleep .6 + +Amikoo.sh amikoo/moveright 1 +sleep 1.6 +Amikoo.sh amikoo/movestop 1 +sleep .6 +Amikoo.sh amikoo/moveforward 1 +sleep 4.5 +Amikoo.sh amikoo/movestop 1 +sleep .6 +Amikoo.sh amikoo/moveright 1 +sleep 3.6 +Amikoo.sh amikoo/movestop 1 +sleep .6 + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "Estoy listo! Ahora les toca a ustedes acomodarse. \ +# Con mucho cuidado ponganse a ambos lados de mi, \ +# viendo hacia la pantalla y sonrían." +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Estoy listo! Ahora les toca a ustedes acomodarse. \ + Con mucho cuidado ponganse a ambos lados de mi, \ + viendo hacia la pantalLOCAL_TTS_ENGINEla y sonrían. \ + " + +FfmpegCamera.sh 20 & + +sleep 15 + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "Están listos ${LOCAL_INSTITUTION}?" +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Están listas? listos? ${LOCAL_INSTITUTION}?" + +sleep 5 + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "Tomemos la foto, a la cuenta de 3." +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Tomemos la foto, a la cuenta de 3." + +sleep 1 + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "1, 2 y 3, Sonrian." +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "1, 2 y 3, Sonrían." + +Memories.sh "5" "on" "${MICHOACAN_NAME}" & +sleep 2 +ConvertText.sh "$FSWEBCAM_IMAGE" "Bienvenidos ${LOCAL_INSTITUTION}" +wait +Eog.sh "$FSWEBCAM_IMAGE" & + +#AmikooVoice.sh $LOCAL_LANGUAGE \ +# "Listo! Tenemos nuestra foto del recuerdo. A iniciar con el recorrido futuras y futuros ingenieros." +SpeechSynthetizer.sh on $LOCAL_TTS_ENGINE $LOCAL_LANGUAGE \ + "Orale! Tenemos nuestra foto del recuerdo. A iniciar con el recorrido futuras y futuros ingenieros." + +sleep 5 + +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/SouthernMayaHighlands/Zacatecas.sh b/Hochob/Applications/SouthernMayaHighlands/Zacatecas.sh new file mode 100755 index 00000000..4ad17acc --- /dev/null +++ b/Hochob/Applications/SouthernMayaHighlands/Zacatecas.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export ZACATECAS_PID=$$ +export ZACATECAS_NAME="Zacatecas" +export ZACATECAS_PATH=$(readlink -f "$0") +export ZACATECAS_DIRECTORY=$(dirname "$ZACATECAS_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $ZACATECAS_PID $ZACATECAS_NAME + +Memories.sh "5" "on" "${ZACATECAS_NAME}" & +sleep 2 +ConvertText.sh "$FSWEBCAM_IMAGE" "Bienvenidos" +wait +Eog.sh "$FSWEBCAM_IMAGE" & + +exit 0 + +Memories.sh "20" "on" "${ZACATECAS_NAME}" +SpeechSynthetizer.sh off espeak spanish \ + "Me da mucho gusto conocerlos y que hayan venido a Intel. \ + Saludos!" +MemoriesAudio.sh "${ZACATECAS_NAME}" + +sync + +# End of File diff --git a/Hochob/Applications/TechieMayaLands/Apple.sh b/Hochob/Applications/TechieMayaLands/Apple.sh new file mode 100755 index 00000000..60d61d8f --- /dev/null +++ b/Hochob/Applications/TechieMayaLands/Apple.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export APPLE_PID=$$ +export APPLE_NAME="Zacatecas" +export APPLE_PATH=$(readlink -f "$0") +export APPLE_DIRECTORY=$(dirname "$APPLE_PATH") + +LOCAL_INSTITUTION_NAME=`Name.sh` + +LOCAL_LANGUAGE[0]="english" +LOCAL_LANGUAGE[1]="spanish" + +# ============================================================================= +# Functions +# ============================================================================= + +chooseLanguage() +{ + rand=$[ $RANDOM % 2 ] + LOCAL_LANGUAGE=${LOCAL_LANGUAGE[$rand]} +} + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $APPLE_PID $APPLE_NAME + +chooseLanguage + +if [ "$LANGUAGE" = "english" ]; then + SpeechSynthetizer.sh on voicerss english \ + "Next Visit, ${LOCAL_INSTITUTION_NAME}" +else + SpeechSynthetizer.sh on voicerss spanish \ + "Proxima Visita, ${LOCAL_INSTITUTION_NAME}" +fi + +#StreamAudio.sh "Triki" "1.0" "$SPEECH_MP3" +#StreamAudio.sh "Tran" "1.0" "$SPEECH_MP3" +#StreamAudio.sh "Juum" "1.0" "$SPEECH_MP3" +#StreamAudio.sh "Eek'" "1.0" "$SPEECH_MP3" + +# End of File diff --git a/Hochob/Applications/TechieMayaLands/Toyota.sh b/Hochob/Applications/TechieMayaLands/Toyota.sh new file mode 100755 index 00000000..bad76c6f --- /dev/null +++ b/Hochob/Applications/TechieMayaLands/Toyota.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export TOYOTA_PID=$$ +export TOYOTA_NAME="Zacatecas" +export TOYOTA_PATH=$(readlink -f "$0") +export TOYOTA_DIRECTORY=$(dirname "$TOYOTA_PATH") + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $TOYOTA_PID $TOYOTA_NAME + +echo spanish > /tmp/hochob/language + +SpeechSynthetizer.sh on espeak spanish \ + "Hola Mundo! Uno, Dos, Tres, Probando!" + +StreamAudio.sh "Triki" "1.0" "$SPEECH_MP3" +echo $? + +Amikoo.sh amikoo/inicial 1 +Amikoo.sh amikoo/emocion 1 +Amikoo.sh amikoo/porsupuesto 1 +Amikoo.sh amikoo/cerebro 1 +Amikoo.sh amikoo/inteledison 1 + +StreamAudio.sh "Tran" "1.0" "$SPEECH_MP3" +echo $? +StreamAudio.sh "Juum" "1.0" "$SPEECH_MP3" +echo $? +StreamAudio.sh "Eek'" "1.0" "$SPEECH_MP3" +echo $? + +Memories.sh "5" "on" "${TOYOTA_NAME}" & +sleep 2 +ConvertText.sh "$FSWEBCAM_IMAGE" "System Health" +wait +Eog.sh "$FSWEBCAM_IMAGE" & +sleep 2 + +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Calaverita.sh b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Calaverita.sh new file mode 100755 index 00000000..556abe61 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Calaverita.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CALAVERITAS_PID=$$ +export CALAVERITAS_NAME="Calaveritas" +export CALAVERITAS_PATH=$(readlink -f "$0") +export CALAVERITAS_DIRECTORY=$(dirname "$CALAVERITAS_PATH") + +LOCAL_TRADITION="DiaDeMuertos" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $CALAVERITAS_PID $CALAVERITAS_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "GhostlyMoan.mp3" +Amikoo.sh amikoo/headright 1 && sleep .6 +Amikoo.sh amikoo/headleft 1 && sleep .6 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Haunting.mp3" +Amikoo.sh amikoo/moveforward 1 && sleep .1 +Amikoo.sh amikoo/movestop 1 && sleep .6 +Amikoo.sh amikoo/movebackward 1 && sleep .1 +Amikoo.sh amikoo/movestop 1 && sleep .6 + +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Fotografia.sh b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Fotografia.sh new file mode 100755 index 00000000..3b1a551d --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Fotografia.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export FOTOGRAFIA_PID=$$ +export FOTOGRAFIA_NAME="Fotografia" +export FOTOGRAFIA_PATH=$(readlink -f "$0") +export FOTOGRAFIA_DIRECTORY=$(dirname "$FOTOGRAFIA_PATH") + +LOCAL_TRADITION="DiaDeMuertos" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $FOTOGRAFIA_PID $FOTOGRAFIA_NAME + +LOCAL_LANGUAGE=`Language.sh` + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Happy Halloween and Monsters Day." +else + AmikooVoice.sh $LOCAL_LANGUAGE \ + "Feliz día de los Muertos." +fi + +AmikooSense.sh "Sight" "Picture" +sleep 7 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Witch.mp3" +sleep 3 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Mantel.sh b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Mantel.sh new file mode 100755 index 00000000..8b0107ac --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Mantel.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MANTEL_PID=$$ +export MANTEL_NAME="Mantel" +export MANTEL_PATH=$(readlink -f "$0") +export MANTEL_DIRECTORY=$(dirname "$MANTEL_PATH") + +LOCAL_TRADITION="DiaDeMuertos" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $MANTEL_PID $MANTEL_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Random" +sleep 10 +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/PapelPicado.sh b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/PapelPicado.sh new file mode 100755 index 00000000..aaee7659 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/PapelPicado.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export PAPELPICADO_PID=$$ +export PAPELPICADO_NAME="PapelPicado" +export PAPELPICADO_PATH=$(readlink -f "$0") +export PAPELPICADO_DIRECTORY=$(dirname "$PAPELPICADO_PATH") + +LOCAL_TRADITION="DiaDeMuertos" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $PAPELPICADO_PID $PAPELPICADO_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "demoniclaughter.mp3" +sleep 30 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Random" +sleep 5 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Veladora.sh b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Veladora.sh new file mode 100755 index 00000000..17f11619 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Veladora.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export VELADORA_PID=$$ +export VELADORA_NAME="Veladora" +export VELADORA_PATH=$(readlink -f "$0") +export VELADORA_DIRECTORY=$(dirname "$VELADORA_PATH") + +LOCAL_DEVICE="Triki" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $VELADORA_PID $VELADORA_NAME + +LOCAL_SOUND=`find $TRADITION_DIADEMUERTOS/Sound/ -type f | shuf -n 1` +StreamAudio.sh "$LOCAL_DEVICE" "1.0" "$LOCAL_SOUND" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/4004.sh b/Hochob/Applications/TraditionMayaLands/Intel/4004.sh new file mode 100755 index 00000000..b5c52fb8 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/4004.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i4004_PID=$$ +export i4004_NAME="i4004" +export i4004_PATH=$(readlink -f "$0") +export i4004_DIRECTORY=$(dirname "$i4004_PATH") + +LOCAL_SEASON="Intel" +LOCAL_DEVICE="Triki" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i4004_PID $i4004_NAME + +LOCAL_SOUND=`find $TRADITION_INTEL/Sound/ -type f | shuf -n 1` +StreamAudio.sh "$LOCAL_DEVICE" "1.0" "$LOCAL_SOUND" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/8008.sh b/Hochob/Applications/TraditionMayaLands/Intel/8008.sh new file mode 100755 index 00000000..ba5119dd --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/8008.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i8008_PID=$$ +export i8008_NAME="i8008" +export i8008_PATH=$(readlink -f "$0") +export i8008_DIRECTORY=$(dirname "$i8008_PATH") + +LOCAL_TRADITION="Intel" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i8008_PID $i8008_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "IntelBong.mp3" +sleep 5 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "IntelBongPeople.mp3" + + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/80286.sh b/Hochob/Applications/TraditionMayaLands/Intel/80286.sh new file mode 100755 index 00000000..d5da5bc6 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/80286.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i80286_PID=$$ +export i80286_NAME="i80286" +export i80286_PATH=$(readlink -f "$0") +export i80286_DIRECTORY=$(dirname "$i80286_PATH") + +LOCAL_TRADITION="Intel" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i80286_PID $i80286_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "IntelExperienceWhatsInside.png" +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "IntelBong.mp3" +sleep 5 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Stop" + +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "IntelChorus.jpg" +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "IntelBongChorus.mp3" +sleep 5 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/8080.sh b/Hochob/Applications/TraditionMayaLands/Intel/8080.sh new file mode 100755 index 00000000..7921c983 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/8080.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i8080_PID=$$ +export i8080_NAME="i8080" +export i8080_PATH=$(readlink -f "$0") +export i8080_DIRECTORY=$(dirname "$i8080_PATH") + +LOCAL_TRADITION="Intel" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i8080_PID $i8080_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Random" +sleep 10 +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/8086.sh b/Hochob/Applications/TraditionMayaLands/Intel/8086.sh new file mode 100755 index 00000000..23a260b7 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/8086.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i8086_PID=$$ +export i8086_NAME="i8086" +export i8086_PATH=$(readlink -f "$0") +export i8086_DIRECTORY=$(dirname "$i8086_PATH") + +LOCAL_TRADITION="Intel" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i8086_PID $i8086_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Video" "Random" +sleep 10 +AmikooCommunication.sh "$LOCAL_TRADITION" "Video" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Intel/i486.sh b/Hochob/Applications/TraditionMayaLands/Intel/i486.sh new file mode 100755 index 00000000..357b0dbb --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Intel/i486.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export i486_PID=$$ +export i486_NAME="i486" +export i486_PATH=$(readlink -f "$0") +export i486_DIRECTORY=$(dirname "$i486_PATH") + +LOCAL_SEASON="Intel" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $i486_PID $i486_NAME + + +Eog.sh "$TRADITION_INTEL/Image/IntelExperienceWhatsInside.png" +sleep 1 +Vlc.sh $TRADITION_INTEL/Sound/IntelBong.mp3 +sleep 2 +KillApp.sh "cvlc" +KillApp.sh "eog" + +sleep 1 + +Eog.sh "$TRADITION_INTEL/Image/IntelChorus.jpg" +sleep 1 +Vlc.sh $TRADITION_INTEL/Sound/IntelBongChorus.mp3 +sleep 2 +KillApp.sh "cvlc" +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Navidad/Campana.sh b/Hochob/Applications/TraditionMayaLands/Navidad/Campana.sh new file mode 100755 index 00000000..0c569c3e --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Navidad/Campana.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export CAMPANA_PID=$$ +export CAMPANA_NAME="Campana" +export CAMPANA_PATH=$(readlink -f "$0") +export CAMPANA_DIRECTORY=$(dirname "$CAMPANA_PATH") + +LOCAL_TRADITION="Navidad" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $CAMPANA_PID $CAMPANA_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Random" +sleep 5 +AmikooCommunication.sh "$LOCAL_TRADITION" "Audio" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Navidad/Familia.sh b/Hochob/Applications/TraditionMayaLands/Navidad/Familia.sh new file mode 100755 index 00000000..5f864223 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Navidad/Familia.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export FAMILIA_PID=$$ +export FAMILIA_NAME="Familia" +export FAMILIA_PATH=$(readlink -f "$0") +export FAMILIA_DIRECTORY=$(dirname "$FAMILIA_PATH") + +LOCAL_DEVICE="Triki" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $FAMILIA_PID $FAMILIA_NAME + +LOCAL_SOUND=`find $TRADITION_NAVIDAD/Sound/ -type f | shuf -n 1` +StreamAudio.sh "$LOCAL_DEVICE" "1.0" "$LOCAL_SOUND" diff --git a/Hochob/Applications/TraditionMayaLands/Navidad/Pesebre.sh b/Hochob/Applications/TraditionMayaLands/Navidad/Pesebre.sh new file mode 100755 index 00000000..73475b00 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Navidad/Pesebre.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export PESEBRE_PID=$$ +export PESEBRE_NAME="Pesebre" +export PESEBRE_PATH=$(readlink -f "$0") +export PESEBRE_DIRECTORY=$(dirname "$PESEBRE_PATH") + +LOCAL_TRADITION="Navidad" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $PESEBRE_PID $PESEBRE_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Random" +sleep 10 +AmikooCommunication.sh "$LOCAL_TRADITION" "Image" "Stop" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Navidad/SantaClaus.sh b/Hochob/Applications/TraditionMayaLands/Navidad/SantaClaus.sh new file mode 100755 index 00000000..beacdcaa --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Navidad/SantaClaus.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export SANTACLAUS_PID=$$ +export SANTACLAUS_NAME="SantaClaus" +export SANTACLAUS_PATH=$(readlink -f "$0") +export SANTACLAUS_DIRECTORY=$(dirname "$SANTACLAUS_PATH") + +LOCAL_SEASON="Navidad" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $SANTACLAUS_PID $SANTACLAUS_NAME + +Eog.sh "$TRADITION_NAVIDAD/Image/SantaClausVector.jpg" +sleep 1 +Vlc.sh $TRADITION_NAVIDAD/Sound/SantaClauseJollyLaughSoundBibleCom.mp3 +sleep 2 +KillApp.sh "cvlc" +KillApp.sh "eog" + +# End of File diff --git a/Hochob/Applications/TraditionMayaLands/Navidad/Trineo.sh b/Hochob/Applications/TraditionMayaLands/Navidad/Trineo.sh new file mode 100755 index 00000000..1de13e49 --- /dev/null +++ b/Hochob/Applications/TraditionMayaLands/Navidad/Trineo.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export TRINEO_PID=$$ +export TRINEO_NAME="Trineo" +export TRINEO_PATH=$(readlink -f "$0") +export TRINEO_DIRECTORY=$(dirname "$TRINEO_PATH") + +LOCAL_TRADITION="Navidad" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +LogPid.sh $TRINEO_PID $TRINEO_NAME + +AmikooCommunication.sh "$LOCAL_TRADITION" "Video" "Random" +sleep 10 +AmikooCommunication.sh "$LOCAL_TRADITION" "Video" "Stop" + +# End of File diff --git a/Hochob/Demo.sh b/Hochob/Demo.sh new file mode 100755 index 00000000..db183f09 --- /dev/null +++ b/Hochob/Demo.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export DEMO_PID=$$ + +LOCAL_COMMAND="$1" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ -z "$1" ] +then + cat $HOCHOB_SERVER_CONFIGURATION_DEMO +else + echo $LOCAL_COMMAND > $HOCHOB_SERVER_CONFIGURATION_DEMO +fi + +# End of File diff --git a/Hochob/HomeAssistant/configuration.yaml.kali b/Hochob/HomeAssistant/configuration.yaml.kali deleted file mode 100644 index 99483ba8..00000000 --- a/Hochob/HomeAssistant/configuration.yaml.kali +++ /dev/null @@ -1,690 +0,0 @@ -homeassistant: - # Name of the location where Home Assistant is running - name: Home - # Location required to calculate the time the sun rises and sets - latitude: 20.6208618 - longitude: -103.4254426 - # Impacts weather/sunrise data (altitude above sea level in meters) - elevation: 1579 - # metric for Metric, imperial for Imperial - unit_system: metric - # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones - time_zone: America/Mexico_City - customize: - - # Welcome Center - - script.welcome: - friendly_name: Welcome to Intel Visitor Center - icon: mdi:human-greeting - script.selfie: - friendly_name: Selfie Record - icon: mdi:camera - switch.lupecomplete: - friendly_name: Lupe Robot Show Complete - icon: mdi:video - switch.lupe: - friendly_name: Lupe Robot Show - icon: mdi:video - - # Lupe Center - - script.recognize: - friendly_name: Recognize Speech - icon: mdi:microphone - - # Selfie Center - - switch.preview: - friendly_name: Selfie Preview - icon: mdi:video - switch.latest: - friendly_name: Selfie Play Latest - icon: mdi:video - switch.loop: - friendly_name: Selfie Play All In A Loop - icon: mdi:video - - # Lupe - - switch.leftup: - friendly_name: Up - icon: mdi:human-handsup - switch.leftdown: - friendly_name: Down - icon: mdi:human-handsup - switch.leftfold: - friendly_name: Fold - icon: mdi:gesture-swipe-up - switch.leftunfold: - friendly_name: Unfold - icon: mdi:gesture-swipe-up - - switch.rightup: - friendly_name: Up - icon: mdi:human-handsup - switch.rightdown: - friendly_name: Down - icon: mdi:human-handsup - switch.rightfold: - friendly_name: Fold - icon: mdi:gesture-swipe-up - switch.rightunfold: - friendly_name: Unfold - icon: mdi:gesture-swipe-up - - switch.moveleft: - friendly_name: Move Left - icon: mdi:arrow-left-thick - switch.moveright: - friendly_name: Move Right - icon: mdi:arrow-right-thick - switch.moveforward: - friendly_name: Move Forward - icon: mdi:arrow-up-thick - switch.movebackward: - friendly_name: Move Backward - icon: mdi:arrow-down-thick - switch.movestop: - friendly_name: Move Stop - icon: mdi:stop - - switch.headleft: - friendly_name: Head Left - icon: mdi:arrow-left-thick - switch.headright: - friendly_name: Head Right - icon: mdi:arrow-right-thick - switch.resetall: - friendly_name: Reset - icon: mdi:lock-reset - - switch.bienvenida: - friendly_name: Welcome Everyone! - icon: mdi:human-greeting - switch.agradece: - friendly_name: Thanks Everyone! - icon: mdi:music - switch.dance: - friendly_name: Let's Dance - icon: mdi:heart - switch.creador: - friendly_name: My Creator Speech - icon: mdi:face - switch.norte: - friendly_name: Mexican Northern - icon: mdi:function - - # Technical Center - - script.help: - friendly_name: Visitor Center Needs Technical Help - icon: mdi:block-helper - - # Audio - - script.audiosectionone: - friendly_name: Audio Cast Section One - icon: audiobook - script.audiosectiontwo: - friendly_name: Audio Cast Section Two - icon: audiobook - script.audiosectionthree: - friendly_name: Audio Cast Section Three - icon: audiobook - script.audiosectionfour: - friendly_name: Audio Cast Section Four - icon: audiobook - script.audiopause: - friendly_name: Pause - icon: pause - script.audioplay: - friendly_name: Play - icon: play - - # Hidden - - media_player.main: - hidden: yes - automation.lupe_robot_text_to_speech: - hidden: yes - automation.lupe_robot_telegram: - hidden: yes - -# Show links to resources in log and frontend -#introduction: - -# Enables the frontend -frontend: - -# Enables configuration UI -config: - -http: - # Uncomment this to add a password (recommended!) - # api_password: PASSWORD - # Uncomment this if you are using SSL or running in Docker etc - # base_url: example.duckdns.org:8123 - -# Checks for available updates -updater: - -# Discover some devices automatically -discovery: - -# Allows you to issue voice commands from the frontend in enabled browsers -conversation: - -# Enables support for tracking state changes over time. -history: - -# View all events in a logbook -logbook: - -# Track the sun -#sun: - -#group: !include groups.yaml - -# Text to speech -tts: - - platform: google - #cache: true - #cache_dir: /tmp/tts - #time_memory: 300 - #- platform: voicerss - # api_key: 'XXXXXXXX' - #- platform: amazon_polly - # aws_access_key_id: AWS_ACCESS_KEY_ID - # aws_secret_access_key: AWS_SECRET_ACCESS_KEY - # profile_name: AWS_PROFILE - # region_name: 'us-east-1' - -#sensor: -# - platform: plex -# - platform: yr - -mqtt: - broker: iot.eclipse.org - port: 1883 - client_id: hochob - keepalive: 60 - -script: - welcome: - alias: Welcome - sequence: - - alias: Welcome To Intel Visitor Center - service: tts.google_say - data: - message: "Bienvenidos a Intel Guadalajara! Buscaremos que Jesus Palomino les de la Bienvenida por medio de un Video" - language: 'es' - selfie: - alias: Selfie - sequence: - - alias: Selfie Record - service: shell_command.selfie - help: - alias: Help Needed - sequence: - - alias: Hocho Bot Notification - service: notify.telegram - data: - message: "Visitor Center needs technical help!" - - # Audio - - audiosectionone: - alias: Audio Section One - sequence: - - alias: Audio Section One - service: shell_command.audiosectionone - audiosectiontwo: - alias: Audio Section Two - sequence: - - alias: Audio Section Two - service: shell_command.audiosectiontwo - audiosectionthree: - alias: Audio Section Three - sequence: - - alias: Audio Section Three - service: shell_command.audiosectionthree - audiosectionfour: - alias: Audio Section Four - sequence: - - alias: Audio Section Four - service: shell_command.audiosectionfour - audiopause: - alias: Audio Pause - sequence: - - alias: Audio Pause - service: shell_command.audiopause - audioplay: - alias: Audio Play - sequence: - - alias: Audio Play - service: shell_command.audioplay - - # Lupe Center - - presentation: - alias: Presentation - sequence: - - alias: Presentation - service: shell_command.presentation - recognize: - alias: Recognize - sequence: - - alias: Recognize Speech - service: shell_command.recognize - lupe_arm_left: - alias: Lupe Arm Left - sequence: - - alias: Lupe Arm Up - service: tts.google_say - data: - message: "Lupe Moviendo Brazo Izquierdo" - language: 'es' - lupe_arm_right: - alias: Lupe Arm Right - sequence: - - alias: Lupe Arm Right - service: tts.google_say - data: - message: "Lupe Moviendo Brazo Derecho" - language: 'es' - lupe_dance: - alias: Lupe Dance - sequence: - - alias: Lupe Dance - service: tts.google_say - data: - message: "Lupe Bailando" - language: 'es' - -shell_command: - restart_ha: sudo systemctl restart home-assistant.service & - selfie: python /home/hochob/CodeLabs/Hochob/Photography/selfie.py & - presentation: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Presentation/Presentation.sh & - recognize: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Recognize/Recognize.sh & - audiosectionone: bash /home/hochob/CodeLabs/Hochob/Audio/SectionOne.sh & - audiosectiontwo: bash /home/hochob/CodeLabs/Hochob/Audio/SectionTwo.sh & - audiosectionthree: bash /home/hochob/CodeLabs/Hochob/Audio/SectionThree.sh & - audiosectionfour: bash /home/hochob/CodeLabs/Hochob/Audio/SectionFour.sh & - audiopause: bash /home/hochob/CodeLabs/Hochob/Audio/Pause.sh & - audioplay: bash /home/hochob/CodeLabs/Hochob/Audio/Play.sh & - -switch: - - platform: command_line - switches: - lupecomplete: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" - lupe: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot1080p.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" - preview: - command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0" - command_off: "pkill vlc" - latest: - command_on: "cvlc --no-video-title-show --fullscreen /home/hochob/VideosSelfies/latest.mp4" - command_off: "pkill vlc" - loop: - command_on: "cvlc --no-video-title-show --fullscreen --loop /home/hochob/VideosSelfies/*.mp4" - command_off: "pkill vlc" - -# Lupe Switches - -switch 00: - - platform: mqtt - name: leftup - command_topic: "lupe/leftup" - state_topic: "lupe/leftup/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 01: - - platform: mqtt - name: leftdown - command_topic: "lupe/leftdown" - state_topic: "lupe/leftdown/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 02: - - platform: mqtt - name: leftfold - command_topic: "lupe/leftfold" - state_topic: "lupe/leftfold/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 03: - - platform: mqtt - name: leftunfold - command_topic: "lupe/leftunfold" - state_topic: "lupe/leftunfold/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 04: - - platform: mqtt - name: rightup - command_topic: "lupe/rightup" - state_topic: "lupe/rightup/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 05: - - platform: mqtt - name: rightdown - command_topic: "lupe/rightdown" - state_topic: "lupe/rightdown/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 06: - - platform: mqtt - name: rightfold - command_topic: "lupe/rightfold" - state_topic: "lupe/rightfold/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 07: - - platform: mqtt - name: rightunfold - command_topic: "lupe/rightunfold" - state_topic: "lupe/rightunfold/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 08: - - platform: mqtt - name: moveleft - command_topic: "lupe/moveleft" - state_topic: "lupe/moveleft/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 09: - - platform: mqtt - name: moveright - command_topic: "lupe/moveright" - state_topic: "lupe/moveright/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 10: - - platform: mqtt - name: moveforward - command_topic: "lupe/moveforward" - state_topic: "lupe/moveforward/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 11: - - platform: mqtt - name: movebackward - command_topic: "lupe/movebackward" - state_topic: "lupe/movebackward/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 12: - - platform: mqtt - name: movestop - command_topic: "lupe/movestop" - state_topic: "lupe/movestop/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 13: - - platform: mqtt - name: headleft - command_topic: "lupe/headleft" - state_topic: "lupe/headleft/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 14: - - platform: mqtt - name: headright - command_topic: "lupe/headright" - state_topic: "lupe/headright/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 15: - - platform: mqtt - name: resetall - command_topic: "lupe/resetall" - state_topic: "lupe/resetall/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 16: - - platform: mqtt - name: bienvenida - command_topic: "lupe/bienvenida" - state_topic: "lupe/bienvenida/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 17: - - platform: mqtt - name: agradece - command_topic: "lupe/agradece" - state_topic: "lupe/agradece/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 18: - - platform: mqtt - name: dance - command_topic: "lupe/dance" - state_topic: "lupe/dance/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 19: - - platform: mqtt - name: creador - command_topic: "lupe/creador" - state_topic: "lupe/creador/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -switch 20: - - platform: mqtt - name: norte - command_topic: "lupe/norte" - state_topic: "lupe/norte/state" - payload_on: 1 - payload_off: 0 - qos: 1 - -media_player: - - platform: vlc - name: main -# - platform: cast -# host: Hochob -# name: Nursery -# - platform: plex -# - platform: cast -# - platform: kodi -# host: 127.0.0.1 -# user: kodi -# password: kodi - -notify: - - platform: telegram - name: telegram - api_key: 301796470:AAHTZ7pYgjqVwOAzBDIIHfGziMvCrIFc_co - chat_id: 166426424 - -light: - platform: hue - -automation: -# - alias: Lupe Robot Text To Speech -# hide_entity: True -# trigger: -# platform: state -# entity_id: switch.lupe -# state: 'on' -# action: -# service: tts.google_say -# data: -# message: "Bienvenido Robot Lupe" -# language: 'es' - - alias: Lupe Robot Telegram - #hide_entity: True - trigger: - platform: state - entity_id: switch.lupe - state: 'on' - action: - service: notify.telegram - data: - message: "Lupe Robot Station has been activated" - -group: - - #default_view: - # view: yes - # entities: - # - group.technical - # - group.entrance - # - group.selfies - - # Views - - lupeview: - view: yes - name: Lupe Robot - entities: - - group.lupediagnostics - - group.lupearmleft - - group.lupearmright - - group.lupelegs - - group.lupehead - - group.lupeactivities - - group.lupeskills - - audioview: - view: yes - name: Audio - entities: - - group.audioexhibits - - group.audiocontrols - - # Groups - - technical: - name: Technical Center - entities: - - script.help - - entrance: - name: Welcome Center - entities: - - script.welcome - - switch.lupe - - switch.lupecomplete - - selfies: - name: Selfies Center - entities: - - script.selfie - - switch.preview - - switch.latest - - switch.loop - - # Lupe - - lupediagnostics: - name: Diagnostics - entities: - - switch.resetall - - lupearmleft: - name: Arm Left - entities: - - switch.leftup - - switch.leftdown - - switch.leftfold - - switch.leftunfold - - lupearmright: - name: Arm Right - entities: - - switch.rightup - - switch.rightdown - - switch.rightfold - - switch.rightunfold - - lupelegs: - name: Legs - entities: - - switch.moveleft - - switch.moveright - - switch.moveforward - - switch.movebackward - - switch.movestop - - lupehead: - name: Head - entities: - - switch.headleft - - switch.headright - - lupeactivities: - name: Activities - entities: - #- script.lupe_dance - - switch.bienvenida - - switch.agradece - - switch.dance - - switch.creador - - switch.norte - - lupeskills: - name: Skills - entities: - - script.presentation - - script.recognize - - audioexhibits: - name: Exhibits - entities: - - script.audiosectionone - - script.audiosectiontwo - - script.audiosectionthree - - script.audiosectionfour - - audiocontrols: - name: Controls - entities: - - script.audiopause - - script.audioplay diff --git a/Hochob/LupeRobot/Hochob/Release/lupefinal.js b/Hochob/LupeRobot/Hochob/Release/lupefinal.js deleted file mode 100644 index 33df4009..00000000 --- a/Hochob/LupeRobot/Hochob/Release/lupefinal.js +++ /dev/null @@ -1,171 +0,0 @@ -const mqtt = require('mqtt') -const client = mqtt.connect('mqtt://iot.eclipse.org') - -var command = '' -//Actual Code// - -const exec = require('child_process').exec; - -client.on('connect', () => { - - client.subscribe('lupe/leftup') - client.subscribe('lupe/leftdown') - client.subscribe('lupe/leftfold') - client.subscribe('lupe/leftunfold') - client.subscribe('lupe/moveleft') - client.subscribe('lupe/headleft') - client.subscribe('lupe/headright') - client.subscribe('lupe/moveforward') - client.subscribe('lupe/movestop') - client.subscribe('lupe/movebackward') - client.subscribe('lupe/rightup') - client.subscribe('lupe/rightdown') - client.subscribe('lupe/rightfold') - client.subscribe('lupe/rightunfold') - client.subscribe('lupe/moveright') - client.subscribe('lupe/resetall') - client.subscribe('lupe/bienvenida') - client.subscribe('lupe/agradece') - client.subscribe('lupe/dance') - client.subscribe('lupe/creador') - client.subscribe('lupe/norte') - - //Comandos de voz - client.subscribe('lupe/inicial') - client.subscribe('lupe/emocion') - client.subscribe('lupe/porsupuesto') - client.subscribe('lupe/cerebro') - client.subscribe('lupe/inteledison') - - //Saber si lupe esta conectada - client.publish('lupe/connected', '1') - -}) - -client.on('message', (topic,message) => { - console.log('receive message %s %s', topic, message) - - switch(topic){ - case 'lupe/leftup': - command = '00' - break; - case 'lupe/inicial': - command = '40' - break; - case 'lupe/emocion': - command = '41' - break; - case 'lupe/porsupuesto': - command = '42' - break; - case 'lupe/cerebro': - command = '43' - break; - case 'lupe/inteledison': - command = '44' - break; - case 'lupe/leftdown': - command = '20' - break; - case 'lupe/leftfold': - command = '01' - break; - case 'lupe/leftunfold': - command = '21' - break; - case 'lupe/moveleft': - command = '02' - break; - case 'lupe/headleft': - command = '04' - break; - case 'lupe/headright': - command = '24' - break; - case 'lupe/moveforward': - command = '05' - break; - case 'lupe/movestop': - command = '06' - break; - case 'lupe/movebackward': - command = '07' - break; - case 'lupe/rightup' : - command = '08' - break; - case 'lupe/rightdown': - command = '28' - break; - case 'lupe/rightfold': - command = '09' - break; - case 'lupe/rightunfold': - command = '29' - break; - case 'lupe/moveright': - command = '10' - break; - case 'lupe/resetall': - command = '11' - break; - case 'lupe/bienvenida': - command = '80' - break; - case 'lupe/agradece': - command = '81' - break; - case 'lupe/dance': - command = '82' - break; - case 'lupe/creador': - command = '83' - break; - case 'lupe/norte': - command = '84' - break; - } - - accionLupe(command); - -}) - -function accionLupe(number){ - exec('./HochobAction ' + number, (e, stdout, stderr) =>{ - if(e instanceof Error){ - console.error(e); - throw e; - } - console.log('stdout ', stdout); - console.log('stderr ', stderr); - }); -} - -// Handler for exits // -function handleAppExit(options, err){ - if(err){ - console.log(err.stack) - } - - if(options.cleanup){ - client.publish('lupe/connected', '0') - } - - if(options.exit){ - process.exit() - } -} - -// HANDLERS the differents ways an application can shutdown - -process.on('exit', handleAppExit.bind(null,{ - cleanup: true -})) - -process.on('SIGINT', handleAppExit.bind(null,{ - exit: true -})) - -process.on('uncaughtException', handleAppExit.bind(null,{ - exit: true -})) \ No newline at end of file diff --git a/Hochob/LupeRobot/Show/LupeRobot01.sh b/Hochob/LupeRobot/Show/LupeRobot01.sh deleted file mode 100755 index 5244236a..00000000 --- a/Hochob/LupeRobot/Show/LupeRobot01.sh +++ /dev/null @@ -1,2 +0,0 @@ -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/FinalIntroVideo.mp4 & -sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/LupeRobot/Show/LupeRobot1080p.sh b/Hochob/LupeRobot/Show/LupeRobot1080p.sh deleted file mode 100755 index 04f64d97..00000000 --- a/Hochob/LupeRobot/Show/LupeRobot1080p.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -set -x - -MQTTSERVER=localhost -MQTTPORT=1883 - -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Silencio.mp4 & -#(sleep 1) && echo "hola a todos" | espeak -v es-la -a 200 -(mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/inicial -m 1) && sleep 1.25 - -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Parte1_v3.mp4 & -#(sleep 7.5) && echo "Perdon! Lo se!, Es que me emociono" | espeak -v es-la -a 200 -sleep 6.35 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/emocion -m 1 && sleep 4 - -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Parte2_v2.mp4 & -##(sleep 3.5) && echo "Por supuesto" | espeak -v es-la -a 200 -sleep 2.7 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/porsupuesto -m 1 && sleep 2.5 - -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Parte3_v2.mp4 & -##(sleep 39.5) && echo "En mi caso, mi cerebro esta aqui, en la caja azul!" | espeak -v es-la -a 200 -sleep 37.5 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/cerebro -m 1 -sleep 2 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/rightup -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/leftup -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/rightfold -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/leftfold -m 1 -sleep 2 - -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Parte4_v2.mp4 & -##(sleep 26.5) && echo "Yo funciono con la plataforma Intel Edison" | espeak -v es-la -a 200 -sleep 25.5 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/inteledison -m 1 -sleep 3 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/rightdown -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/leftdown -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/rightunfold -m 1 -sleep .25 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/leftunfold -m 1 -sleep 2 - -cvlc --no-video-title-show --fullscreen --play-and-exit /home/hochob/LupeRobot/1080p/Parte5_v2.mp4 & -sleep 75 -sh /home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh - -# End Of File diff --git a/Hochob/LupeRobot/Show/LupeRobot1080p01.sh b/Hochob/LupeRobot/Show/LupeRobot1080p01.sh deleted file mode 100755 index 3684d289..00000000 --- a/Hochob/LupeRobot/Show/LupeRobot1080p01.sh +++ /dev/null @@ -1,2 +0,0 @@ -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/1080p/Parte1_v2.mp4 & -sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/LupeRobot/Show/LupeRobot720p01.sh b/Hochob/LupeRobot/Show/LupeRobot720p01.sh deleted file mode 100755 index d22c5239..00000000 --- a/Hochob/LupeRobot/Show/LupeRobot720p01.sh +++ /dev/null @@ -1,2 +0,0 @@ -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/720p/Parte1_v2.mp4 & -sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/LupeRobot/Virtual/amikoo.js b/Hochob/LupeRobot/Virtual/amikoo.js deleted file mode 100644 index 90246377..00000000 --- a/Hochob/LupeRobot/Virtual/amikoo.js +++ /dev/null @@ -1,198 +0,0 @@ -const mqtt = require('mqtt') -//const client = mqtt.connect('mqtt://iot.eclipse.org') -const client = mqtt.connect('mqtt://localhost') - -var sys = require('sys') -var exec = require('child_process').exec; - -function puts(error, stdout, stderr) { sys.puts(stdout) } - -function espeak(phrase) { - var sleep = require('sleep') - exec("echo " + phrase + " | espeak -ves -w audio.wav", puts); - sleep.msleep(500); - exec("aplay audio.wav", puts); -} - -var state = 'closed' - -client.on('connect', function () { - client.subscribe('lupe/open') - client.subscribe('lupe/close') - client.subscribe('lupe/say') - - client.subscribe('lupe/resetall') - client.subscribe('lupe/headleft') - client.subscribe('lupe/headright') - - client.subscribe('lupe/leftup') - client.subscribe('lupe/leftdown') - client.subscribe('lupe/leftfold') - client.subscribe('lupe/leftunfold') - - client.subscribe('lupe/rightup') - client.subscribe('lupe/rightdown') - client.subscribe('lupe/rightfold') - client.subscribe('lupe/rightunfold') - - client.subscribe('lupe/moveleft') - client.subscribe('lupe/moveright') - client.subscribe('lupe/moveforward') - client.subscribe('lupe/movebackward') - client.subscribe('lupe/movestop') - - client.subscribe('lupe/bienvenida') - client.subscribe('lupe/agradece') - client.subscribe('lupe/dance') - client.subscribe('lupe/creador') - client.subscribe('lupe/norte') - - client.subscribe('lupe/inicial') - client.subscribe('lupe/emocion') - client.subscribe('lupe/porsupuesto') - client.subscribe('lupe/cerebro') - client.subscribe('lupe/inteledison') - - client.publish('lupe/connected', 'true') - sendStateUpdate() -}) - -client.on('message', function (topic, message) { - console.log('Received message %s %s', topic, message) - switch (topic) { - case 'lupe/open': - return handleRequestOpen(message) - case 'lupe/close': - return handleRequestClose(message) - case 'lupe/say': - return handleRequestSay(message) - - case 'lupe/resetall': - return handleLupe('Inicializacion') - case 'lupe/headleft': - return handleLupe('Cabeza Izquierda') - case 'lupe/headright': - return handleLupe('Cabeza Derecha') - - case 'lupe/leftup': - return handleLupe('Mano Izquierda Arriba') - case 'lupe/leftdown': - return handleLupe('Mano Izquierda Abajo') - case 'lupe/leftfold': - return handleLupe('Codo Izquierdo Doblar') - case 'lupe/leftunfold': - return handleLupe('Codo Izquierdo Desdoblar') - - case 'lupe/rightup': - return handleLupe('Mano Derecha Arriba') - case 'lupe/rightdown': - return handleLupe('Mano Derecha Abajo') - case 'lupe/rightfold': - return handleLupe('Codo Derecho Doblar') - case 'lupe/rightunfold': - return handleLupe('Code Derecho Desdoblar') - - case 'lupe/moveleft': - return handleLupe('Mover Izquierda') - case 'lupe/moveright': - return handleLupe('Mover Derecha') - case 'lupe/moveforward': - return handleLupe('Mover Adelante') - case 'lupe/movebackward': - return handleLupe('Mover Atras') - case 'lupe/movestop': - return handleLupe('Mover Alto') - - case 'lupe/bienvenida': - return handleLupe('Bienvenido') - case 'lupe/agradece': - return handleLupe('Gracias') - case 'lupe/dance': - return handleLupe('Bailar') - case 'lupe/creador': - return handleLupe('Creador') - case 'lupe/norte': - return handleLupe('Norte') - - case 'lupe/inicial': - return handleSpeakLupe('Hola a todos!') - case 'lupe/emocion': - return handleSpeakLupe('Perdon! Lo se!, Es que me emociono!') - case 'lupe/porsupuesto': - return handleSpeakLupe('Por supuesto') - case 'lupe/cerebro': - return handleSpeakLupe('En mi caso, mi cerebro esta aqui, en la caja azul!') - case 'lupe/inteledison': - return handleSpeakLupe('Yo funciono con la plataforma Intel Edison') - - } -}) - -function sendStateUpdate () { - console.log('Sending state %s', state) - client.publish('lupe/state', state) -} - -function handleRequestOpen (message) { - if (state !== 'open' && state !== 'opening') { - console.log('Opening Lupe') - state = 'opening' - espeak('Opening') - sendStateUpdate() - - setTimeout(function (){ - state = 'open' - sendStateUpdate() - }, 5000) - } -} - -function handleRequestClose (message) { - if (state !== 'closed' && state !== 'closing') { - state = 'closing' - - espeak('Closing') - sendStateUpdate() - - setTimeout(function () { - state = 'closed' - sendStateUpdate() - }, 5000) - } -} - -function handleRequestSay (message) { - espeak(message) -} - -function handleLupe (message) { - console.log('Action %s', message) -} - -function handleSpeakLupe (message) { - espeak(message) -} - -function handleAppExit (options, err) { - if (err) { - console.log(err.stack) - } - - if (options.cleanup) { - client.publish('lupe/connected', 'false') - } - - if (options.exit) { - process.exit() - } -} - -process.on('exit', handleAppExit.bind(null, { - cleanup: true -})) -process.on('SIGINT', handleAppExit.bind(null, { - exit: true -})) -process.on('uncaughtException', handleAppExit.bind(null, { - exit: true -})) diff --git a/Hochob/LupeRobot/Virtual/amikoo.sh b/Hochob/LupeRobot/Virtual/amikoo.sh deleted file mode 100755 index a1ccf2b4..00000000 --- a/Hochob/LupeRobot/Virtual/amikoo.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -x - -pacmd set-default-sink 0 -#pacmd set-default-source 3 - -node /home/hochob/CodeLabs/Hochob/LupeRobot/Virtual/amikoo.js - -# End Of File diff --git a/Hochob/Main.sh b/Hochob/Main.sh new file mode 100755 index 00000000..e5a8c10a --- /dev/null +++ b/Hochob/Main.sh @@ -0,0 +1,350 @@ +#!/bin/sh + +# ============================================================================= +# Variables +# ============================================================================= + +# --------------------------- # +# Hochob Server Configuration # +# --------------------------- # + +export HOCHOB_SERVER_CONFIGURATION=/tmp/hochob/ +export HOCHOB_SERVER_CONFIGURATION_PID=$HOCHOB_SERVER_CONFIGURATION/pid/ + +test -d $HOCHOB_SERVER_CONFIGURATION || mkdir -p $HOCHOB_SERVER_CONFIGURATION +test -d $HOCHOB_SERVER_CONFIGURATION_PID || mkdir -p $HOCHOB_SERVER_CONFIGURATION_PID + +export HOCHOB_SERVER_CONFIGURATION_DEMO=$HOCHOB_SERVER_CONFIGURATION/demo +export HOCHOB_SERVER_CONFIGURATION_LANGUAGE=$HOCHOB_SERVER_CONFIGURATION/language +export HOCHOB_SERVER_CONFIGURATION_AMIKOOAVAILABLE=$HOCHOB_SERVER_CONFIGURATION/amikooavailable + +# ------------------ # +# Hochob Server Root # +# ------------------ # + +cd ~/CodeLabs/Hochob/ +export HOCHOB_ROOT=`pwd` + +# -------------------------- # +# Hochob Server Applications # +# -------------------------- # + +HOCHOB_SERVER_APPLICATIONS_SOUTHERN_MAYA_HIGHLANDS_TTS_ENGINE="espeak" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_TTS_ENGINE="festival" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_TTS_ENGINE="festival" +HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_TTS_ENGINE="festival" + +HOCHOB_SERVER_APPLICATIONS_SOUTHERN_MAYA_HIGHLANDS_DEVICE="NohochTata" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_DEVICE="Triki" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE="Juum" +HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE="Eek'" + +HOCHOB_SERVER_APPLICATIONS_SOUTHERN_MAYA_HIGHLANDS_DEVICE_VOLUME="1.0" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_LOWLANDS_DEVICE_VOLUME="1.0" +HOCHOB_SERVER_APPLICATIONS_CENTRAL_MAYA_HIGHLANDS_DEVICE_VOLUME="1.0" +HOCHOB_SERVER_APPLICATIONS_NORTHERN_MAYA_LOWLANDS_DEVICE_VOLUME="1.0" + +# ---------------------- # +# Hochob Server Services # +# ---------------------- # + +export HOCHOB_SERVER=$HOCHOB_ROOT + +export HOCHOB_SERVER_SERVICES=$HOCHOB_ROOT/Services/ + +export HOCHOB_SERVER_SERVICES_CAMERA=$HOCHOB_SERVER_SERVICES/Camera/ +export HOCHOB_SERVER_SERVICES_CALENDAR=$HOCHOB_SERVER_SERVICES/Calendar/ +export HOCHOB_SERVER_SERVICES_COMMUNICATIONS=$HOCHOB_SERVER_SERVICES/Communications/ +export HOCHOB_SERVER_SERVICES_COMMUNICATIONS_MQTTCLIENT=$HOCHOB_SERVER_SERVICES_COMMUNICATIONS/MqttClient/ +export HOCHOB_SERVER_SERVICES_EVENTS=$HOCHOB_SERVER_SERVICES/Events/ +export HOCHOB_SERVER_SERVICES_IMAGE=$HOCHOB_SERVER_SERVICES/Image/ +export HOCHOB_SERVER_SERVICES_KEYPAD=$HOCHOB_SERVER_SERVICES/Keypad/ +export HOCHOB_SERVER_SERVICES_KILL=$HOCHOB_SERVER_SERVICES/Kill/ +export HOCHOB_SERVER_SERVICES_LANGUAGE=$HOCHOB_SERVER_SERVICES/Language/ +export HOCHOB_SERVER_SERVICES_MEMORIES=$HOCHOB_SERVER_SERVICES/Memories/ +export HOCHOB_SERVER_SERVICES_AMIKOO=$HOCHOB_SERVER_SERVICES/Amikoo/ +export HOCHOB_SERVER_SERVICES_AMIKOO_REMOTE=$HOCHOB_SERVER_SERVICES_AMIKOO/Remote/ +export HOCHOB_SERVER_SERVICES_AMIKOO_VIRTUAL=$HOCHOB_SERVER_SERVICES_AMIKOO/Virtual/ +export HOCHOB_SERVER_SERVICES_SOUND=$HOCHOB_SERVER_SERVICES/Sound/ +export HOCHOB_SERVER_SERVICES_SOUND_PLAY=$HOCHOB_SERVER_SERVICES_SOUND/Play/ +export HOCHOB_SERVER_SERVICES_SOUND_SPEECHSYNTHETIZER=$HOCHOB_SERVER_SERVICES_SOUND/SpeechSynthetizer/ +export HOCHOB_SERVER_SERVICES_STREAM=$HOCHOB_SERVER_SERVICES/Stream/ +export HOCHOB_SERVER_SERVICES_STREAM_STREAM2CHROMECAST=$HOCHOB_SERVER_SERVICES_STREAM/Stream2Chromecast/ +export HOCHOB_SERVER_SERVICES_SURVEY=$HOCHOB_SERVER_SERVICES/Survey/ +export HOCHOB_SERVER_SERVICES_VIDEO=$HOCHOB_SERVER_SERVICES/Video/ +export HOCHOB_SERVER_SERVICES_VISITORS=$HOCHOB_SERVER_SERVICES/Visitors/ + +export PATH=$PATH:$HOCHOB_SERVER +export PATH=$PATH:$HOCHOB_SERVER_SERVICES +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_CAMERA +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_CALENDAR +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_COMMUNICATIONS +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_COMMUNICATIONS_MQTTCLIENT +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_EVENTS +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_IMAGE +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_KILL +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_KEYPAD +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_LANGUAGE +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_MEMORIES +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_AMIKOO +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_AMIKOO_REMOTE +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_AMIKOO_VIRTUAL +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_SOUND +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_SOUND_PLAY +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_SOUND_SPEECHSYNTHETIZER +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_STREAM +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_STREAM_STREAM2CHROMECAST +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_SURVEY +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_VIDEO +export PATH=$PATH:$HOCHOB_SERVER_SERVICES_VISITORS + +# ------------------- # +# Hochob Server Media # +# ------------------- # + +export HOCHOB_SERVER_MEDIA=$HOME/HochobServerMedia/ + +export HOCHOB_SERVER_MEDIA_AREA=$HOCHOB_SERVER_MEDIA/Area/ +export HOCHOB_SERVER_MEDIA_AREA_SOUTERN_MAYA_HIGHLANDS=$HOCHOB_SERVER_MEDIA_AREA/SouthernMayaHighlands +export HOCHOB_SERVER_MEDIA_AREA_CENTRAL_MAYA_LOWLANDS=$HOCHOB_SERVER_MEDIA_AREA/CentralMayaLowlands +export HOCHOB_SERVER_MEDIA_AREA_NORTHERN_MAYA_LOWLANDS=$HOCHOB_SERVER_MEDIA_AREA/NorthernMayaLowlands + +export HOCHOB_SERVER_MEDIA_MEMORIES=$HOCHOB_SERVER_MEDIA/Memories/ +export HOCHOB_SERVER_MEDIA_MEMORIES_CAMERA=$HOCHOB_SERVER_MEDIA_MEMORIES/Camera/ +export HOCHOB_SERVER_MEDIA_MEMORIES_DRAWING=$HOCHOB_SERVER_MEDIA_MEMORIES/Drawing/ +export HOCHOB_SERVER_MEDIA_MEMORIES_AMIKOO=$HOCHOB_SERVER_MEDIA_MEMORIES/Amikoo/ +export HOCHOB_SERVER_MEDIA_MEMORIES_VIDEO=$HOCHOB_SERVER_MEDIA_MEMORIES/Video/ + +export HOCHOB_SERVER_MEDIA_TRADITION=$HOCHOB_SERVER_MEDIA/Tradition/ +export HOCHOB_SERVER_MEDIA_TRADITION_INTEL=$HOCHOB_SERVER_MEDIA_TRADITION/Intel/ +export HOCHOB_SERVER_MEDIA_TRADITION_INTEL_GUADALAJARA=$HOCHOB_SERVER_MEDIA_TRADITION/IntelGuadalajara +export HOCHOB_SERVER_MEDIA_TRADITION_VISITORS_CENTER=$HOCHOB_SERVER_MEDIA_TRADITION/VisitorsCenter +export HOCHOB_SERVER_MEDIA_TRADITION_DIADEMUERTOS=$HOCHOB_SERVER_MEDIA_TRADITION/DiaDeMuertos +export HOCHOB_SERVER_MEDIA_TRADITION_NAVIDAD=$HOCHOB_SERVER_MEDIA_TRADITION/Navidad + +export HOCHOB_SERVER_MEDIA_GAMES=$HOCHOB_SERVER_MEDIA/Tradition/ +export HOCHOB_SERVER_MEDIA_GAMES_LOTERIA=$HOCHOB_SERVER_MEDIA_GAMES/Loteria +export HOCHOB_SERVER_MEDIA_GAMES_CARASYGESTOS=$HOCHOB_SERVER_MEDIA_GAMES/CarasYGestos + +export HOCHOB_SERVER_MEDIA_VISITORS=$HOCHOB_SERVER_MEDIA/Visitors/ + +# ----------------------------- # +# Hochob Server Media Executive # +# ----------------------------- # + +export AREA_SOUTERN_MAYA_HIGHLANDS=$HOCHOB_SERVER_MEDIA_AREA_SOUTERN_MAYA_HIGHLANDS +export AREA_CENTRAL_MAYA_LOWLANDS=$HOCHOB_SERVER_MEDIA_AREA_CENTRAL_MAYA_LOWLANDS +export AREA_NORTHERN_MAYA_LOWLANDS=$HOCHOB_SERVER_MEDIA_AREA_NORTHERN_MAYA_LOWLANDS + +export MEMORIES_CAMERA=$HOCHOB_SERVER_MEDIA_MEMORIES_CAMERA +export MEMORIES_DRAWING=$HOCHOB_SERVER_MEDIA_MEMORIES_DRAWING +export MEMORIES_AMIKOO=$HOCHOB_SERVER_MEDIA_MEMORIES_AMIKOO +export MEMORIES_VIDEO=$HOCHOB_SERVER_MEDIA_MEMORIES_VIDEO + +export TRADITION_INTEL=$HOCHOB_SERVER_MEDIA_TRADITION_INTEL +export TRADITION_INTEL_GUADALAJARA=$HOCHOB_SERVER_MEDIA_TRADITION_INTEL_GUADALAJARA +export TRADITION_VISITORS_CENTER=$HOCHOB_SERVER_MEDIA_TRADITION_VISITORS_CENTER +export TRADITION_DIADEMUERTOS=$HOCHOB_SERVER_MEDIA_TRADITION_DIADEMUERTOS +export TRADITION_NAVIDAD=$HOCHOB_SERVER_MEDIA_TRADITION_NAVIDAD + +export GAMES_LOTERIA=$HOCHOB_SERVER_MEDIA_GAMES_LOTERIA +export GAMES_CARASYGESTOS=$HOCHOB_SERVER_MEDIA_GAMES_CARASYGESTOS + +export VISITORS=$HOCHOB_SERVER_MEDIA_VISITORS + +# -------------------------- # +# Hochob Server Media Source # +# -------------------------- # + +export HOCHOB_SERVER_MEDIA_SOURCE=$HOME/HochobServerMediaSource/ + +export HOCHOB_SERVER_MEDIA_SOURCE_CAMERA=$HOCHOB_SERVER_MEDIA_SOURCE/Camera/ +export HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA/Fswebcam/ +export HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM/*.jpg +export HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM/FswebcamImage.jpg +export HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_IMAGE_TEXT=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM/FswebcamImageText.jpg + +export HOCHOB_SERVER_MEDIA_SOURCE_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE/Image/ +export HOCHOB_SERVER_MEDIA_SOURCE_IMAGE_DRAWING=$HOCHOB_SERVER_MEDIA_SOURCE_IMAGE/Drawing/ +export HOCHOB_SERVER_MEDIA_SOURCE_IMAGE_DRAWING_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_IMAGE_DRAWING/*.jpg + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND=$HOCHOB_SERVER_MEDIA_SOURCE/Sound/ + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND/SpeechSynthesizer/ +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND/SpeechSynthesizer/Speech.wav +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND/SpeechSynthesizer/Speech.mp3 + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER/Espeak/ +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK/*.* +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK/EspeakSpeech.wav +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK/EspeakSpeech.mp3 + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER/VoiceRss/ +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS/*.* +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS/VoiceRssSpeech.wav +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS/VoiceRssSpeech.mp3 + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER/Pico2Wave/ +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE/*.* +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE/Pico2WaveSpeech.wav +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE/Pico2WaveSpeech.mp3 + +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER/Festival/ +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL/*.* +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL/FestivalSpeech.wav +export HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL/FestivalSpeech.mp3 + +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO=$HOCHOB_SERVER_MEDIA_SOURCE/Video/ +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO/Ffmpeg/ +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/*.mp4 +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_CAMERA=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/FfmpegCamera.mp4 +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_VIDEO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/FfmpegVideo.mp4 +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/FfmpegImage.mp4 +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_IMAGE_AUDIO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/FfmpegImageAudio.mp4 +export HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_VIDEO_AUDIO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG/FfmpegVideoAudio.mp4 + +export HOCHOB_SERVER_MEDIA_SOURCE_VISITORS=$HOCHOB_SERVER_MEDIA_SOURCE/Visitors/ + +# ------------------------------------ # +# Hochob Server Media Source Executive # +# ------------------------------------ # + +export FSWEBCAM_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM +export FSWEBCAM_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_ALLFILES +export FSWEBCAM_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_IMAGE +export FSWEBCAM_IMAGE_TEXT=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_IMAGE_TEXT + +export DRAWING_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_IMAGE_DRAWING +export DRAWING_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_IMAGE_DRAWING_ALLFILES + +export SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_SPEECH +export SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_SPEECH_MP3 + +export ESPEAK_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK +export ESPEAK_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_ALLFILES +export ESPEAK_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_SPEECH +export ESPEAK_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_ESPEAK_SPEECH_MP3 + +export VOICERSS_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS +export VOICERSS_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_ALLFILES +export VOICERSS_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_SPEECH +export VOICERSS_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_VOICERSS_SPEECH_MP3 + +export PICO2WAVE_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE +export PICO2WAVE_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_ALLFILES +export PICO2WAVE_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_SPEECH +export PICO2WAVE_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_PICO2WAVE_SPEECH_MP3 + +export FESTIVAL_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL +export FESTIVAL_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_ALLFILES +export FESTIVAL_SPEECH=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_SPEECH +export FESTIVAL_SPEECH_MP3=$HOCHOB_SERVER_MEDIA_SOURCE_SOUND_SPEECHSYNTHETIZER_FESTIVAL_SPEECH_MP3 + +export FFMPEG_DIRECTORY=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG +export FFMPEG_ALLFILES=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_ALLFILES +export FFMPEG_CAMERA=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_CAMERA +export FFMPEG_VIDEO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_VIDEO +export FFMPEG_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_IMAGE +export FFMPEG_IMAGE_AUDIO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_IMAGE_AUDIO +export FFMPEG_VIDEO_AUDIO=$HOCHOB_SERVER_MEDIA_SOURCE_VIDEO_FFMPEG_VIDEO_AUDIO + +export VISITORS_SOURCE=$HOCHOB_SERVER_MEDIA_SOURCE_VISITORS + +# ---------------------- # +# MQ Telemetry Transport # +# ---------------------- # + +#MQTT_SERVER_ADDRESS=127.0.0.1 +MQTT_SERVER_ADDRESS=10.215.56.158 +#MQTT_SERVER_ADDRESS=iot.eclipse.org +MQTT_SERVER_PORT=1883 + +# ------ # +# Amikoo # +# ------ # + +AMIKOO=amikoo + +# Musculoskeletal System # +## Tbd + +# Nervous System # + +## Voice ## +AMIKOO_HUMANVOICE=$AMIKOO/sound/speechsynthetizer +AMIKOO_TTS_ENGINE=$AMIKOO/sound/speechsynthetizer/engine +AMIKOO_TALK=$AMIKOO_HUMANVOICE/say +AMIKOO_HABLAR=$AMIKOO_HUMANVOICE/decir + +## Sense ## +AMIKOO_SENSE=$AMIKOO/sense + +### Sight (Vision) ### +AMIKOO_SENSE_SIGHT=$AMIKOO_SENSE/sight +AMIKOO_SENSE_SIGHT_PICTURE=$AMIKOO_SENSE_SIGHT/picture +AMIKOO_PICTURE=$AMIKOO_SENSE_SIGHT_PICTURE +AMIKOO_PICTURE=amikoo/camera/picture + +### Hearing (Audition) ### +AMIKOO_SENSE_HEARING=$AMIKOO_SENSE/hearing + +### Taste (Gustation) ### +#### Tbd + +### Smell (Olfaction) ### +#### Tbd + +### Touch (Somatosensation) ### +#### Tbd + +# Communication # +AMIKOO_COMMUNICATION=$AMIKOO/tradition + +## Communication :: Verbal ## +AMIKOO_AUDIO=$AMIKOO_COMMUNICATION/sound + +## Communication :: Visual ## +AMIKOO_IMAGE=$AMIKOO_COMMUNICATION/image +AMIKOO_VIDEO=$AMIKOO_COMMUNICATION/video + +# Expertise # +AMIKOO_SKILLS=$AMIKOO/skills +AMIKOO_GCVISIONAPI=$AMIKOO/gc/visionapi +AMIKOO_GCTRANSLATIONAPI=$AMIKOO/gc/translationapi + +AMIKOO_AMAZONALEXA=$AMIKOO/amazon/alexa + +AMIKOO_GOOGLEASSISTANT=$AMIKOO/google/assistant + +# ============================================================================= +# Functions +# ============================================================================= + +# Institution Identification through Google Calendar API +# If Google Calendar entry is registered then naming convention is +# YYYYMMDD-HHMMSS-InstitutionName +# If not, naming convention is +# YYYYMMDD-HHMMSS + +institutionIdentification () { + # If Institution Identification + # + # else + # + echo "Tbd" +} + + +# Language Identification + +languageIdentification () { + test -f $HOCHOB_SERVER_CONFIGURATION || touch $HOCHOB_SERVER_CONFIGURATION +} + +# ============================================================================= +# Main +# ============================================================================= + +languageIdentification + +# End of File diff --git a/Hochob/Photography/selfie.py b/Hochob/Photography/selfie.py deleted file mode 100755 index 1ebca67c..00000000 --- a/Hochob/Photography/selfie.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python - -import os -import time - -from xcamera import takePhoto -from subprocess import call - -if __name__ == "__main__": - - directorycurrent = os.path.dirname(os.path.realpath(__file__)) - - mediapath = directorycurrent + "/Media/" - - picturename = time.strftime("%Y%m%d-%H%M%S") + ".jpg" - picturepath = mediapath + picturename - - videoname = time.strftime("%Y%m%d-%H%M%S") + ".mp4" - videopath = mediapath + videoname - - for i in range(1,240): - name = "%02d" % i + ".jpg" - picture = mediapath + name - call(["cp", picture, "/home/hochob/Pictures/"]) - takePhoto(picture) - - takePhoto(picturename) - - pictures = mediapath + "%02d.jpg" - #call(["ffmpeg", "-framerate", "30", "-i", pictures, "-vf", "fps=30", "-pix_fmt", "yuv420p", videopath]) - call(["ffmpeg", "-framerate", "10", "-i", pictures, "-vf", "fps=10", "-pix_fmt", "yuv420p", videopath]) - call(["cp", videopath, "/home/hochob/VideosSelfies/"]) - call(["mv", videopath, "/home/hochob/VideosSelfies/latest.mp4"]) - -# End of File diff --git a/Hochob/Photography/xcamera.py b/Hochob/Photography/xcamera.py deleted file mode 100755 index 39e00732..00000000 --- a/Hochob/Photography/xcamera.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/python - -import commands -import logging -import os - -class xCamera(object): - - def __init__(self, media="Pictures/photo.jpg"): - self.picturefswebcam = media - - def __del__(self): - pass - - def filepath(self): - return self.picturefswebcam - - def setup(self): - self.fswebcam = 'fswebcam' - self.fswebcamarguments = ' -r 1280x720 -s brightness=65% -s Contrast=50% -s Gamma=100% --jpeg 100 --no-banner ' - #self.fswebcamarguments = ' -r 1280x720 --jpeg 100 --no-banner ' - self.fswebcamcommand = self.fswebcam + self.fswebcamarguments + self.picturefswebcam - - def capture(self): - - self.setup() - status, output = commands.getstatusoutput(self.fswebcamcommand) - -def takePhoto(photoname): - - idCamera = xCamera(photoname) - idCamera.capture() - -if __name__ == "__main__": - - idCamera = xCamera() - idCamera.capture() - -# End of File diff --git a/Hochob/Audio/.asoundrc b/Hochob/Sandbox/Audio/.asoundrc similarity index 100% rename from Hochob/Audio/.asoundrc rename to Hochob/Sandbox/Audio/.asoundrc diff --git a/Hochob/Audio/Kill.sh b/Hochob/Sandbox/Audio/Kill.sh similarity index 100% rename from Hochob/Audio/Kill.sh rename to Hochob/Sandbox/Audio/Kill.sh diff --git a/Hochob/Audio/Pause.sh b/Hochob/Sandbox/Audio/Pause.sh similarity index 100% rename from Hochob/Audio/Pause.sh rename to Hochob/Sandbox/Audio/Pause.sh diff --git a/Hochob/Audio/Play.sh b/Hochob/Sandbox/Audio/Play.sh similarity index 100% rename from Hochob/Audio/Play.sh rename to Hochob/Sandbox/Audio/Play.sh diff --git a/Hochob/Audio/Section01.sh b/Hochob/Sandbox/Audio/Section01.sh similarity index 100% rename from Hochob/Audio/Section01.sh rename to Hochob/Sandbox/Audio/Section01.sh diff --git a/Hochob/Audio/Section02.sh b/Hochob/Sandbox/Audio/Section02.sh similarity index 67% rename from Hochob/Audio/Section02.sh rename to Hochob/Sandbox/Audio/Section02.sh index de7f65c4..0d7c5ea5 100755 --- a/Hochob/Audio/Section02.sh +++ b/Hochob/Sandbox/Audio/Section02.sh @@ -29,19 +29,19 @@ feh --fullscreen $IPATH/Images/VisitorsCenter/02/08.jpg & sleep 2 feh --fullscreen $IPATH/Images/VisitorsCenter/02/09.jpg & sleep 2 -feh --fullscreen $IPATH/Images/VisitorsCenter/lupe.jpg & +feh --fullscreen $IPATH/Images/VisitorsCenter/amikoo.jpg & sleep 4 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/headright -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/headright -m 1 sleep .6 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/headleft -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/headleft -m 1 sleep .6 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/headright -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/headright -m 1 sleep .6 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/headleft -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/headleft -m 1 sleep .6 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/headright -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/headright -m 1 sleep .6 -mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t lupe/resetall -m 1 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/resetall -m 1 sleep 10 killall -9 feh diff --git a/Hochob/Audio/Section03.sh b/Hochob/Sandbox/Audio/Section03.sh similarity index 100% rename from Hochob/Audio/Section03.sh rename to Hochob/Sandbox/Audio/Section03.sh diff --git a/Hochob/Audio/Section04.sh b/Hochob/Sandbox/Audio/Section04.sh similarity index 100% rename from Hochob/Audio/Section04.sh rename to Hochob/Sandbox/Audio/Section04.sh diff --git a/Hochob/Audio/Section05.sh b/Hochob/Sandbox/Audio/Section05.sh similarity index 100% rename from Hochob/Audio/Section05.sh rename to Hochob/Sandbox/Audio/Section05.sh diff --git a/Hochob/Audio/Section06.sh b/Hochob/Sandbox/Audio/Section06.sh similarity index 100% rename from Hochob/Audio/Section06.sh rename to Hochob/Sandbox/Audio/Section06.sh diff --git a/Hochob/Audio/Section07.sh b/Hochob/Sandbox/Audio/Section07.sh similarity index 100% rename from Hochob/Audio/Section07.sh rename to Hochob/Sandbox/Audio/Section07.sh diff --git a/Hochob/Audio/Section08.sh b/Hochob/Sandbox/Audio/Section08.sh similarity index 100% rename from Hochob/Audio/Section08.sh rename to Hochob/Sandbox/Audio/Section08.sh diff --git a/Hochob/Audio/Section09.sh b/Hochob/Sandbox/Audio/Section09.sh similarity index 100% rename from Hochob/Audio/Section09.sh rename to Hochob/Sandbox/Audio/Section09.sh diff --git a/Hochob/Audio/Section10.sh b/Hochob/Sandbox/Audio/Section10.sh similarity index 100% rename from Hochob/Audio/Section10.sh rename to Hochob/Sandbox/Audio/Section10.sh diff --git a/Hochob/Audio/Section11.sh b/Hochob/Sandbox/Audio/Section11.sh similarity index 100% rename from Hochob/Audio/Section11.sh rename to Hochob/Sandbox/Audio/Section11.sh diff --git a/Hochob/Audio/Section12.sh b/Hochob/Sandbox/Audio/Section12.sh similarity index 100% rename from Hochob/Audio/Section12.sh rename to Hochob/Sandbox/Audio/Section12.sh diff --git a/Hochob/Audio/Stop.sh b/Hochob/Sandbox/Audio/Stop.sh similarity index 100% rename from Hochob/Audio/Stop.sh rename to Hochob/Sandbox/Audio/Stop.sh diff --git a/Hochob/Audio/configuration/default.pa b/Hochob/Sandbox/Audio/configuration/default.pa similarity index 100% rename from Hochob/Audio/configuration/default.pa rename to Hochob/Sandbox/Audio/configuration/default.pa diff --git a/Hochob/Audio/configuration/default.pa.kali b/Hochob/Sandbox/Audio/configuration/default.pa.kali similarity index 100% rename from Hochob/Audio/configuration/default.pa.kali rename to Hochob/Sandbox/Audio/configuration/default.pa.kali diff --git a/Hochob/LupeRobot/Hochob/.cproject b/Hochob/Sandbox/LupeRobot/Hochob/.cproject similarity index 100% rename from Hochob/LupeRobot/Hochob/.cproject rename to Hochob/Sandbox/LupeRobot/Hochob/.cproject diff --git a/Hochob/LupeRobot/Hochob/.project b/Hochob/Sandbox/LupeRobot/Hochob/.project similarity index 100% rename from Hochob/LupeRobot/Hochob/.project rename to Hochob/Sandbox/LupeRobot/Hochob/.project diff --git a/Hochob/LupeRobot/Hochob/.settings/com.intel.core.project.prefs b/Hochob/Sandbox/LupeRobot/Hochob/.settings/com.intel.core.project.prefs similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/com.intel.core.project.prefs rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/com.intel.core.project.prefs diff --git a/Hochob/LupeRobot/Hochob/.settings/com.intel.iotdevkit.packages.prefs b/Hochob/Sandbox/LupeRobot/Hochob/.settings/com.intel.iotdevkit.packages.prefs similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/com.intel.iotdevkit.packages.prefs rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/com.intel.iotdevkit.packages.prefs diff --git a/Hochob/LupeRobot/Hochob/.settings/language.settings.xml b/Hochob/Sandbox/LupeRobot/Hochob/.settings/language.settings.xml similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/language.settings.xml rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/language.settings.xml diff --git a/Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.codan.core.prefs b/Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.codan.core.prefs similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.codan.core.prefs rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.codan.core.prefs diff --git a/Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.core.prefs b/Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.core.prefs similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.core.prefs rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.core.prefs diff --git a/Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.managedbuilder.core.prefs b/Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.managedbuilder.core.prefs similarity index 100% rename from Hochob/LupeRobot/Hochob/.settings/org.eclipse.cdt.managedbuilder.core.prefs rename to Hochob/Sandbox/LupeRobot/Hochob/.settings/org.eclipse.cdt.managedbuilder.core.prefs diff --git a/Hochob/LupeRobot/Hochob/Debug/Hochob b/Hochob/Sandbox/LupeRobot/Hochob/Debug/Hochob similarity index 100% rename from Hochob/LupeRobot/Hochob/Debug/Hochob rename to Hochob/Sandbox/LupeRobot/Hochob/Debug/Hochob diff --git a/Hochob/LupeRobot/Hochob/Debug/src/Intel_Edison_BT_SPP.o b/Hochob/Sandbox/LupeRobot/Hochob/Debug/src/Intel_Edison_BT_SPP.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Debug/src/Intel_Edison_BT_SPP.o rename to Hochob/Sandbox/LupeRobot/Hochob/Debug/src/Intel_Edison_BT_SPP.o diff --git a/Hochob/LupeRobot/Hochob/Debug/src/SparkFun_TB6612_Edison.o b/Hochob/Sandbox/LupeRobot/Hochob/Debug/src/SparkFun_TB6612_Edison.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Debug/src/SparkFun_TB6612_Edison.o rename to Hochob/Sandbox/LupeRobot/Hochob/Debug/src/SparkFun_TB6612_Edison.o diff --git a/Hochob/LupeRobot/Hochob/Debug/src/SparkFun_pca9685_Edison.o b/Hochob/Sandbox/LupeRobot/Hochob/Debug/src/SparkFun_pca9685_Edison.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Debug/src/SparkFun_pca9685_Edison.o rename to Hochob/Sandbox/LupeRobot/Hochob/Debug/src/SparkFun_pca9685_Edison.o diff --git a/Hochob/LupeRobot/Hochob/Debug/src/blink.o b/Hochob/Sandbox/LupeRobot/Hochob/Debug/src/blink.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Debug/src/blink.o rename to Hochob/Sandbox/LupeRobot/Hochob/Debug/src/blink.o diff --git a/Hochob/LupeRobot/Hochob/Hochob.launch b/Hochob/Sandbox/LupeRobot/Hochob/Hochob.launch similarity index 100% rename from Hochob/LupeRobot/Hochob/Hochob.launch rename to Hochob/Sandbox/LupeRobot/Hochob/Hochob.launch diff --git a/Hochob/LupeRobot/Hochob/README.md b/Hochob/Sandbox/LupeRobot/Hochob/README.md similarity index 100% rename from Hochob/LupeRobot/Hochob/README.md rename to Hochob/Sandbox/LupeRobot/Hochob/README.md diff --git a/Hochob/Sandbox/LupeRobot/Hochob/Release/lupefinal.js b/Hochob/Sandbox/LupeRobot/Hochob/Release/lupefinal.js new file mode 100644 index 00000000..0fe556d6 --- /dev/null +++ b/Hochob/Sandbox/LupeRobot/Hochob/Release/lupefinal.js @@ -0,0 +1,171 @@ +const mqtt = require('mqtt') +const client = mqtt.connect('mqtt://iot.eclipse.org') + +var command = '' +//Actual Code// + +const exec = require('child_process').exec; + +client.on('connect', () => { + + client.subscribe('amikoo/leftup') + client.subscribe('amikoo/leftdown') + client.subscribe('amikoo/leftfold') + client.subscribe('amikoo/leftunfold') + client.subscribe('amikoo/moveleft') + client.subscribe('amikoo/headleft') + client.subscribe('amikoo/headright') + client.subscribe('amikoo/moveforward') + client.subscribe('amikoo/movestop') + client.subscribe('amikoo/movebackward') + client.subscribe('amikoo/rightup') + client.subscribe('amikoo/rightdown') + client.subscribe('amikoo/rightfold') + client.subscribe('amikoo/rightunfold') + client.subscribe('amikoo/moveright') + client.subscribe('amikoo/resetall') + client.subscribe('amikoo/bienvenida') + client.subscribe('amikoo/agradece') + client.subscribe('amikoo/dance') + client.subscribe('amikoo/creador') + client.subscribe('amikoo/norte') + + //Comandos de voz + client.subscribe('amikoo/inicial') + client.subscribe('amikoo/emocion') + client.subscribe('amikoo/porsupuesto') + client.subscribe('amikoo/cerebro') + client.subscribe('amikoo/inteledison') + + //Saber si amikoo esta conectada + client.publish('amikoo/connected', '1') + +}) + +client.on('message', (topic,message) => { + console.log('receive message %s %s', topic, message) + + switch(topic){ + case 'amikoo/leftup': + command = '00' + break; + case 'amikoo/inicial': + command = '40' + break; + case 'amikoo/emocion': + command = '41' + break; + case 'amikoo/porsupuesto': + command = '42' + break; + case 'amikoo/cerebro': + command = '43' + break; + case 'amikoo/inteledison': + command = '44' + break; + case 'amikoo/leftdown': + command = '20' + break; + case 'amikoo/leftfold': + command = '01' + break; + case 'amikoo/leftunfold': + command = '21' + break; + case 'amikoo/moveleft': + command = '02' + break; + case 'amikoo/headleft': + command = '04' + break; + case 'amikoo/headright': + command = '24' + break; + case 'amikoo/moveforward': + command = '05' + break; + case 'amikoo/movestop': + command = '06' + break; + case 'amikoo/movebackward': + command = '07' + break; + case 'amikoo/rightup' : + command = '08' + break; + case 'amikoo/rightdown': + command = '28' + break; + case 'amikoo/rightfold': + command = '09' + break; + case 'amikoo/rightunfold': + command = '29' + break; + case 'amikoo/moveright': + command = '10' + break; + case 'amikoo/resetall': + command = '11' + break; + case 'amikoo/bienvenida': + command = '80' + break; + case 'amikoo/agradece': + command = '81' + break; + case 'amikoo/dance': + command = '82' + break; + case 'amikoo/creador': + command = '83' + break; + case 'amikoo/norte': + command = '84' + break; + } + + accionLupe(command); + +}) + +function accionLupe(number){ + exec('./HochobAction ' + number, (e, stdout, stderr) =>{ + if(e instanceof Error){ + console.error(e); + throw e; + } + console.log('stdout ', stdout); + console.log('stderr ', stderr); + }); +} + +// Handler for exits // +function handleAppExit(options, err){ + if(err){ + console.log(err.stack) + } + + if(options.cleanup){ + client.publish('amikoo/connected', '0') + } + + if(options.exit){ + process.exit() + } +} + +// HANDLERS the differents ways an application can shutdown + +process.on('exit', handleAppExit.bind(null,{ + cleanup: true +})) + +process.on('SIGINT', handleAppExit.bind(null,{ + exit: true +})) + +process.on('uncaughtException', handleAppExit.bind(null,{ + exit: true +})) \ No newline at end of file diff --git a/Hochob/LupeRobot/Hochob/Release/music.wav b/Hochob/Sandbox/LupeRobot/Hochob/Release/music.wav similarity index 100% rename from Hochob/LupeRobot/Hochob/Release/music.wav rename to Hochob/Sandbox/LupeRobot/Hochob/Release/music.wav diff --git a/Hochob/LupeRobot/Hochob/Release/roboto_short.wav b/Hochob/Sandbox/LupeRobot/Hochob/Release/roboto_short.wav similarity index 100% rename from Hochob/LupeRobot/Hochob/Release/roboto_short.wav rename to Hochob/Sandbox/LupeRobot/Hochob/Release/roboto_short.wav diff --git a/Hochob/LupeRobot/Hochob/Release/src/SparkFun_TB6612_Edison.o b/Hochob/Sandbox/LupeRobot/Hochob/Release/src/SparkFun_TB6612_Edison.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Release/src/SparkFun_TB6612_Edison.o rename to Hochob/Sandbox/LupeRobot/Hochob/Release/src/SparkFun_TB6612_Edison.o diff --git a/Hochob/LupeRobot/Hochob/Release/src/SparkFun_pca9685_Edison.o b/Hochob/Sandbox/LupeRobot/Hochob/Release/src/SparkFun_pca9685_Edison.o similarity index 100% rename from Hochob/LupeRobot/Hochob/Release/src/SparkFun_pca9685_Edison.o rename to Hochob/Sandbox/LupeRobot/Hochob/Release/src/SparkFun_pca9685_Edison.o diff --git a/Hochob/LupeRobot/Hochob/src/bluetoothspp.cpp b/Hochob/Sandbox/LupeRobot/Hochob/src/bluetoothspp.cpp similarity index 100% rename from Hochob/LupeRobot/Hochob/src/bluetoothspp.cpp rename to Hochob/Sandbox/LupeRobot/Hochob/src/bluetoothspp.cpp diff --git a/Hochob/LupeRobot/Hochob/src/bluetoothspp.hpp b/Hochob/Sandbox/LupeRobot/Hochob/src/bluetoothspp.hpp similarity index 100% rename from Hochob/LupeRobot/Hochob/src/bluetoothspp.hpp rename to Hochob/Sandbox/LupeRobot/Hochob/src/bluetoothspp.hpp diff --git a/Hochob/LupeRobot/Hochob/src/cpp.json b/Hochob/Sandbox/LupeRobot/Hochob/src/cpp.json similarity index 100% rename from Hochob/LupeRobot/Hochob/src/cpp.json rename to Hochob/Sandbox/LupeRobot/Hochob/src/cpp.json diff --git a/Hochob/LupeRobot/Hochob/src/main.cpp b/Hochob/Sandbox/LupeRobot/Hochob/src/main.cpp similarity index 100% rename from Hochob/LupeRobot/Hochob/src/main.cpp rename to Hochob/Sandbox/LupeRobot/Hochob/src/main.cpp diff --git a/Hochob/LupeRobot/Hochob/src/pca9685.cpp b/Hochob/Sandbox/LupeRobot/Hochob/src/pca9685.cpp similarity index 100% rename from Hochob/LupeRobot/Hochob/src/pca9685.cpp rename to Hochob/Sandbox/LupeRobot/Hochob/src/pca9685.cpp diff --git a/Hochob/LupeRobot/Hochob/src/pca9685.h b/Hochob/Sandbox/LupeRobot/Hochob/src/pca9685.h similarity index 100% rename from Hochob/LupeRobot/Hochob/src/pca9685.h rename to Hochob/Sandbox/LupeRobot/Hochob/src/pca9685.h diff --git a/Hochob/LupeRobot/Hochob/src/tb6612.cpp b/Hochob/Sandbox/LupeRobot/Hochob/src/tb6612.cpp similarity index 100% rename from Hochob/LupeRobot/Hochob/src/tb6612.cpp rename to Hochob/Sandbox/LupeRobot/Hochob/src/tb6612.cpp diff --git a/Hochob/LupeRobot/Hochob/src/tb6612.h b/Hochob/Sandbox/LupeRobot/Hochob/src/tb6612.h similarity index 100% rename from Hochob/LupeRobot/Hochob/src/tb6612.h rename to Hochob/Sandbox/LupeRobot/Hochob/src/tb6612.h diff --git a/Hochob/LupeRobot/Learning/Presentation/Presentation.sh b/Hochob/Sandbox/LupeRobot/Learning/Presentation/Presentation.sh similarity index 100% rename from Hochob/LupeRobot/Learning/Presentation/Presentation.sh rename to Hochob/Sandbox/LupeRobot/Learning/Presentation/Presentation.sh diff --git a/Hochob/LupeRobot/Learning/Recognize/PyAudioPlay.py b/Hochob/Sandbox/LupeRobot/Learning/Recognize/PyAudioPlay.py similarity index 100% rename from Hochob/LupeRobot/Learning/Recognize/PyAudioPlay.py rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/PyAudioPlay.py diff --git a/Hochob/LupeRobot/Learning/Recognize/Recognize.sh b/Hochob/Sandbox/LupeRobot/Learning/Recognize/Recognize.sh similarity index 59% rename from Hochob/LupeRobot/Learning/Recognize/Recognize.sh rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/Recognize.sh index 6f1607cc..ff6d44ec 100755 --- a/Hochob/LupeRobot/Learning/Recognize/Recognize.sh +++ b/Hochob/Sandbox/LupeRobot/Learning/Recognize/Recognize.sh @@ -3,6 +3,6 @@ pacmd set-default-sink 0 #pacmd "set-default-source 3" -cd /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Recognize +cd /home/hochob/CodeLabs/Hochob/LupeAmikoo/Learning/Recognize python3 SrGoogleEs.py diff --git a/Hochob/LupeRobot/Learning/Recognize/SrGoogleEn.py b/Hochob/Sandbox/LupeRobot/Learning/Recognize/SrGoogleEn.py similarity index 100% rename from Hochob/LupeRobot/Learning/Recognize/SrGoogleEn.py rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/SrGoogleEn.py diff --git a/Hochob/LupeRobot/Learning/Recognize/SrGoogleEs.py b/Hochob/Sandbox/LupeRobot/Learning/Recognize/SrGoogleEs.py similarity index 100% rename from Hochob/LupeRobot/Learning/Recognize/SrGoogleEs.py rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/SrGoogleEs.py diff --git a/Hochob/LupeRobot/Learning/Recognize/__init__.py b/Hochob/Sandbox/LupeRobot/Learning/Recognize/__init__.py similarity index 100% rename from Hochob/LupeRobot/Learning/Recognize/__init__.py rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/__init__.py diff --git a/Hochob/LupeRobot/Learning/Recognize/beep.wav b/Hochob/Sandbox/LupeRobot/Learning/Recognize/beep.wav similarity index 100% rename from Hochob/LupeRobot/Learning/Recognize/beep.wav rename to Hochob/Sandbox/LupeRobot/Learning/Recognize/beep.wav diff --git a/Hochob/LupeRobot/Sandbox/SPP-loopback.py b/Hochob/Sandbox/LupeRobot/Sandbox/SPP-loopback.py similarity index 100% rename from Hochob/LupeRobot/Sandbox/SPP-loopback.py rename to Hochob/Sandbox/LupeRobot/Sandbox/SPP-loopback.py diff --git a/Hochob/LupeRobot/Sandbox/bluetoothlr.sh b/Hochob/Sandbox/LupeRobot/Sandbox/bluetoothlr.sh similarity index 71% rename from Hochob/LupeRobot/Sandbox/bluetoothlr.sh rename to Hochob/Sandbox/LupeRobot/Sandbox/bluetoothlr.sh index b97f88ea..d63b3da0 100755 --- a/Hochob/LupeRobot/Sandbox/bluetoothlr.sh +++ b/Hochob/Sandbox/LupeRobot/Sandbox/bluetoothlr.sh @@ -16,4 +16,4 @@ EOF sleep 3 -python /home/root/CodeLabs/Hochob/LupeRobot/bluetoothspp.py & +python /home/root/CodeLabs/Hochob/LupeAmikoo/bluetoothspp.py & diff --git a/Hochob/LupeRobot/Sandbox/bluetoothspp.py b/Hochob/Sandbox/LupeRobot/Sandbox/bluetoothspp.py similarity index 100% rename from Hochob/LupeRobot/Sandbox/bluetoothspp.py rename to Hochob/Sandbox/LupeRobot/Sandbox/bluetoothspp.py diff --git a/Hochob/LupeRobot/Sandbox/btup.sh b/Hochob/Sandbox/LupeRobot/Sandbox/btup.sh similarity index 100% rename from Hochob/LupeRobot/Sandbox/btup.sh rename to Hochob/Sandbox/LupeRobot/Sandbox/btup.sh diff --git a/Hochob/LupeRobot/Scripts/servicesoff.sh b/Hochob/Sandbox/LupeRobot/Scripts/servicesoff.sh similarity index 100% rename from Hochob/LupeRobot/Scripts/servicesoff.sh rename to Hochob/Sandbox/LupeRobot/Scripts/servicesoff.sh diff --git a/Hochob/LupeRobot/Scripts/serviceson.sh b/Hochob/Sandbox/LupeRobot/Scripts/serviceson.sh similarity index 100% rename from Hochob/LupeRobot/Scripts/serviceson.sh rename to Hochob/Sandbox/LupeRobot/Scripts/serviceson.sh diff --git a/Hochob/LupeRobot/Scripts/tts.sh b/Hochob/Sandbox/LupeRobot/Scripts/tts.sh similarity index 100% rename from Hochob/LupeRobot/Scripts/tts.sh rename to Hochob/Sandbox/LupeRobot/Scripts/tts.sh diff --git a/Hochob/LupeRobot/Show/LupeRobot.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot.sh similarity index 86% rename from Hochob/LupeRobot/Show/LupeRobot.sh rename to Hochob/Sandbox/LupeRobot/Show/LupeRobot.sh index fef49f59..cd42a733 100755 --- a/Hochob/LupeRobot/Show/LupeRobot.sh +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot.sh @@ -4,7 +4,7 @@ sleep 1 -sh /home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot01.sh & +sh /home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo01.sh & (sleep 8.5) && echo "Perdon! Lo se!, Es que me emociono" | espeak -v es-la -a 200 (sleep 3.0) && echo "Por supuesto" | espeak -v es-la -a 200 (sleep 38.5) && echo "En mi caso, mi cerebro esta esta ubicado en mi pecho, com pueden ver aqui!" | espeak -v es-la -a 200 diff --git a/Hochob/Sandbox/LupeRobot/Show/LupeRobot01.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot01.sh new file mode 100755 index 00000000..4e0765f4 --- /dev/null +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot01.sh @@ -0,0 +1,2 @@ +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/FinalIntroVideo.mp4 & +sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p.sh new file mode 100755 index 00000000..2a2cd60e --- /dev/null +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +set -x + +MQTTSERVER=localhost +MQTTPORT=1883 + +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Silencio.mp4 & +#(sleep 1) && echo "hola a todos" | espeak -v es-la -a 200 +(mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/inicial -m 1) && sleep 1.25 + +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Parte1_v3.mp4 & +#(sleep 7.5) && echo "Perdon! Lo se!, Es que me emociono" | espeak -v es-la -a 200 +sleep 6.35 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/emocion -m 1 && sleep 4 + +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Parte2_v2.mp4 & +##(sleep 3.5) && echo "Por supuesto" | espeak -v es-la -a 200 +sleep 2.7 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/porsupuesto -m 1 && sleep 2.5 + +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Parte3_v2.mp4 & +##(sleep 39.5) && echo "En mi caso, mi cerebro esta aqui, en la caja azul!" | espeak -v es-la -a 200 +sleep 37.5 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/cerebro -m 1 +sleep 2 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/rightup -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/leftup -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/rightfold -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/leftfold -m 1 +sleep 2 + +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Parte4_v2.mp4 & +##(sleep 26.5) && echo "Yo funciono con la plataforma Intel Edison" | espeak -v es-la -a 200 +sleep 25.5 && mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/inteledison -m 1 +sleep 3 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/rightdown -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/leftdown -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/rightunfold -m 1 +sleep .25 +mosquitto_pub -h $MQTTSERVER -p $MQTTPORT -q 1 -t amikoo/leftunfold -m 1 +sleep 2 + +cvlc --no-video-title-show --fullscreen --play-and-exit /home/hochob/LupeAmikoo/1080p/Parte5_v2.mp4 & +sleep 75 +sh /home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikooKill.sh + +# End Of File diff --git a/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p01.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p01.sh new file mode 100755 index 00000000..9ec39b8f --- /dev/null +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot1080p01.sh @@ -0,0 +1,2 @@ +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/1080p/Parte1_v2.mp4 & +sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/LupeRobot/Show/LupeRobot720p.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot720p.sh similarity index 51% rename from Hochob/LupeRobot/Show/LupeRobot720p.sh rename to Hochob/Sandbox/LupeRobot/Show/LupeRobot720p.sh index a97a2ba2..7da85a25 100755 --- a/Hochob/LupeRobot/Show/LupeRobot720p.sh +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot720p.sh @@ -4,15 +4,15 @@ sleep 1 -sh /home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot720p01.sh & +sh /home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo720p01.sh & (sleep 9.5) && echo "Perdon! Lo se!, Es que me emociono" | espeak -v es-la -a 200 -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/720p/Parte2_v2.mp4 & +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/720p/Parte2_v2.mp4 & (sleep 3.5) && echo "Por supuesto" | espeak -v es-la -a 200 -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/720p/Parte3_v2.mp4 & +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/720p/Parte3_v2.mp4 & (sleep 39.2) && echo "En mi caso, mi cerebro esta esta ubicado en mi pecho, com pueden ver aqui!" | espeak -v es-la -a 200 -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/720p/Parte4_v2.mp4 & +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/720p/Parte4_v2.mp4 & (sleep 26.5) && echo "Yo funciono con la plataforma Intel Edison" | espeak -v es-la -a 200 -cvlc --no-video-title-show --fullscreen /home/hochob/LupeRobot/720p/Parte5_v2.mp4 +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/720p/Parte5_v2.mp4 pkill vlc diff --git a/Hochob/Sandbox/LupeRobot/Show/LupeRobot720p01.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobot720p01.sh new file mode 100755 index 00000000..bd085cc6 --- /dev/null +++ b/Hochob/Sandbox/LupeRobot/Show/LupeRobot720p01.sh @@ -0,0 +1,2 @@ +cvlc --no-video-title-show --fullscreen /home/hochob/LupeAmikoo/720p/Parte1_v2.mp4 & +sleep 0.6 && echo hola a todos | espeak -v es-la -a 200 diff --git a/Hochob/LupeRobot/Show/LupeRobotKill.sh b/Hochob/Sandbox/LupeRobot/Show/LupeRobotKill.sh similarity index 100% rename from Hochob/LupeRobot/Show/LupeRobotKill.sh rename to Hochob/Sandbox/LupeRobot/Show/LupeRobotKill.sh diff --git a/Hochob/Sandbox/LupeRobot/Virtual/audio.wav b/Hochob/Sandbox/LupeRobot/Virtual/audio.wav new file mode 100644 index 00000000..38627567 Binary files /dev/null and b/Hochob/Sandbox/LupeRobot/Virtual/audio.wav differ diff --git a/Hochob/LupeRobot/Virtual/command.js b/Hochob/Sandbox/LupeRobot/Virtual/command.js similarity index 100% rename from Hochob/LupeRobot/Virtual/command.js rename to Hochob/Sandbox/LupeRobot/Virtual/command.js diff --git a/Hochob/LupeRobot/Virtual/ispeak.js b/Hochob/Sandbox/LupeRobot/Virtual/ispeak.js similarity index 100% rename from Hochob/LupeRobot/Virtual/ispeak.js rename to Hochob/Sandbox/LupeRobot/Virtual/ispeak.js diff --git a/Hochob/Usb/wiusb.sh b/Hochob/Sandbox/Usb/wiusb.sh similarity index 100% rename from Hochob/Usb/wiusb.sh rename to Hochob/Sandbox/Usb/wiusb.sh diff --git a/Hochob/Usb/wiusb0.sh b/Hochob/Sandbox/Usb/wiusb0.sh similarity index 100% rename from Hochob/Usb/wiusb0.sh rename to Hochob/Sandbox/Usb/wiusb0.sh diff --git a/Hochob/Services/Amikoo/AmikooAvailable.sh b/Hochob/Services/Amikoo/AmikooAvailable.sh new file mode 100755 index 00000000..c3060466 --- /dev/null +++ b/Hochob/Services/Amikoo/AmikooAvailable.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +#. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOAVAILABLE_PID=$$ + +LOCAL_COMMAND="$1" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ -z "$1" ] +then + cat $HOCHOB_SERVER_CONFIGURATION_AMIKOOAVAILABLE +else + echo $LOCAL_COMMAND > $HOCHOB_SERVER_CONFIGURATION_AMIKOOAVAILABLE +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Remote/Amikoo.sh b/Hochob/Services/Amikoo/Remote/Amikoo.sh new file mode 100755 index 00000000..94eb57f1 --- /dev/null +++ b/Hochob/Services/Amikoo/Remote/Amikoo.sh @@ -0,0 +1,75 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOO_PID=$$ + +LOCAL_COMMAND="$1" +LOCAL_MESSAGE="" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +i=0 +for var in "$@" +do + if [ "$i" -ne 0 ]; then + LOCAL_MESSAGE=$LOCAL_MESSAGE"$var" + echo $LOCAL_MESSAGE + fi + i=`expr $i + 1` +done + +echo $LOCAL_MESSAGE + +# Skills Advanced + +if [ "$LOCAL_COMMAND" = "gcvisionapi" ]; then + Mosquitto.sh $AMIKOO_GCVISIONAPI "Google Cloud Vision API" +elif [ "$LOCAL_COMMAND" = "gctranslationapi" ]; then + Mosquitto.sh $AMIKOO_GCTRANSLATIONAPI "Google Cloud Translation API" +fi + +# Movement + +Mosquitto.sh $LOCAL_COMMAND $LOCAL_MESSAGE + +exit 0 + +# Sandbox + +LOCAL_DEMO=`Demo.sh` +if [ "$LOCAL_DEMO" -eq "1" ]; then + if [ "$LOCAL_MESSAGE" != "1" ] + then + Espeak.sh on spanish "$LOCAL_MESSAGE" + fi +else + Mosquitto.sh $LOCAL_COMMAND "$LOCAL_MESSAGE" +fi + +if [ "$LOCAL_COMMAND" = "lupe/message" ]; then + LOCAL_LANGUAGE=`Language.sh` + if [ "$LOCAL_LANGUAGE" = "english" ]; then + AmikooVoice.sh $LOCAL_LANGUAGE $LOCAL_MESSAGE + else + AmikooVoice.sh $LOCAL_LANGUAGE $LOCAL_MESSAGE + fi +else + Mosquitto.sh $LOCAL_COMMAND $LOCAL_MESSAGE +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh b/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh new file mode 100755 index 00000000..74d70346 --- /dev/null +++ b/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOCOMMUNICATION_PID=$$ + +LOCAL_TRADITION="$1" +LOCAL_SKILL="$2" +LOCAL_ARGUMENT="$3" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_SKILL" = "Audio" ]; then + LOCAL_SKILL=$AMIKOO_AUDIO +elif [ "$LOCAL_SKILL" = "Image" ]; then + LOCAL_SKILL=$AMIKOO_IMAGE +elif [ "$LOCAL_SKILL" = "Video" ]; then + LOCAL_SKILL=$AMIKOO_VIDEO +fi + +if [ "$LOCAL_ARGUMENT" = "Stop" ]; then + Mosquitto.sh $LOCAL_SKILL "$LOCAL_TRADITION/Stop" +elif [ "$LOCAL_ARGUMENT" = "Random" ]; then + Mosquitto.sh $LOCAL_SKILL "$LOCAL_TRADITION/Random" +else + Mosquitto.sh $LOCAL_SKILL "$LOCAL_TRADITION/$LOCAL_ARGUMENT" +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh b/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh new file mode 100755 index 00000000..d3faf944 --- /dev/null +++ b/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOEXPERTISE_PID=$$ + +LOCAL_COMMAND="$1" +LOCAL_MESSAGE="$2" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_COMMAND" = "gcvisionapi" ]; then + Mosquitto.sh $AMIKOO_GCVISIONAPI "Google Cloud Vision API" +elif [ "$LOCAL_COMMAND" = "gctranslationapi" ]; then + Mosquitto.sh $AMIKOO_GCTRANSLATIONAPI "Google Cloud Translation API" +elif [ "$LOCAL_COMMAND" = "amazonalexa" ]; then + Mosquitto.sh $AMIKOO_AMAZONALEXA $LOCAL_MESSAGE +elif [ "$LOCAL_COMMAND" = "googleassistant" ]; then + Mosquitto.sh $AMIKOO_GOOGLEASSISTANT $LOCAL_MESSAGE +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Remote/AmikooSense.sh b/Hochob/Services/Amikoo/Remote/AmikooSense.sh new file mode 100755 index 00000000..4000c8b9 --- /dev/null +++ b/Hochob/Services/Amikoo/Remote/AmikooSense.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOSENSE_PID=$$ + +LOCAL_SENSE="$1" +LOCAL_COMMAND="$2" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ "$LOCAL_SENSE" = "Sight" ]; then + if [ "$LOCAL_COMMAND" = "Picture" ]; then + Mosquitto.sh $AMIKOO_PICTURE "Sense Sight Picture" + fi +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Remote/AmikooVoice.sh b/Hochob/Services/Amikoo/Remote/AmikooVoice.sh new file mode 100755 index 00000000..ed8566e8 --- /dev/null +++ b/Hochob/Services/Amikoo/Remote/AmikooVoice.sh @@ -0,0 +1,54 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOVOICE_PID=$$ + +LOCAL_LANGUAGE="$1" +LOCAL_MESSAGE="" +LOCAL_TOPIC="" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +i=0 +for var in "$@" +do + if [ "$i" -ne 0 ]; then + LOCAL_MESSAGE=$LOCAL_MESSAGE"$var" + echo $LOCAL_MESSAGE + fi + i=`expr $i + 1` +done + +if [ "$LOCAL_LANGUAGE" = "english" ]; then + LOCAL_TOPIC=$AMIKOO_TALK +elif [ "$LOCAL_LANGUAGE" = "spanish" ]; then + LOCAL_TOPIC=$AMIKOO_HABLAR +fi + +Mosquitto.sh $LOCAL_TOPIC $LOCAL_MESSAGE + +exit 0 + +LOCAL_DEMO=`Demo.sh` +if [ "$LOCAL_DEMO" -eq "1" ]; then + if [ "$LOCAL_MESSAGE" != "1" ] + then + Espeak.sh on spanish "$LOCAL_MESSAGE" + fi +fi + diff --git a/Hochob/Services/Amikoo/RobotAvailable.sh b/Hochob/Services/Amikoo/RobotAvailable.sh new file mode 100755 index 00000000..f670a347 --- /dev/null +++ b/Hochob/Services/Amikoo/RobotAvailable.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +#. ~/CodeLabs/Hochob/Main.sh + +export ROBOTAVAILABLE_PID=$$ + +LOCAL_COMMAND="$1" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ -z "$1" ] +then + cat $HOCHOB_SERVER_CONFIGURATION_ROBOTAVAILABLE +else + echo $LOCAL_COMMAND > $HOCHOB_SERVER_CONFIGURATION_ROBOTAVAILABLE +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Virtual/AmikooVirtual.js b/Hochob/Services/Amikoo/Virtual/AmikooVirtual.js new file mode 100755 index 00000000..ebf2a62a --- /dev/null +++ b/Hochob/Services/Amikoo/Virtual/AmikooVirtual.js @@ -0,0 +1,221 @@ +const mqtt = require('mqtt') +//const client = mqtt.connect('mqtt://127.0.0.1') +//const client = mqtt.connect('mqtt://10.215.56.158') +const client = mqtt.connect('mqtt://iot.eclipse.org') + +var sys = require('sys') +var exec = require('child_process').exec; + +function puts(error, stdout, stderr) { sys.puts(stdout) } + +function espeakDecir(phrase) { + var sleep = require('sleep') + exec("echo " + phrase + " | espeak -v es-la -a 200 -p 50 -s 170 -w audio.wav", puts); + sleep.msleep(500); + exec("aplay audio.wav", puts); + sendAck() +} + +function espeakSay(phrase) { + var sleep = require('sleep') + exec("echo " + phrase + " | espeak -v en-us -a 200 -p 50 -s 170 -w audio.wav", puts); + sleep.msleep(500); + exec("aplay audio.wav", puts); + sendAck() +} + +var state = 'closed' + +client.on('connect', function () { + client.subscribe('amikoo/#') + client.subscribe('amikoo/open') + client.subscribe('amikoo/close') + client.subscribe('amikoo/sound/speechsynthetizer/say') + client.subscribe('amikoo/sound/speechsynthetizer/decir') + + client.subscribe('amikoo/resetall') + client.subscribe('amikoo/headleft') + client.subscribe('amikoo/headright') + + client.subscribe('amikoo/leftup') + client.subscribe('amikoo/leftdown') + client.subscribe('amikoo/leftfold') + client.subscribe('amikoo/leftunfold') + + client.subscribe('amikoo/rightup') + client.subscribe('amikoo/rightdown') + client.subscribe('amikoo/rightfold') + client.subscribe('amikoo/rightunfold') + + client.subscribe('amikoo/moveleft') + client.subscribe('amikoo/moveright') + client.subscribe('amikoo/moveforward') + client.subscribe('amikoo/movebackward') + client.subscribe('amikoo/movestop') + + client.subscribe('amikoo/bienvenida') + client.subscribe('amikoo/agradece') + client.subscribe('amikoo/dance') + client.subscribe('amikoo/creador') + client.subscribe('amikoo/norte') + + client.subscribe('amikoo/inicial') + client.subscribe('amikoo/emocion') + client.subscribe('amikoo/porsupuesto') + client.subscribe('amikoo/cerebro') + client.subscribe('amikoo/inteledison') + + client.publish('amikoo/connected', 'true') + sendStateUpdate() +}) + +client.on('message', function (topic, message) { + console.log('Received message %s %s', topic, message) + switch (topic) { + case 'amikoo/open': + return handleRequestOpen(message) + case 'amikoo/close': + return handleRequestClose(message) + case 'amikoo/sound/speechsynthetizer/decir': + return handleRequestDecir(message) + case 'amikoo/sound/speechsynthetizer/say': + return handleRequestSay(message) + + case 'amikoo/resetall': + return handleLupe('Inicializacion') + case 'amikoo/headleft': + return handleLupe('Cabeza Izquierda') + case 'amikoo/headright': + return handleLupe('Cabeza Derecha') + + case 'amikoo/leftup': + return handleLupe('Mano Izquierda Arriba') + case 'amikoo/leftdown': + return handleLupe('Mano Izquierda Abajo') + case 'amikoo/leftfold': + return handleLupe('Codo Izquierdo Doblar') + case 'amikoo/leftunfold': + return handleLupe('Codo Izquierdo Desdoblar') + + case 'amikoo/rightup': + return handleLupe('Mano Derecha Arriba') + case 'amikoo/rightdown': + return handleLupe('Mano Derecha Abajo') + case 'amikoo/rightfold': + return handleLupe('Codo Derecho Doblar') + case 'amikoo/rightunfold': + return handleLupe('Code Derecho Desdoblar') + + case 'amikoo/moveleft': + return handleLupe('Mover Izquierda') + case 'amikoo/moveright': + return handleLupe('Mover Derecha') + case 'amikoo/moveforward': + return handleLupe('Mover Adelante') + case 'amikoo/movebackward': + return handleLupe('Mover Atras') + case 'amikoo/movestop': + return handleLupe('Mover Alto') + + case 'amikoo/bienvenida': + return handleLupe('Bienvenido') + case 'amikoo/agradece': + return handleLupe('Gracias') + case 'amikoo/dance': + return handleLupe('Bailar') + case 'amikoo/creador': + return handleLupe('Creador') + case 'amikoo/norte': + return handleLupe('Norte') + + case 'amikoo/inicial': + return handleSpeakLupe('Hola a todos!') + case 'amikoo/emocion': + return handleSpeakLupe('Perdon! Lo se!, Es que me emociono!') + case 'amikoo/porsupuesto': + return handleSpeakLupe('Por supuesto') + case 'amikoo/cerebro': + return handleSpeakLupe('En mi caso, mi cerebro esta aqui, en la caja azul!') + case 'amikoo/inteledison': + return handleSpeakLupe('Yo funciono con la plataforma Intel Edison') + + } +}) + +function sendStateUpdate () { + console.log('Sending state %s', state) + client.publish('amikoo/state', state) +} + +function sendAck () { + console.log('Sending Ack %s', '1') + client.publish('amikoo/ack', '1') +} + +function handleRequestOpen (message) { + if (state !== 'open' && state !== 'opening') { + console.log('Opening Lupe') + state = 'opening' + espeak('Opening') + sendStateUpdate() + + setTimeout(function (){ + state = 'open' + sendStateUpdate() + }, 5000) + } +} + +function handleRequestClose (message) { + if (state !== 'closed' && state !== 'closing') { + state = 'closing' + + espeak('Closing') + sendStateUpdate() + + setTimeout(function () { + state = 'closed' + sendStateUpdate() + }, 5000) + } +} + +function handleRequestDecir (message) { + espeakDecir(message) +} + +function handleRequestSay (message) { + espeakSay(message) +} + +function handleLupe (message) { + console.log('Action %s', message) +} + +function handleSpeakLupe (message) { + espeak(message) +} + +function handleAppExit (options, err) { + if (err) { + console.log(err.stack) + } + + if (options.cleanup) { + client.publish('amikoo/connected', 'false') + } + + if (options.exit) { + process.exit() + } +} + +process.on('exit', handleAppExit.bind(null, { + cleanup: true +})) +process.on('SIGINT', handleAppExit.bind(null, { + exit: true +})) +process.on('uncaughtException', handleAppExit.bind(null, { + exit: true +})) diff --git a/Hochob/Services/Amikoo/Virtual/AmikooVirtual.sh b/Hochob/Services/Amikoo/Virtual/AmikooVirtual.sh new file mode 100755 index 00000000..82a9757e --- /dev/null +++ b/Hochob/Services/Amikoo/Virtual/AmikooVirtual.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export AMIKOOVIRTUAL_PID=$$ + +LOCAL_MESSAGE="$1" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +if [ $# -eq 1 ] +then + Espeak.sh "on" "spanish" "$LOCAL_MESSAGE" +else + echo "Invalid number of arguments, see Documentation" + exit 1 +fi + +# End of File diff --git a/Hochob/Services/Amikoo/Virtual/AmikooVirtualDaemon.sh b/Hochob/Services/Amikoo/Virtual/AmikooVirtualDaemon.sh new file mode 100755 index 00000000..edccda8d --- /dev/null +++ b/Hochob/Services/Amikoo/Virtual/AmikooVirtualDaemon.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -x + +#pacmd set-default-sink 0 +#pacmd set-default-source 3 + +node AmikooVirtual.js + +# End Of File diff --git a/Hochob/LupeRobot/Virtual/testing.sh b/Hochob/Services/Amikoo/Virtual/AmikooVirtualTesting.sh similarity index 97% rename from Hochob/LupeRobot/Virtual/testing.sh rename to Hochob/Services/Amikoo/Virtual/AmikooVirtualTesting.sh index c1974824..fb0fdf23 100755 --- a/Hochob/LupeRobot/Virtual/testing.sh +++ b/Hochob/Services/Amikoo/Virtual/AmikooVirtualTesting.sh @@ -32,7 +32,7 @@ do rand=$[$RANDOM % 21] action=`echo ${array[$rand]}` - device="lupe/" + device="amikoo/" topic=$device$action diff --git a/Hochob/HomeAssistant/configuration.yaml b/Hochob/Services/Automation/HomeAssistant/configuration.yaml similarity index 82% rename from Hochob/HomeAssistant/configuration.yaml rename to Hochob/Services/Automation/HomeAssistant/configuration.yaml index 3c2f889a..3c2b2f7f 100644 --- a/Hochob/HomeAssistant/configuration.yaml +++ b/Hochob/Services/Automation/HomeAssistant/configuration.yaml @@ -24,10 +24,10 @@ homeassistant: script.audiosectiontwo: friendly_name: 2.1 Antes del video icon: mdi:audiobook - switch.luperobot: + switch.amikoorobot: friendly_name: 2.2 Video icon: mdi:video - script.luperobot: + script.amikoorobot: friendly_name: 2.3 Lupe robot icon: mdi:human-greeting script.audiosectionthree: @@ -52,7 +52,7 @@ homeassistant: friendly_name: Visitor Center Needs Technical Help icon: mdi:block-helper - # Lupe Robot + # Lupe Amikoo switch.leftup: friendly_name: Up @@ -177,7 +177,7 @@ homeassistant: # Support : Lupe - script.luperecognize: + script.amikoorecognize: friendly_name: Recognize Speech icon: mdi:microphone @@ -197,9 +197,9 @@ homeassistant: media_player.main: hidden: yes - automation.lupe_robot_text_to_speech: + automation.amikoo_robot_text_to_speech: hidden: yes - automation.lupe_robot_telegram: + automation.amikoo_robot_telegram: hidden: yes # Show links to resources in log and frontend @@ -263,8 +263,8 @@ mqtt: keepalive: 60 script: - luperobot: - alias: Lupe Robot + amikoorobot: + alias: Lupe Amikoo sequence: - alias: Bienvenidos a Intel Guadalajara service: tts.google_say @@ -381,29 +381,29 @@ script: # Lupe Center - lupevirtualstart: + amikoovirtualstart: alias: Lupe Virtual Start sequence: - alias: Lupe Virtual Start - service: shell_command.lupevirtualstart - lupevirtualstop: + service: shell_command.amikoovirtualstart + amikoovirtualstop: alias: Lupe Virtual Stop sequence: - alias: Lupe Virtual Stop - service: shell_command.lupevirtualstop + service: shell_command.amikoovirtualstop - lupepresentation: + amikoopresentation: alias: Lupe Presentation sequence: - alias: Presentation - service: shell_command.lupepresentation - luperecognize: + service: shell_command.amikoopresentation + amikoorecognize: alias: Lupe Recognize sequence: - alias: Recognize Speech - service: shell_command.luperecognize + service: shell_command.amikoorecognize - lupe_arm_left: + amikoo_arm_left: alias: Lupe Arm Left sequence: - alias: Lupe Arm Up @@ -411,7 +411,7 @@ script: data: message: "Lupe Moviendo Brazo Izquierdo" language: 'es' - lupe_arm_right: + amikoo_arm_right: alias: Lupe Arm Right sequence: - alias: Lupe Arm Right @@ -419,7 +419,7 @@ script: data: message: "Lupe Moviendo Brazo Derecho" language: 'es' - lupe_dance: + amikoo_dance: alias: Lupe Dance sequence: - alias: Lupe Dance @@ -431,8 +431,8 @@ script: shell_command: restart_ha: sudo systemctl restart home-assistant.service & photography: python /home/hochob/CodeLabs/Hochob/Photography/selfie.py & - lupepresentation: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Presentation/Presentation.sh & - luperecognize: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Recognize/Recognize.sh & + amikoopresentation: /home/hochob/CodeLabs/Hochob/LupeAmikoo/Learning/Presentation/Presentation.sh & + amikoorecognize: /home/hochob/CodeLabs/Hochob/LupeAmikoo/Learning/Recognize/Recognize.sh & audiosectionone: bash /home/hochob/CodeLabs/Hochob/Audio/Section01.sh & audiosectiontwo: bash /home/hochob/CodeLabs/Hochob/Audio/Section02.sh & audiosectionthree: bash /home/hochob/CodeLabs/Hochob/Audio/Section03.sh & @@ -451,18 +451,18 @@ shell_command: audiostopeek: bash /home/hochob/CodeLabs/Hochob/Audio/Stop.sh "Eek'" & audiopauseeek: bash /home/hochob/CodeLabs/Hochob/Audio/Pause.sh "Eek'" & audioplayeek: bash /home/hochob/CodeLabs/Hochob/Audio/Play.sh "Eek'" & - lupevirtualstart: bash /home/hochob/CodeLabs/Hochob/LupeRobot/Virtual/amikoo.sh & - lupevirtualstop: pkill node & + amikoovirtualstart: bash /home/hochob/CodeLabs/Hochob/LupeAmikoo/Virtual/amikoo.sh & + amikoovirtualstop: pkill node & switch: - platform: command_line switches: - luperobot: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot1080p.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" - lupecomplete: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" + amikoorobot: + command_on: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo1080p.sh &" + command_off: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikooKill.sh" + amikoocomplete: + command_on: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo.sh &" + command_off: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikooKill.sh" camerapreview: command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0 &" command_off: "pkill -9 vlc" @@ -484,8 +484,8 @@ switch: switch 00: - platform: mqtt name: leftup - command_topic: "lupe/leftup" - state_topic: "lupe/leftup/state" + command_topic: "amikoo/leftup" + state_topic: "amikoo/leftup/state" payload_on: 1 payload_off: 0 qos: 1 @@ -493,8 +493,8 @@ switch 00: switch 01: - platform: mqtt name: leftdown - command_topic: "lupe/leftdown" - state_topic: "lupe/leftdown/state" + command_topic: "amikoo/leftdown" + state_topic: "amikoo/leftdown/state" payload_on: 1 payload_off: 0 qos: 1 @@ -502,8 +502,8 @@ switch 01: switch 02: - platform: mqtt name: leftfold - command_topic: "lupe/leftfold" - state_topic: "lupe/leftfold/state" + command_topic: "amikoo/leftfold" + state_topic: "amikoo/leftfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -511,8 +511,8 @@ switch 02: switch 03: - platform: mqtt name: leftunfold - command_topic: "lupe/leftunfold" - state_topic: "lupe/leftunfold/state" + command_topic: "amikoo/leftunfold" + state_topic: "amikoo/leftunfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -520,8 +520,8 @@ switch 03: switch 04: - platform: mqtt name: rightup - command_topic: "lupe/rightup" - state_topic: "lupe/rightup/state" + command_topic: "amikoo/rightup" + state_topic: "amikoo/rightup/state" payload_on: 1 payload_off: 0 qos: 1 @@ -529,8 +529,8 @@ switch 04: switch 05: - platform: mqtt name: rightdown - command_topic: "lupe/rightdown" - state_topic: "lupe/rightdown/state" + command_topic: "amikoo/rightdown" + state_topic: "amikoo/rightdown/state" payload_on: 1 payload_off: 0 qos: 1 @@ -538,8 +538,8 @@ switch 05: switch 06: - platform: mqtt name: rightfold - command_topic: "lupe/rightfold" - state_topic: "lupe/rightfold/state" + command_topic: "amikoo/rightfold" + state_topic: "amikoo/rightfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -547,8 +547,8 @@ switch 06: switch 07: - platform: mqtt name: rightunfold - command_topic: "lupe/rightunfold" - state_topic: "lupe/rightunfold/state" + command_topic: "amikoo/rightunfold" + state_topic: "amikoo/rightunfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -556,8 +556,8 @@ switch 07: switch 08: - platform: mqtt name: moveleft - command_topic: "lupe/moveleft" - state_topic: "lupe/moveleft/state" + command_topic: "amikoo/moveleft" + state_topic: "amikoo/moveleft/state" payload_on: 1 payload_off: 0 qos: 1 @@ -565,8 +565,8 @@ switch 08: switch 09: - platform: mqtt name: moveright - command_topic: "lupe/moveright" - state_topic: "lupe/moveright/state" + command_topic: "amikoo/moveright" + state_topic: "amikoo/moveright/state" payload_on: 1 payload_off: 0 qos: 1 @@ -574,8 +574,8 @@ switch 09: switch 10: - platform: mqtt name: moveforward - command_topic: "lupe/moveforward" - state_topic: "lupe/moveforward/state" + command_topic: "amikoo/moveforward" + state_topic: "amikoo/moveforward/state" payload_on: 1 payload_off: 0 qos: 1 @@ -583,8 +583,8 @@ switch 10: switch 11: - platform: mqtt name: movebackward - command_topic: "lupe/movebackward" - state_topic: "lupe/movebackward/state" + command_topic: "amikoo/movebackward" + state_topic: "amikoo/movebackward/state" payload_on: 1 payload_off: 0 qos: 1 @@ -592,8 +592,8 @@ switch 11: switch 12: - platform: mqtt name: movestop - command_topic: "lupe/movestop" - state_topic: "lupe/movestop/state" + command_topic: "amikoo/movestop" + state_topic: "amikoo/movestop/state" payload_on: 1 payload_off: 0 qos: 1 @@ -601,8 +601,8 @@ switch 12: switch 13: - platform: mqtt name: headleft - command_topic: "lupe/headleft" - state_topic: "lupe/headleft/state" + command_topic: "amikoo/headleft" + state_topic: "amikoo/headleft/state" payload_on: 1 payload_off: 0 qos: 1 @@ -610,8 +610,8 @@ switch 13: switch 14: - platform: mqtt name: headright - command_topic: "lupe/headright" - state_topic: "lupe/headright/state" + command_topic: "amikoo/headright" + state_topic: "amikoo/headright/state" payload_on: 1 payload_off: 0 qos: 1 @@ -619,8 +619,8 @@ switch 14: switch 15: - platform: mqtt name: resetall - command_topic: "lupe/resetall" - state_topic: "lupe/resetall/state" + command_topic: "amikoo/resetall" + state_topic: "amikoo/resetall/state" payload_on: 1 payload_off: 0 qos: 1 @@ -628,8 +628,8 @@ switch 15: switch 16: - platform: mqtt name: bienvenida - command_topic: "lupe/bienvenida" - state_topic: "lupe/bienvenida/state" + command_topic: "amikoo/bienvenida" + state_topic: "amikoo/bienvenida/state" payload_on: 1 payload_off: 0 qos: 1 @@ -637,8 +637,8 @@ switch 16: switch 17: - platform: mqtt name: agradece - command_topic: "lupe/agradece" - state_topic: "lupe/agradece/state" + command_topic: "amikoo/agradece" + state_topic: "amikoo/agradece/state" payload_on: 1 payload_off: 0 qos: 1 @@ -646,8 +646,8 @@ switch 17: switch 18: - platform: mqtt name: dance - command_topic: "lupe/dance" - state_topic: "lupe/dance/state" + command_topic: "amikoo/dance" + state_topic: "amikoo/dance/state" payload_on: 1 payload_off: 0 qos: 1 @@ -655,8 +655,8 @@ switch 18: switch 19: - platform: mqtt name: creador - command_topic: "lupe/creador" - state_topic: "lupe/creador/state" + command_topic: "amikoo/creador" + state_topic: "amikoo/creador/state" payload_on: 1 payload_off: 0 qos: 1 @@ -664,8 +664,8 @@ switch 19: switch 20: - platform: mqtt name: norte - command_topic: "lupe/norte" - state_topic: "lupe/norte/state" + command_topic: "amikoo/norte" + state_topic: "amikoo/norte/state" payload_on: 1 payload_off: 0 qos: 1 @@ -693,27 +693,27 @@ light: platform: hue automation: -# - alias: Lupe Robot Text To Speech +# - alias: Lupe Amikoo Text To Speech # hide_entity: True # trigger: # platform: state -# entity_id: switch.lupe +# entity_id: switch.amikoo # state: 'on' # action: # service: tts.google_say # data: -# message: "Bienvenido Robot Lupe" +# message: "Bienvenido Amikoo Lupe" # language: 'es' - - alias: Lupe Robot Telegram + - alias: Lupe Amikoo Telegram #hide_entity: True trigger: platform: state - entity_id: switch.lupe + entity_id: switch.amikoo state: 'on' action: service: notify.telegram data: - message: "Lupe Robot Station has been activated" + message: "Lupe Amikoo Station has been activated" group: @@ -727,16 +727,16 @@ group: # Views - lupeview: + amikooview: view: yes - name: Lupe Robot + name: Lupe Amikoo entities: - - group.lupearmleft - - group.lupearmright - - group.lupelegs - - group.lupehead - - group.lupeactivities - - group.lupediagnostics + - group.amikooarmleft + - group.amikooarmright + - group.amikoolegs + - group.amikoohead + - group.amikooactivities + - group.amikoodiagnostics beginningview: view: yes @@ -756,8 +756,8 @@ group: view: yes name: Support entities: - - group.lupevirtual - - group.lupeskills + - group.amikoovirtual + - group.amikooskills - group.camera # Groups : Default @@ -771,10 +771,10 @@ group: name: 2 Video entities: - script.audiosectiontwo - - switch.luperobot - - script.luperobot + - switch.amikoorobot + - script.amikoorobot - script.audiosectionthree - #- switch.lupecomplete + #- switch.amikoocomplete photography: name: Photography @@ -788,9 +788,9 @@ group: entities: - script.help - # Groups : Lupe Robot + # Groups : Lupe Amikoo - lupeactivities: + amikooactivities: name: Activities entities: - switch.bienvenida @@ -799,7 +799,7 @@ group: - switch.creador - switch.norte - lupearmleft: + amikooarmleft: name: Arm Left entities: - switch.leftup @@ -807,7 +807,7 @@ group: - switch.leftfold - switch.leftunfold - lupearmright: + amikooarmright: name: Arm Right entities: - switch.rightup @@ -815,7 +815,7 @@ group: - switch.rightfold - switch.rightunfold - lupelegs: + amikoolegs: name: Legs entities: - switch.moveleft @@ -824,13 +824,13 @@ group: - switch.movebackward - switch.movestop - lupehead: + amikoohead: name: Head entities: - switch.headleft - switch.headright - lupediagnostics: + amikoodiagnostics: name: Diagnostics entities: - switch.resetall @@ -872,16 +872,16 @@ group: # Groups : Support - lupevirtual: + amikoovirtual: name: Lupe Virtual entities: - - script.lupevirtualstart - - script.lupevirtualstop + - script.amikoovirtualstart + - script.amikoovirtualstop - lupeskills: + amikooskills: name: Lupe Skills entities: - - script.luperecognize + - script.amikoorecognize camera: name: Camera diff --git a/Hochob/HomeAssistant/configuration.yaml.backup b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.1.0 similarity index 72% rename from Hochob/HomeAssistant/configuration.yaml.backup rename to Hochob/Services/Automation/HomeAssistant/configuration.yaml.1.0 index 4909968e..31858f97 100644 --- a/Hochob/HomeAssistant/configuration.yaml.backup +++ b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.1.0 @@ -12,37 +12,47 @@ homeassistant: time_zone: America/Mexico_City customize: - # Home : Welcome + # Home : 1 Introduccion script.audiosectionone: - friendly_name: Bienvenida y Protocolo de Seguridad + friendly_name: 1.1 Bienvenida y Protocolo de Seguridad icon: mdi:audiobook + + + # Home : 2 Video + script.audiosectiontwo: - friendly_name: Antes del Video + friendly_name: 2.1 Antes del video icon: mdi:audiobook - switch.luperobot: - friendly_name: Video + switch.amikoorobot: + friendly_name: 2.2 Video icon: mdi:video - script.luperobot: - friendly_name: Lupe Robot + script.amikoorobot: + friendly_name: 2.3 Lupe robot icon: mdi:human-greeting script.audiosectionthree: - friendly_name: Despues del Video + friendly_name: 2.4 Despues del video icon: mdi:audiobook - # Home : Photography + # Home : 3 Fotografia script.photography: - friendly_name: Photography Record + friendly_name: Grabacion de fotografia + icon: mdi:camera + switch.imagescorporate: + friendly_name: Imagenes corporativas + icon: mdi:camera + switch.imagesvisitorscenter: + friendly_name: Imagenes centro visitantes icon: mdi:camera - # Home : Technical Center + # Home : 4 Technical Center script.help: friendly_name: Visitor Center Needs Technical Help icon: mdi:block-helper - # Lupe Robot + # Lupe Amikoo switch.leftup: friendly_name: Up @@ -112,22 +122,22 @@ homeassistant: friendly_name: Mexican Northern icon: mdi:function - # Exhibits + # Beginning script.audiosectionfour: - friendly_name: Mayas + friendly_name: 1. Antes del inicio icon: mdi:audiobook script.audiosectionfive: - friendly_name: Intel + friendly_name: 2. Intel icon: mdi:audiobook script.audiosectionsix: - friendly_name: Intel GDC + friendly_name: 3. Intel GDC icon: mdi:audiobook script.audiosectionseven: - friendly_name: Microprocesador + friendly_name: 4. El microprocesador icon: mdi:audiobook script.audiosectioneight: - friendly_name: Labs y Fabs + friendly_name: 5. Labs y Fabs icon: mdi:audiobook script.audiostopjuum: @@ -140,19 +150,19 @@ homeassistant: friendly_name: Play Juum icon: mdi:play - # Laboratories + # Experience script.audiosectionnine: - friendly_name: Amazon Echo + friendly_name: 1. Amazon Echo icon: mdi:audiobook script.audiosectionten: - friendly_name: Binario + friendly_name: 2. Binario icon: mdi:audiobook script.audiosectioneleven: - friendly_name: Piano Cosmico Parte I + friendly_name: 3. Piano Cosmico I icon: mdi:audiobook script.audiosectiontwelve: - friendly_name: Piano Cosmico Parte II + friendly_name: 4. Piano Cosmico II icon: mdi:audiobook script.audiostopeek: @@ -167,7 +177,7 @@ homeassistant: # Support : Lupe - script.recognize: + script.amikoorecognize: friendly_name: Recognize Speech icon: mdi:microphone @@ -187,9 +197,9 @@ homeassistant: media_player.main: hidden: yes - automation.lupe_robot_text_to_speech: + automation.amikoo_robot_text_to_speech: hidden: yes - automation.lupe_robot_telegram: + automation.amikoo_robot_telegram: hidden: yes # Show links to resources in log and frontend @@ -246,19 +256,20 @@ tts: # - platform: yr mqtt: - broker: iot.eclipse.org +# broker: iot.eclipse.org + broker: 127.0.0.1 port: 1883 client_id: hochob keepalive: 60 script: - luperobot: - alias: Lupe Robot + amikoorobot: + alias: Lupe Amikoo sequence: - alias: Bienvenidos a Intel Guadalajara service: tts.google_say data: - message: "Bienvenidos a Intel Guadalajara!" + message: "Hola! Estan listos para jugar con Lupe?" language: 'es' photography: alias: Photography @@ -370,29 +381,29 @@ script: # Lupe Center - lupevirtualstart: + amikoovirtualstart: alias: Lupe Virtual Start sequence: - alias: Lupe Virtual Start - service: shell_command.lupevirtualstart - lupevirtualstop: + service: shell_command.amikoovirtualstart + amikoovirtualstop: alias: Lupe Virtual Stop sequence: - alias: Lupe Virtual Stop - service: shell_command.lupevirtualstop + service: shell_command.amikoovirtualstop - lupepresentation: + amikoopresentation: alias: Lupe Presentation sequence: - alias: Presentation - service: shell_command.lupepresentation - luperecognize: + service: shell_command.amikoopresentation + amikoorecognize: alias: Lupe Recognize sequence: - alias: Recognize Speech - service: shell_command.luperecognize + service: shell_command.amikoorecognize - lupe_arm_left: + amikoo_arm_left: alias: Lupe Arm Left sequence: - alias: Lupe Arm Up @@ -400,7 +411,7 @@ script: data: message: "Lupe Moviendo Brazo Izquierdo" language: 'es' - lupe_arm_right: + amikoo_arm_right: alias: Lupe Arm Right sequence: - alias: Lupe Arm Right @@ -408,7 +419,7 @@ script: data: message: "Lupe Moviendo Brazo Derecho" language: 'es' - lupe_dance: + amikoo_dance: alias: Lupe Dance sequence: - alias: Lupe Dance @@ -420,8 +431,8 @@ script: shell_command: restart_ha: sudo systemctl restart home-assistant.service & photography: python /home/hochob/CodeLabs/Hochob/Photography/selfie.py & - lupepresentation: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Presentation/Presentation.sh & - luperecognition: /home/hochob/CodeLabs/Hochob/LupeRobot/Learning/Recognize/Recognize.sh & + amikoopresentation: /home/hochob/CodeLabs/Hochob/LupeAmikoo/Learning/Presentation/Presentation.sh & + amikoorecognize: /home/hochob/CodeLabs/Hochob/LupeAmikoo/Learning/Recognize/Recognize.sh & audiosectionone: bash /home/hochob/CodeLabs/Hochob/Audio/Section01.sh & audiosectiontwo: bash /home/hochob/CodeLabs/Hochob/Audio/Section02.sh & audiosectionthree: bash /home/hochob/CodeLabs/Hochob/Audio/Section03.sh & @@ -440,35 +451,41 @@ shell_command: audiostopeek: bash /home/hochob/CodeLabs/Hochob/Audio/Stop.sh "Eek'" & audiopauseeek: bash /home/hochob/CodeLabs/Hochob/Audio/Pause.sh "Eek'" & audioplayeek: bash /home/hochob/CodeLabs/Hochob/Audio/Play.sh "Eek'" & - lupevirtualstart: bash /home/hochob/CodeLabs/Hochob/LupeRobot/Virtual/amikoo.sh & - lupevirtualstop: pkill node & + amikoovirtualstart: bash /home/hochob/CodeLabs/Hochob/LupeAmikoo/Virtual/amikoo.sh & + amikoovirtualstop: pkill node & switch: - platform: command_line switches: - luperobot: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot1080p.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" - lupecomplete: - command_on: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobot.sh &" - command_off: "/home/hochob/CodeLabs/Hochob/LupeRobot/Show/LupeRobotKill.sh" + amikoorobot: + command_on: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo1080p.sh &" + command_off: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikooKill.sh" + amikoocomplete: + command_on: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikoo.sh &" + command_off: "/home/hochob/CodeLabs/Hochob/LupeAmikoo/Show/LupeAmikooKill.sh" camerapreview: - command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0" - command_off: "pkill vlc" + command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0 &" + command_off: "pkill -9 vlc" cameravideolatest: - command_on: "cvlc --no-video-title-show --fullscreen /home/hochob/VideosSelfies/latest.mp4" - command_off: "pkill vlc" + command_on: "cvlc --no-video-title-show --fullscreen /home/hochob/VideosSelfies/latest.mp4 &" + command_off: "pkill -9 vlc" cameravideoloop: - command_on: "cvlc --no-video-title-show --fullscreen --loop /home/hochob/VideosSelfies/*.mp4" - command_off: "pkill vlc" + command_on: "cvlc --no-video-title-show --fullscreen --loop /home/hochob/VideosSelfies/*.mp4 &" + command_off: "pkill -9 vlc" + imagescorporate: + command_on: "eog -sf /home/hochob/Images/Corporate/* &" + command_off: "pkill -9 eog" + imagesvisitorscenter: + command_on: "eog -sf /home/hochob/Images/VisitorsCenter/* &" + command_off: "pkill -9 eog" # Lupe Switches switch 00: - platform: mqtt name: leftup - command_topic: "lupe/leftup" - state_topic: "lupe/leftup/state" + command_topic: "amikoo/leftup" + state_topic: "amikoo/leftup/state" payload_on: 1 payload_off: 0 qos: 1 @@ -476,8 +493,8 @@ switch 00: switch 01: - platform: mqtt name: leftdown - command_topic: "lupe/leftdown" - state_topic: "lupe/leftdown/state" + command_topic: "amikoo/leftdown" + state_topic: "amikoo/leftdown/state" payload_on: 1 payload_off: 0 qos: 1 @@ -485,8 +502,8 @@ switch 01: switch 02: - platform: mqtt name: leftfold - command_topic: "lupe/leftfold" - state_topic: "lupe/leftfold/state" + command_topic: "amikoo/leftfold" + state_topic: "amikoo/leftfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -494,8 +511,8 @@ switch 02: switch 03: - platform: mqtt name: leftunfold - command_topic: "lupe/leftunfold" - state_topic: "lupe/leftunfold/state" + command_topic: "amikoo/leftunfold" + state_topic: "amikoo/leftunfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -503,8 +520,8 @@ switch 03: switch 04: - platform: mqtt name: rightup - command_topic: "lupe/rightup" - state_topic: "lupe/rightup/state" + command_topic: "amikoo/rightup" + state_topic: "amikoo/rightup/state" payload_on: 1 payload_off: 0 qos: 1 @@ -512,8 +529,8 @@ switch 04: switch 05: - platform: mqtt name: rightdown - command_topic: "lupe/rightdown" - state_topic: "lupe/rightdown/state" + command_topic: "amikoo/rightdown" + state_topic: "amikoo/rightdown/state" payload_on: 1 payload_off: 0 qos: 1 @@ -521,8 +538,8 @@ switch 05: switch 06: - platform: mqtt name: rightfold - command_topic: "lupe/rightfold" - state_topic: "lupe/rightfold/state" + command_topic: "amikoo/rightfold" + state_topic: "amikoo/rightfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -530,8 +547,8 @@ switch 06: switch 07: - platform: mqtt name: rightunfold - command_topic: "lupe/rightunfold" - state_topic: "lupe/rightunfold/state" + command_topic: "amikoo/rightunfold" + state_topic: "amikoo/rightunfold/state" payload_on: 1 payload_off: 0 qos: 1 @@ -539,8 +556,8 @@ switch 07: switch 08: - platform: mqtt name: moveleft - command_topic: "lupe/moveleft" - state_topic: "lupe/moveleft/state" + command_topic: "amikoo/moveleft" + state_topic: "amikoo/moveleft/state" payload_on: 1 payload_off: 0 qos: 1 @@ -548,8 +565,8 @@ switch 08: switch 09: - platform: mqtt name: moveright - command_topic: "lupe/moveright" - state_topic: "lupe/moveright/state" + command_topic: "amikoo/moveright" + state_topic: "amikoo/moveright/state" payload_on: 1 payload_off: 0 qos: 1 @@ -557,8 +574,8 @@ switch 09: switch 10: - platform: mqtt name: moveforward - command_topic: "lupe/moveforward" - state_topic: "lupe/moveforward/state" + command_topic: "amikoo/moveforward" + state_topic: "amikoo/moveforward/state" payload_on: 1 payload_off: 0 qos: 1 @@ -566,8 +583,8 @@ switch 10: switch 11: - platform: mqtt name: movebackward - command_topic: "lupe/movebackward" - state_topic: "lupe/movebackward/state" + command_topic: "amikoo/movebackward" + state_topic: "amikoo/movebackward/state" payload_on: 1 payload_off: 0 qos: 1 @@ -575,8 +592,8 @@ switch 11: switch 12: - platform: mqtt name: movestop - command_topic: "lupe/movestop" - state_topic: "lupe/movestop/state" + command_topic: "amikoo/movestop" + state_topic: "amikoo/movestop/state" payload_on: 1 payload_off: 0 qos: 1 @@ -584,8 +601,8 @@ switch 12: switch 13: - platform: mqtt name: headleft - command_topic: "lupe/headleft" - state_topic: "lupe/headleft/state" + command_topic: "amikoo/headleft" + state_topic: "amikoo/headleft/state" payload_on: 1 payload_off: 0 qos: 1 @@ -593,8 +610,8 @@ switch 13: switch 14: - platform: mqtt name: headright - command_topic: "lupe/headright" - state_topic: "lupe/headright/state" + command_topic: "amikoo/headright" + state_topic: "amikoo/headright/state" payload_on: 1 payload_off: 0 qos: 1 @@ -602,8 +619,8 @@ switch 14: switch 15: - platform: mqtt name: resetall - command_topic: "lupe/resetall" - state_topic: "lupe/resetall/state" + command_topic: "amikoo/resetall" + state_topic: "amikoo/resetall/state" payload_on: 1 payload_off: 0 qos: 1 @@ -611,8 +628,8 @@ switch 15: switch 16: - platform: mqtt name: bienvenida - command_topic: "lupe/bienvenida" - state_topic: "lupe/bienvenida/state" + command_topic: "amikoo/bienvenida" + state_topic: "amikoo/bienvenida/state" payload_on: 1 payload_off: 0 qos: 1 @@ -620,8 +637,8 @@ switch 16: switch 17: - platform: mqtt name: agradece - command_topic: "lupe/agradece" - state_topic: "lupe/agradece/state" + command_topic: "amikoo/agradece" + state_topic: "amikoo/agradece/state" payload_on: 1 payload_off: 0 qos: 1 @@ -629,8 +646,8 @@ switch 17: switch 18: - platform: mqtt name: dance - command_topic: "lupe/dance" - state_topic: "lupe/dance/state" + command_topic: "amikoo/dance" + state_topic: "amikoo/dance/state" payload_on: 1 payload_off: 0 qos: 1 @@ -638,8 +655,8 @@ switch 18: switch 19: - platform: mqtt name: creador - command_topic: "lupe/creador" - state_topic: "lupe/creador/state" + command_topic: "amikoo/creador" + state_topic: "amikoo/creador/state" payload_on: 1 payload_off: 0 qos: 1 @@ -647,8 +664,8 @@ switch 19: switch 20: - platform: mqtt name: norte - command_topic: "lupe/norte" - state_topic: "lupe/norte/state" + command_topic: "amikoo/norte" + state_topic: "amikoo/norte/state" payload_on: 1 payload_off: 0 qos: 1 @@ -676,97 +693,104 @@ light: platform: hue automation: -# - alias: Lupe Robot Text To Speech +# - alias: Lupe Amikoo Text To Speech # hide_entity: True # trigger: # platform: state -# entity_id: switch.lupe +# entity_id: switch.amikoo # state: 'on' # action: # service: tts.google_say # data: -# message: "Bienvenido Robot Lupe" +# message: "Bienvenido Amikoo Lupe" # language: 'es' - - alias: Lupe Robot Telegram + - alias: Lupe Amikoo Telegram #hide_entity: True trigger: platform: state - entity_id: switch.lupe + entity_id: switch.amikoo state: 'on' action: service: notify.telegram data: - message: "Lupe Robot Station has been activated" + message: "Lupe Amikoo Station has been activated" group: default_view: view: yes entities: - - group.welcome + - group.introduction + - group.video - group.photography - group.technical # Views - lupeview: + amikooview: view: yes - name: Lupe Robot + name: Lupe Amikoo entities: - - group.lupearmleft - - group.lupearmright - - group.lupelegs - - group.lupehead - - group.lupeactivities - - group.lupediagnostics - - exhibitsview: + - group.amikooarmleft + - group.amikooarmright + - group.amikoolegs + - group.amikoohead + - group.amikooactivities + - group.amikoodiagnostics + + beginningview: view: yes - name: Exhibits + name: Beginning entities: - - group.audiosectionlaboratories - - group.audiocontrolslaboratories + - group.audiosectionbeginning + - group.audiocontrolsbeginning - laboratoriesview: + experienceview: view: yes - name: Laboratories + name: Experience entities: - - group.audiosectionlaboratories - - group.audiocontrolslaboratories + - group.audiosectionexperience + - group.audiocontrolsexperience supportview: view: yes name: Support entities: - - group.lupevirtual - - group.lupeskills - - group.selfiessupport + - group.amikoovirtual + - group.amikooskills + - group.camera # Groups : Default - welcome: - name: Welcome + introduction: + name: 1 Introduccion entities: - script.audiosectionone + + video: + name: 2 Video + entities: - script.audiosectiontwo - - switch.luperobot - - script.luperobot + - switch.amikoorobot + - script.amikoorobot - script.audiosectionthree - #- switch.lupecomplete + #- switch.amikoocomplete photography: - name: Photography + name: Fotografia entities: - script.photography + - switch.imagescorporate + - switch.imagesvisitorscenter technical: name: Technical Center entities: - script.help - # Groups : Lupe Robot + # Groups : Lupe Amikoo - lupeactivities: + amikooactivities: name: Activities entities: - switch.bienvenida @@ -775,7 +799,7 @@ group: - switch.creador - switch.norte - lupearmleft: + amikooarmleft: name: Arm Left entities: - switch.leftup @@ -783,7 +807,7 @@ group: - switch.leftfold - switch.leftunfold - lupearmright: + amikooarmright: name: Arm Right entities: - switch.rightup @@ -791,7 +815,7 @@ group: - switch.rightfold - switch.rightunfold - lupelegs: + amikoolegs: name: Legs entities: - switch.moveleft @@ -800,21 +824,21 @@ group: - switch.movebackward - switch.movestop - lupehead: + amikoohead: name: Head entities: - switch.headleft - switch.headright - lupediagnostics: + amikoodiagnostics: name: Diagnostics entities: - switch.resetall - # Groups : Exhibits + # Groups : Beginning - audiosectionexhibits: - name: Section Exhibits + audiosectionbeginning: + name: Stations entities: - script.audiosectionfour - script.audiosectionfive @@ -822,25 +846,25 @@ group: - script.audiosectionseven - script.audiosectioneight - audiocontrolsexhibits: - name: Controls Exhibit + audiocontrolsbeginning: + name: Controls entities: - script.audiostopjuum - script.audiopausejuum - script.audioplayjuum - # Groups : Laboratories + # Groups : Experience - audiosectionlaboratories: - name: Section Laboratories + audiosectionexperience: + name: Stations entities: - - script.audiosectionnine - script.audiosectionten + - script.audiosectionnine - script.audiosectioneleven - script.audiosectiontwelve - audiocontrolslaboratories: - name: Controls Laboratories + audiocontrolsexperience: + name: Controls entities: - script.audiostopeek - script.audiopauseeek @@ -848,16 +872,16 @@ group: # Groups : Support - lupevirtual: + amikoovirtual: name: Lupe Virtual entities: - - script.lupevirtualstart - - script.lupevirtualstop + - script.amikoovirtualstart + - script.amikoovirtualstop - lupeskills: + amikooskills: name: Lupe Skills entities: - - script.luperecognize + - script.amikoorecognize camera: name: Camera diff --git a/Hochob/Services/Automation/HomeAssistant/configuration.yaml.2.0 b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.2.0 new file mode 100644 index 00000000..360988c1 --- /dev/null +++ b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.2.0 @@ -0,0 +1,2327 @@ +homeassistant: + # Name of the location where Home Assistant is running + name: Home + # Location required to calculate the time the sun rises and sets + latitude: 20.35 + longitude: -102 + # Impacts weather/sunrise data (altitude above sea level in meters) + elevation: 1674 + # metric for Metric, imperial for Imperial + unit_system: metric + # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones + time_zone: America/Mexico_City + customize: + + # Language + + switch.language: + friendly_name: Idioma English / Español + icon: mdi:audiobook + + # Southern Maya Highlands + + # Southern Maya Highlands : 1 Introducción + + script.aguascalientes: + friendly_name: 1.1 Bienvenidos Intel, Protocolo de Seguridad + icon: mdi:audiobook + + # Southern Maya Highlands : 2 Robot + + script.bajacalifornianorte: + friendly_name: 2.1 Bienvenidos Guadalajara Design Center + icon: mdi:audiobook + script.bajacaliforniasur: + friendly_name: 2.2 Lupe Robot Show + icon: mdi:video + script.michoacan: + friendly_name: 2.3 Lupe Robot Foto Grupal + icon: mdi:video + + # Southern Maya Highlands : 3 Tour + + script.campeche: + friendly_name: 3.1 Bienvenidos Recorrido + icon: mdi:audiobook + + # Southern Maya Highlands : Sandbox + + script.zacatecas: + friendly_name: Sandbox + icon: mdi:test-tube + + # Amikoo Maya Lands + + script.resetall: + friendly_name: Ahora + icon: mdi:lock-reset + + # Amikoo Maya Lands :: Movement + + script.headright: + friendly_name: Derecha + icon: mdi:arrow-right-thick + script.headleft: + friendly_name: Izquierda + icon: mdi:arrow-left-thick + + script.rightup: + friendly_name: Arriba + icon: mdi:human-handsup + script.rightdown: + friendly_name: Abajo + icon: mdi:human-handsup + script.rightfold: + friendly_name: Doblar + icon: mdi:gesture-swipe-up + script.rightunfold: + friendly_name: Desdoblar + icon: mdi:gesture-swipe-up + + script.leftup: + friendly_name: Arriba + icon: mdi:human-handsup + script.leftdown: + friendly_name: Abajo + icon: mdi:human-handsup + script.leftfold: + friendly_name: Doblar + icon: mdi:gesture-swipe-up + script.leftunfold: + friendly_name: Desdoblar + icon: mdi:gesture-swipe-up + + script.moveright: + friendly_name: Derecha + icon: mdi:arrow-right-thick + script.moveleft: + friendly_name: Izquierda + icon: mdi:arrow-left-thick + script.moveforward: + friendly_name: Adelante + icon: mdi:arrow-up-thick + script.movebackward: + friendly_name: Atrás + icon: mdi:arrow-down-thick + script.movestop: + friendly_name: Parar + icon: mdi:stop + + # Amikoo Maya Lands :: Voice + + script.amikoovoice: + friendly_name: 5 4 3 2 1 0 + icon: mdi:voice + + # Amikoo Maya Lands :: Sense + + script.amikoosensesight: + friendly_name: Vista + icon: mdi:camera + + # Amikoo Maya Lands :: Communication + + script.amikoocommunicationaudio: + friendly_name: Audio + icon: mdi:audiobook + + script.amikoocommunicationimage: + friendly_name: Imágen + icon: mdi:file-image + + script.amikoocommunicationvideo: + friendly_name: Video + icon: mdi:file-video + + # Amikoo Maya Lands :: Expertise :: Google Cloud + + script.amikoogcvisionapi: + friendly_name: Google Vision API + icon: mdi:camera + script.amikoogctranslationapi: + friendly_name: Google Translation API + icon: mdi:google-translate + + # Amikoo Maya Lands :: Expertise :: Amazon + + switch.amikooamazonalexa: + friendly_name: Amazon Alexa + icon: mdi:amazon + + script.amikooamazonalexastart: + friendly_name: Amazon Alexa Start + icon: mdi:amazon + + script.amikooamazonalexastop: + friendly_name: Amazon Alexa Stop + icon: mdi:amazon + + + # Amikoo Maya Lands :: Expertise :: Google + + script.amikoogoogleassistantstart: + friendly_name: Google Assistant Start + icon: mdi:google + + script.amikoogoogleassistantstop: + friendly_name: Google Asistant Stop + icon: mdi:google + + # Amikoo Maya Lands :: Knowledge + + script.sphero: + friendly_name: Frases Populares + icon: mdi:audiobook + + script.makeblock: + friendly_name: Centro de Visitantes + icon: mdi:audiobook + + # Amikoo Maya Lands :: Applications + + script.coji: + friendly_name: Discurso Bilingüe + icon: mdi:speaker + script.meccanoid: + friendly_name: Baile Thriller + icon: mdi:account + script.chip: + friendly_name: Fotógrafo + icon: mdi:camera + + # Central Maya Lowlands, Stations + + script.acapulco: + friendly_name: 1. Antes del inicio + icon: mdi:audiobook + script.cancun: + friendly_name: 2. Intel + icon: mdi:audiobook + script.huatulco: + friendly_name: 3. Intel GDC + icon: mdi:audiobook + script.mazatlan: + friendly_name: 4. El microprocesador + icon: mdi:audiobook + script.puertovallarta: + friendly_name: 5. Labs y Fabs + icon: mdi:audiobook + + # Central Maya Lowlands, Stations + + script.ixtapa: + friendly_name: Preguntas + icon: mdi:audiobook + + # Central Maya Lowlands, Sandbox + + script.veracruz: + friendly_name: Sandbox + icon: mdi:test-tube + + # Northern Maya Lowlands + + script.montesazules: + friendly_name: 1. Bienvenida Experiencia Intel + icon: mdi:audiobook + + script.ojodeliebre: + friendly_name: 2. Juego Binario + icon: mdi:audiobook + + script.lamichilia: + friendly_name: 3. Intel en el Espacio + icon: mdi:audiobook + + script.elcielo: + friendly_name: 4. Los Muones + icon: mdi:audiobook + + script.islasmarias: + friendly_name: 5. Preguntas Finales + icon: mdi:audiobook + + script.mapimi: + friendly_name: 6. Hasta Pronto + icon: mdi:audiobook + + script.siankaan: + friendly_name: El Baile de Lupe + icon: mdi:test-tube + + script.calakmul: + friendly_name: La Ciencia + icon: mdi:test-tube + + script.tiburonballena: + friendly_name: Planeta Marte + icon: mdi:test-tube + + script.janos: + friendly_name: Primaria + icon: mdi:test-tube + + # Console Maya Lands : Keypad Yes No + + script.keypadyes: + friendly_name: Botón Sí + icon: mdi:check-circle + + script.keypadno: + friendly_name: Botón No + icon: mdi:checkbox-blank-circle + + # Console Maya Lands : Keypad Multiple Choice + + script.keypadone: + friendly_name: Botón Uno + icon: mdi:numeric-1-box + + script.keypadtwo: + friendly_name: Botón Dos + icon: mdi:numeric-2-box + + script.keypadthree: + friendly_name: Botón Tres + icon: mdi:numeric-3-box + + script.keypadfour: + friendly_name: Botón Cuatro + icon: mdi:numeric-4-box + + # Media Maya Lands : Corporate + + switch.aak: + friendly_name: Imágenes Corporativas + icon: mdi:folder-multiple-image + switch.aayin: + friendly_name: Videos Corporativos + icon: mdi:file-video + + # Media Maya Lands : Intel Guadalajara + + switch.chakmool: + friendly_name: Imágenes Intel Guadalajara + icon: mdi:folder-multiple-image + + # Media Maya Lands : Visitors Center + + switch.am: + friendly_name: Imágenes Centro de Visitantes + icon: mdi:folder-multiple-image + + # Media Maya Lands : Drawing + + switch.chiich: + friendly_name: Imágenes de Dibujos + icon: mdi:folder-multiple-image + + # Media Maya Lands : Memories + + switch.cho: + friendly_name: Imágenes de Visitas + icon: mdi:folder-multiple-image + switch.chuwen: + friendly_name: Videos de Visitas + icon: mdi:file-video + + # Media Maya Lands : Camera + + switch.kaab: + friendly_name: Vista Previa Cámara + icon: mdi:camera + + # Calendar Maya Lands :: Internal + + automation.pop: + friendly_name: 30 segundos .. Bienvenida Robot + icon: mdi:calendar-clock + + automation.sip: + friendly_name: 30 segundos .. Bienvenida Servidor + icon: mdi:calendar-clock + + # Calendar Maya Lands :: External + + automation.wo: + friendly_name: 15 segundos .. Bienvenida Robot + icon: mdi:calendar-clock + + # Calendar Maya Lands :: Photo Booth + + automation.photoboothdonotforget: + friendly_name: 15 segundos .. No Olvides Photo Booth! + icon: mdi:calendar-clock + + # Campaign Maya Lands: Drones + + automation.intelaero: + friendly_name: 15 segundos .. Drones Intel Aero + icon: mdi:calendar-clock + + script.intelaero: + friendly_name: Drones Intel Aero + icon: mdi:drone + + # Tradition Maya Lands :: San Valentin + + automation.corazon: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.corazon: + friendly_name: Sonidos + icon: mdi:speaker + + automation.cupido: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.cupido: + friendly_name: Sonidos + icon: mdi:speaker + + automation.flores: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.flores: + friendly_name: Imágenes + icon: mdi:file-image + + automation.chocolates: + friendly_name: 10 minutos .. Video + icon: mdi:calendar-clock + + script.chocolates: + friendly_name: Video + icon: mdi:file-video + + automation.amistad: + friendly_name: 10 minutos .. Feliz Dia San Valentin + icon: mdi:calendar-clock + + script.amistad: + friendly_name: Feliz Dia San Valentin + icon: mdi:file-video + + # Tradition Maya Lands :: Navidad + + automation.familia: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.familia: + friendly_name: Sonidos + icon: mdi:speaker + + automation.campana: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.campana: + friendly_name: Sonidos + icon: mdi:speaker + + automation.pesebre: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.pesebre: + friendly_name: Imágenes + icon: mdi:file-image + + automation.trineo: + friendly_name: 10 minutos .. Video + icon: mdi:calendar-clock + + script.trineo: + friendly_name: Video + icon: mdi:file-video + + automation.santaclaus: + friendly_name: 10 minutos .. Feliz Navidad + icon: mdi:calendar-clock + + script.santaclaus: + friendly_name: Feliz Navidad + icon: mdi:face-profile + + # Tradition Maya Lands :: Dia De Muertos + + automation.veladora: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.veladora: + friendly_name: Sonidos + icon: mdi:speaker + + automation.papelpicado: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.papelpicado: + friendly_name: Sonidos + icon: mdi:speaker + + automation.mantel: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.mantel: + friendly_name: Imágenes + icon: mdi:file-image + + automation.calaverita: + friendly_name: 10 minutos .. Fantasma + icon: mdi:calendar-clock + + script.calaverita: + friendly_name: Fantasma + icon: mdi:face-profile + + automation.fotografia: + friendly_name: 10 minutos .. Fotógrafo + icon: mdi:calendar-clock + + script.fotografia: + friendly_name: Fotógrafo + icon: mdi:camera + + # Tradition Maya Lands :: Intel + + automation.4004: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.4004: + friendly_name: Sonidos + icon: mdi:speaker + + automation.8008: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.8008: + friendly_name: Sonidos + icon: mdi:speaker + + automation.8080: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.8080: + friendly_name: Imágenes + icon: mdi:file-image + + automation.8086: + friendly_name: 10 minutos .. Video + icon: mdi:calendar-clock + + script.8086: + friendly_name: Video + icon: mdi:file-video + + automation.80286: + friendly_name: 10 minutos .. Intel Bong + icon: mdi:calendar-clock + + script.80286: + friendly_name: Intel Bong + icon: mdi:face-profile + + automation.i486: + friendly_name: 10 minutos .. Intel Bong + icon: mdi:calendar-clock + + script.i486: + friendly_name: Intel Bong + icon: mdi:face-profile + + # Techie Maya Lands : System Health + + script.toyota: + friendly_name: Verificar Infraestructura + icon: mdi:approval + + script.kodak: + friendly_name: Reiniciar Servidor + icon: mdi:restart + + # Techie Maya Lands : System Calendar + + automation.apple: + friendly_name: 30 minutos .. Anuncio Servidor + icon: mdi:calendar-clock + + # Techie Maya Lands : System Audio + + input_slider.qualcomm: + friendly_name: Volumén % Ajustar + icon: mdi:volume-high + + sensor.qualcomm: + friendly_name: Volumén % Nivel + icon: mdi:volume-high + + #automation.snapdragon: + # friendly_name: Habilitado Ajustar + + #automation.csr101x: + # friendly_name: Habilitado Nivel + + # Techie Maya Lands : System Sandbox + + script.visitorsusb: + friendly_name: Visitantes USB + icon: mdi:usb + + # Techie Maya Lands : System Infrastructure + + device_tracker.eclipse: + friendly_name: IoT Eclipse Org + icon: mdi:server + + device_tracker.hochob: + friendly_name: Hochob Server + icon: mdi:server-network + + # Techie Maya Lands : System Quote + + sensor.bosch: + friendly_name: Hoy digo... + icon: mdi:approval + + # Games + + script.loteriamexicana: + friendly_name: Loteria Mexicana + icon: mdi:gamepad-variant + + script.carasygestos: + friendly_name: Carta Aleatoria + icon: mdi:gamepad-variant + + # Intel Experience Day + + script.iedone: + friendly_name: Hola, bienvenidos... + icon: mdi:numeric-1-box + + script.iedtwo: + friendly_name: Que es eso? + icon: mdi:numeric-2-box + + script.iedthree: + friendly_name: Como yo? + icon: mdi:numeric-3-box + + script.ieddance: + friendly_name: Bailar... + + script.iedwelcome: + friendly_name: Saludo + +# Enables the frontend +frontend: + +http: + # Uncomment this to add a password (recommended!) + # api_password: PASSWORD + # Uncomment this if you are using SSL or running in Docker etc + # base_url: example.duckdns.org:8123 + +# Checks for available updates +updater: + +# Discover some devices automatically +#discovery: + +# Allows you to issue voice commands from the frontend in enabled browsers +conversation: + +# Enables support for tracking state changes over time. +history: + +# View all events in a logbook +logbook: + +#camera: +# - platform: ffmpeg +# input: /dev/video0 + +google: + client_id: !secret google_calendar_client_id + client_secret: !secret google_calendar_client_secret + +tts: + - platform: google + cache: true + time_memory: 300 + +input_slider: + + qualcomm: + name: Server Volume + initial: 50 + min: 0 + max: 100 + step: 5 + icon: mdi:volume-medium + +sensor: + + - platform: template + sensors: + imac: + friendly_name: Quién? + value_template: '{{ states.calendar.hochobvcgmailcom.attributes.message }}' + + - platform: template + sensors: + ipod: + friendly_name: Cuando? + value_template: '{{ states.calendar.hochobvcgmailcom.attributes.start_time }}' + + - platform: command_line + name: Qualcomm + command: amixer -D pulse sget Master | grep Left | grep -Eo '\[(\w+)\%\]' | grep -Eo '\w+' + unit_of_measurement: "%" + value_template: '{{ value | int }}' + + - platform: systemmonitor + name: SpaceX + resources: + - type: processor_use + - type: memory_free + - type: disk_use_percent + arg: /home/ + + - platform: command_line + name: Bosch + command: fortune + scan_interval: 300 + +device_tracker: + - platform: ping + hosts: + eclipse: iot.eclipse.org + hochob: 10.215.56.158 + +script: + + # Southern Maya Highlands + + aguascalientes: + sequence: + - service: shell_command.aguascalientes + + bajacalifornianorte: + sequence: + - service: shell_command.bajacalifornianorte + + bajacaliforniasur: + sequence: + - service: shell_command.bajacaliforniasur + + campeche: + sequence: + - service: shell_command.campeche + + michoacan: + sequence: + - service: shell_command.michoacan + + zacatecas: + sequence: + - service: shell_command.zacatecas + + # Amikoo Maya Lands + + resetall: + sequence: + - service: shell_command.resetall + + # Amikoo Maya Lands :: Movement + + headright: + sequence: + - service: shell_command.headright + + headleft: + sequence: + - service: shell_command.headleft + + rightup: + sequence: + - service: shell_command.rightup + + rightdown: + sequence: + - service: shell_command.rightdown + + rightfold: + sequence: + - service: shell_command.rightfold + + rightunfold: + sequence: + - service: shell_command.rightunfold + + leftup: + sequence: + - service: shell_command.leftup + + leftdown: + sequence: + - service: shell_command.leftdown + + leftfold: + sequence: + - service: shell_command.leftfold + + leftunfold: + sequence: + - service: shell_command.leftunfold + + moveright: + sequence: + - service: shell_command.moveright + + moveleft: + sequence: + - service: shell_command.moveleft + + moveforward: + sequence: + - service: shell_command.moveforward + + movebackward: + sequence: + - service: shell_command.movebackward + + movestop: + sequence: + - service: shell_command.movestop + + # Amikoo Maya Lands :: Voice + + amikoovoice: + sequence: + - service: shell_command.amikoovoice + + # Amikoo Maya Lands :: Sense + + amikoosensesight: + sequence: + - service: shell_command.amikoosensesight + + # Amikoo Maya Lands :: Communication + + amikoocommunicationaudio: + sequence: + - service: shell_command.amikoocommunicationaudio + + amikoocommunicationimage: + sequence: + - service: shell_command.amikoocommunicationimage + + amikoocommunicationvideo: + sequence: + - service: shell_command.amikoocommunicationvideo + + # Amikoo Maya Lands :: Expertise :: Google Cloud + + amikoogcvisionapi: + sequence: + - service: shell_command.amikoogcvisionapi + + amikoogctranslationapi: + sequence: + - service: shell_command.amikoogctranslationapi + + # Amikoo Maya Lands :: Expertise :: Amazon Alexa + + amikooamazonalexastart: + sequence: + - service: shell_command.amikooamazonalexastart + + amikooamazonalexastop: + sequence: + - service: shell_command.amikooamazonalexastop + + # Amikoo Maya Lands :: Expertise :: Google Assistant + + amikoogoogleassistantstart: + sequence: + - service: shell_command.amikoogoogleassistantstart + + amikoogoogleassistantstop: + sequence: + - service: shell_command.amikoogoogleassistantstop + + # Amikoo Maya Lands :: Knowledge + + sphero: + sequence: + - service: shell_command.sphero + + makeblock: + sequence: + - service: shell_command.makeblock + + # Amikoo Maya Lands :: Application + + coji: + sequence: + - service: shell_command.coji + + meccanoid: + sequence: + - service: shell_command.meccanoid + + chip: + sequence: + - service: shell_command.chip + + # Central Maya Lowlands, Stations + + acapulco: + sequence: + - service: shell_command.acapulco + + cancun: + sequence: + - service: shell_command.cancun + + huatulco: + sequence: + - service: shell_command.huatulco + + mazatlan: + sequence: + - service: shell_command.mazatlan + + puertovallarta: + sequence: + - service: shell_command.puertovallarta + + # Central Maya Lowlands, Questions + + ixtapa: + sequence: + - service: shell_command.ixtapa + + # Central Maya Lowlands, Sandbox + + veracruz: + sequence: + - service: shell_command.veracruz + + # Northern Maya Lowlands + + ojodeliebre: + sequence: + - service: shell_command.ojodeliebre + + montesazules: + sequence: + - service: shell_command.montesazules + + lamichilia: + sequence: + - service: shell_command.lamichilia + + elcielo: + sequence: + - service: shell_command.elcielo + + islasmarias: + sequence: + - service: shell_command.islasmarias + + mapimi: + sequence: + - service: shell_command.mapimi + + siankaan: + sequence: + - service: shell_command.siankaan + + calakmul: + sequence: + - service: shell_command.calakmul + + tiburonballena: + sequence: + - service: shell_command.tiburonballena + + janos: + sequence: + - service: shell_command.janos + + # Tradition Maya Lands :: San Valentin + + corazon: + sequence: + - service: shell_command.corazon + + cupido: + sequence: + - service: shell_command.cupido + + flores: + sequence: + - service: shell_command.flores + + chocolates: + sequence: + - service: shell_command.chocolates + + amistad: + sequence: + - service: shell_command.amistad + + # Tradition Maya Lands :: Navidad + + familia: + sequence: + - service: shell_command.familia + + campana: + sequence: + - service: shell_command.campana + + pesebre: + sequence: + - service: shell_command.pesebre + + trineo: + sequence: + - service: shell_command.trineo + + santaclaus: + sequence: + - service: shell_command.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + veladora: + sequence: + - service: shell_command.veladora + + papelpicado: + sequence: + - service: shell_command.papelpicado + + mantel: + sequence: + - service: shell_command.mantel + + calaverita: + sequence: + - service: shell_command.calaverita + + fotografia: + sequence: + - service: shell_command.fotografia + + # Tradition Maya Lands :: Intel + + 4004: + sequence: + - service: shell_command.4004 + + 8008: + sequence: + - service: shell_command.8008 + + 8080: + sequence: + - service: shell_command.8080 + + 8086: + sequence: + - service: shell_command.8086 + + 80286: + sequence: + - service: shell_command.80286 + + i486: + sequence: + - service: shell_command.i486 + + # Techie Maya Lands + + toyota: + sequence: + - service: shell_command.toyota + kodak: + sequence: + - service: shell_command.kodak + + visitorsusb: + sequence: + - service: shell_command.visitorsusb + + # Console Maya Lands + + keypadyes: + sequence: + - service: shell_command.keypadyes + keypadno: + sequence: + - service: shell_command.keypadno + keypadone: + sequence: + - service: shell_command.keypadone + keypadtwo: + sequence: + - service: shell_command.keypadtwo + keypadthree: + sequence: + - service: shell_command.keypadthree + keypadfour: + sequence: + - service: shell_command.keypadfour + + # Games + + loteriamexicana: + sequence: + - service: shell_command.loteriamexicana + + carasygestos: + sequence: + - service: shell_command.carasygestos + + # Intel Experience Day + + iedone: + sequence: + - service: shell_command.iedone + + iedtwo: + sequence: + - service: shell_command.iedtwo + + iedthree: + sequence: + - service: shell_command.iedthree + + ieddance: + sequence: + - service: shell_command.ieddance + + iedwelcome: + sequence: + - service: shell_command.iedwelcome + +shell_command: + + # Southern Maya Highlands + + aguascalientes: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Aguascalientes.sh & + bajacalifornianorte: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaNorte.sh & + bajacaliforniasur: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSur.sh & + campeche: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Campeche.sh & + michoacan: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Michoacan.sh & + zacatecas: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Zacatecas.sh & + + # Central Maya Lowlands, Stations + + acapulco: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Acapulco.sh & + cancun: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Cancun.sh & + huatulco: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Huatulco.sh & + mazatlan: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Mazatlan.sh & + puertovallarta: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/PuertoVallarta.sh & + + # Central Maya Lowlands, Questions + ixtapa: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Ixtapa.sh & + + # Central Maya Lowlands, Sandbox + + veracruz: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Veracruz.sh & + + # Northern Maya Lowlands + + montesazules: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/MontesAzules.sh & + ojodeliebre: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/OjoDeLiebre.sh & + lamichilia: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/LaMichilia.sh & + elcielo: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/ElCielo.sh & + islasmarias: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/IslasMarias.sh & + mapimi: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/Mapimi.sh & + siankaan: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/SianKaan.sh & + calakmul: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/Calakmul.sh & + tiburonballena: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/TiburonBallena.sh & + janos: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/Janos.sh & + + # Amikoo Maya Lands + + resetall: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/resetall 1 + + # Amikoo Maya Lands: Movement + + headleft: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/headleft "Head Left" + headright: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/headright "Head Right" + + rightup: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightup "Arm Right Up" + rightdown: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightdown "Arm Right Down" + rightfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightfold "Arm Right Fold" + rightunfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightunfold "Arm Right Unfold" + + leftup: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftup "Arm Left Up" + leftdown: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftdown "Arm Left Down" + leftfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftfold "Arm Left Fold" + leftunfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftunfold "Arm Left Unfold" + + moveright: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveright "Body Move Right" + moveleft: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveleft "Body Move Left" + moveforward: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveforward "Body Move Forward" + movebackward: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/movebackward "Body Move Backward" + movestop: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/movestop "Body Stop" + + # Amikoo Maya Lands :: Voice + + amikoovoice: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "5 4 3 2 1 0" + + # Amikoo Maya Lands: Sense + + amikoosensesight: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooSense.sh Sight Picture + + # Amikoo Maya Lands :: Communication + + amikoocommunicationaudio: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Audio Random + amikoocommunicationimage: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Image Random + amikoocommunicationvideo: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Video Random + + # Amikoo Maya Lands :: Expertise :: Google Cloud + + amikoogcvisionapi: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh gcvisionapi 1 + amikoogctranslationapi: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh gctranslationapi 1 + + # Amikoo Maya Lands :: Expertise :: Amazon Alexa + + amikooamazonalexastart: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh amazonalexa start + amikooamazonalexastop: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh amazonalexa stop + + # Amikoo Maya Lands :: Expertise :: Google Assistant + + amikoogoogleassistantstart: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh googleassistant start + amikoogoogleassistantstop: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh googleassistant stop + + # Amikoo Maya Lands :: Knowledge + + sphero: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Sphero.sh & + makeblock: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Makeblock.sh & + + # Amikoo Maya Lands: Application + + coji: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Coji.sh & + meccanoid: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Meccanoid.sh & + chip: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Chip.sh & + + # Console Maya Lands + + keypadyes: ~/CodeLabs/Hochob/Services/Keypad/KeypadYesNo.sh virtual yes & + keypadno: ~/CodeLabs/Hochob/Services/Keypad/KeypadYesNo.sh virtual no & + keypadone: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 1 & + keypadtwo: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 2 & + keypadthree: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 3 & + keypadfour: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 4 & + + # Calendar Maya Lands + + pop: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Pop.sh & + sip: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Sip.sh & + wo: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Wo.sh & + photoboothdonotforget: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/PhotoBooth/DoNotForget.sh + + # Campaign Maya Lands :: Drones :: Intel Aero + + intelaero: ~/CodeLabs/Hochob/Applications/CampaignMayaLands/Drones/IntelAero.sh & + + # Tradition Maya Lands :: San Valentin + + corazon: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/SanValentin/Corazon.sh & + cupido: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/SanValentin/Cupido.sh & + flores: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/SanValentin/Flores.sh & + chocolates: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/SanValentin/Chocolates.sh & + amistad: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/SanValentin/Amistad.sh & + + # Tradition Maya Lands :: Navidad + + familia: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Familia.sh & + campana: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Campana.sh & + pesebre: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Pesebre.sh & + trineo: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Trineo.sh & + santaclaus: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/SantaClaus.sh & + + # Tradition Maya Lands :: Dia De Muertos + + veladora: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Veladora.sh & + papelpicado: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/PapelPicado.sh & + mantel: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Mantel.sh & + calaverita: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Calaverita.sh & + fotografia: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Fotografia.sh & + + # Tradition Maya Lands :: Intel + + 4004: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/4004.sh & + 8008: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8008.sh & + 8080: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8080.sh & + 8086: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8086.sh & + 80286: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/80286.sh & + i486: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/i486.sh & + + # Techie Maya Lands + + toyota: ~/CodeLabs/Hochob/Applications/TechieMayaLands/Toyota.sh & + kodak: ssh root@127.0.0.1 sudo reboot + apple: ~/CodeLabs/Hochob/Applications/TechieMayaLands/Apple.sh & + qualcomm: amixer -D pulse sset Master '{{ volume_level }}%' + visitorsusb: ~/CodeLabs/Hochob/Services/Visitors/Usb.sh & + + # Games + + loteriamexicana: ~/CodeLabs/Hochob/Services/Games/LoteriaMexicana/LoteriaMexicana.sh + carasygestos: ~/CodeLabs/Hochob/Services/Games/CarasYGestos/CarasYGestos.sh + + # Intel Experience Day + + iedone: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Hola, bienvenidos al show de baile de Intel" + iedtwo: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Que es eso" + iedthree: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Como yo" + ieddance: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Dance.sh + iedwelcome: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/IntelExperienceDay/Welcome.sh + +switch: + + - platform: command_line + switches: + + # Language + + language: + command_on: "~/CodeLabs/Hochob/Services/Language/Language.sh spanish &" + command_off: "~/CodeLabs/Hochob/Services/Language/Language.sh english &" + + # Robot Maya Lands :: Expertise :: Amazon + + amikooamazonalexa: + command_on: "~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh amazonalexa start &" + command_off: "~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooExpertise.sh amazonalexa stop &" + + # Media Maya Lands: Corporate + + aak: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Aak.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + aayin: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Aayin.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh vlc" + + # Media Maya Lands: Intel Guadalajara + + chakmool: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chakmool.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Visitors Center + + am: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Am.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Drawing + + chiich: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chiich.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Memories + + cho: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Cho.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + chuwen: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chuwen.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh vlc" + + # Media Maya Lands: Camera + + kaab: + command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0 &" + command_off: "pkill -9 vlc" + +automation: + + - alias: TTS Clear Cache + trigger: + platform: time + hours: '/24' + condition: + - condition: time + weekday: + - mon + action: + service: tts.clear_cache + + - alias: Home Assistant Start + trigger: + platform: homeassistant + event: start + action: + - delay: '00:00:10' + - service: tts.google_say + data: + message: 'Home Assistant has started' + + # Calendar Maya Lands + + - alias: pop + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.pop + + - alias: sip + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.sip + + - alias: wo + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + action: + - service: shell_command.wo + + - alias: photoboothdonotforget + initial_state: 'off' + trigger: + platform: time + seconds: '/15' + action: + - service: shell_command.photoboothdonotforget + + # Campaign Maya Lands :: Drones :: Intel Aero + + - alias: intelaero + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + action: + - service: shell_command.intelaero + + # Tradition Maya Lands :: San Valentin + + - alias: Corazon + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.corazon + + - alias: Cupido + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.cupido + + - alias: Flores + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.flores + + - alias: Chocolates + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.chocolates + + - alias: Amistad + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.amistad + + # Tradition Maya Lands :: Navidad + + - alias: Familia + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.familia + + - alias: Campana + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.campana + + - alias: Pesebre + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.pesebre + + - alias: Trineo + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.trineo + + - alias: SantaClaus + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + - alias: Veladora + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.veladora + + - alias: PapelPicado + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.papelpicado + + - alias: Mantel + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.mantel + + - alias: Calaverita + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.calaverita + + - alias: Fotografia + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.fotografia + + # Tradition Maya Lands :: Intel + + - alias: 4004 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.4004 + + - alias: 8008 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8008 + + - alias: 8080 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8080 + + - alias: 8086 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8086 + + - alias: 80286 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.80286 + + - alias: i486 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.i486 + + # Techie Maya Lands: System Calendar + + - alias: Apple + initial_state: 'off' + trigger: + platform: time + minutes: '/30' + seconds: 00 + action: + - service: shell_command.apple + + # Techie Maya Lands: System Audio + + - alias: snapdragon + initial_state: 'on' + trigger: + - platform: state + entity_id: input_slider.qualcomm + action: + - service: shell_command.qualcomm + data_template: + volume_level: "{{ states.input_slider.qualcomm.state }}" + + - alias: csr101x + initial_state: 'on' + trigger: + - platform: state + entity_id: sensor.qualcomm + action: + - service: input_slider.select_value + data_template: + entity_id: input_slider.qualcomm + value: "{{ states.sensor.qualcomm.state | int }}" + +group: + + default_view: + view: yes + name: Sensei + entities: + - group.techiemayalandssystemhealth + - group.techiemayalandssystemcalendar + - group.captainmayalandslanguage + + # Southern Maya Highlands + + southernmayalands: + view: yes + name: Bienvenida + entities: + - group.southernmayahighlandsintroduction + - group.southernmayahighlandsrobot + - group.southernmayahighlandstour + #- group.southernmayahighlandssandbox + + # Amikoo Maya Lands + + robotmayalands: + view: yes + name: Robot + entities: + - group.robotmayalandsvoice + - group.robotmayalandssense + - group.robotmayalandscommunication + - group.robotmayalandsexpertise + - group.robotmayalandsapplications + - group.robotmayalandsknowledge + - group.robotmayalandshead + - group.robotmayalandsarmright + - group.robotmayalandsarmleft + - group.robotmayalandslegs + - group.robotmayalandsreset + + # Central Maya Lowlands + + centralmayalowlands: + view: yes + name: Inicios + entities: + - group.centralmayalowlandsstations + - group.centralmayalowlandsquestions + #- group.centralmayalowlandssandbox + + # Northern Maya Lowlands + + northernmayalowlands: + view: yes + name: Experiencia + entities: + - group.northernmayalowlandsstations + - group.northernmayalowlandsstories + - group.northernmayalowlandsrobot + + # Console Maya Lands + + consolemayalands: + view: yes + #icon: mdi:keyboard + name: Teclado + entities: + - group.consolemayalandskeypadyesno + - group.consolemayalandskeypadmultiplechoice + + # Media Maya Lands + + mediamayalands: + view: yes + #icon: mdi:filmstrip + name: Memorias + entities: + - group.mediamayalandscorporate + - group.mediamayalandsintelguadalajara + - group.mediamayalandsvisitorscenter + - group.mediamayalandsdrawing + - group.mediamayalandsmemories + - group.mediamayalandscamera + + # Calendar Maya Lands + + calendarmayalands: + view: yes + name: Calendario + entities: + - group.calendarmayalandseventsinternal + - group.calendarmayalandseventsexternal + - group.calendarmayalandsphotobooth + + # Campaign Maya Lands + + campaignmayalands: + view: yes + name: Campañas + entities: + - group.campaignmayalandsdronesintelaero + + # Tradition Maya Lands + + traditionmayalands: + view: yes + name: Tradición + entities: + - group.traditionmayalandssanvalentinchromecast + - group.traditionmayalandssanvalentinamikoo + - group.traditionmayalandssanvalentinnohochtata + - group.traditionmayalandsnavidadchromecast + - group.traditionmayalandsnavidadamikoo + - group.traditionmayalandsnavidadnohochtata + - group.traditionmayalandsintelchromecast + - group.traditionmayalandsintelamikoo + - group.traditionmayalandsintelnohochtata + - group.traditionmayalandsdiademuertoschromecast + - group.traditionmayalandsdiademuertosamikoo + + # Techie Maya Lands + + techiemayalands: + view: yes + name: Techie + entities: + - group.techiemayalandssystemhealth + - group.techiemayalandssystemcalendar + - group.techiemayalandssystemaudio + - group.techiemayalandssystemmonitor + - group.techiemayalandssystemevent + - group.techiemayalandssystemquote + - group.techiemayalandsserverinfrastructure + - group.techiemayalandssandbox + + gameslands: + view: yes + name: Juegos + entities: + - group.gamesloteria + - group.gamescarasygestos + + intelexperiencedaylands: + view: yes + name: Intel Experience Day + entities: + - group.intelexperiencedaylandsopening + - group.intelexperiencedaylandsdance + - group.intelexperiencedaylandswelcome + + # Captain Maya Lands: Language + + captainmayalandslanguage: + name: Idioma + entities: + - switch.language + + # Southern Maya Highlands: Introduction + + southernmayahighlandsintroduction: + name: 1 Introduccion + entities: + - script.aguascalientes + + # Southern Maya Highlands: Robot + + southernmayahighlandsrobot: + name: 2 Robot + entities: + - script.bajacalifornianorte + - script.bajacaliforniasur + - script.michoacan + + # Southern Maya Highlands: Tour + + southernmayahighlandstour: + name: 3 Tour + entities: + - script.campeche + + # Southern Maya Highlands: Sandbox + + southernmayahighlandssandbox: + name: Sandbox + entities: + - script.zacatecas + + # Amikoo Maya Lands: Voice + + robotmayalandsvoice: + name: Voz + entities: + - script.amikoovoice + + # Amikoo Maya Lands: Sense + + robotmayalandssense: + name: Sentido + entities: + - script.amikoosensesight + + # Amikoo Maya Lands: Communication + + robotmayalandscommunication: + name: Comunicación + entities: + - script.amikoocommunicationaudio + - script.amikoocommunicationimage + - script.amikoocommunicationvideo + + # Amikoo Maya Lands: Expertise + + robotmayalandsexpertise: + name: Especialización + entities: + - script.amikoogcvisionapi + - script.amikoogctranslationapi + - switch.amikooamazonalexa + - script.amikooamazonalexastart + - script.amikooamazonalexastop + - script.amikoogoogleassistantstart + - script.amikoogoogleassistantstop + + # Amikoo Maya Lands: Applications + + robotmayalandsapplications: + name: Aplicaciones + entities: + - script.coji + - script.meccanoid + - script.chip + + # Amikoo Maya Lands: Knowledge + + robotmayalandsknowledge: + name: Conocimiento + entities: + - script.makeblock + - script.sphero + + # Amikoo Maya Lands :: Movement :: Head + + robotmayalandshead: + name: Cabeza + entities: + - script.headright + - script.headleft + + # Amikoo Maya Lands :: Movement :: Arm Right + + robotmayalandsarmright: + name: Brazo Derecho + entities: + - script.rightup + - script.rightdown + - script.rightfold + - script.rightunfold + + # Amikoo Maya Lands :: Movement :: Arm Left + + robotmayalandsarmleft: + name: Brazo Izquierdo + entities: + - script.leftup + - script.leftdown + - script.leftfold + - script.leftunfold + + # Amikoo Maya Lands :: Movement :: Legs + + robotmayalandslegs: + name: Piernas + entities: + - script.moveright + - script.moveleft + - script.moveforward + - script.movebackward + - script.movestop + + # Amikoo Maya Lands :: Reset + + robotmayalandsreset: + name: Reiniciar + entities: + - script.resetall + + # Central Maya Lowlands: Stations + + centralmayalowlandsstations: + name: Estaciones + entities: + - script.acapulco + - script.cancun + - script.huatulco + - script.mazatlan + - script.puertovallarta + + # Central Maya Lowlands: Questions + + centralmayalowlandsquestions: + name: Conocimiento + entities: + - script.ixtapa + + # Central Maya Lowlands: Sandbox + + centralmayalowlandssandbox: + name: Sandbox + entities: + - script.veracruz + + # Northern Maya Highlands: Stations + + northernmayalowlandsstations: + name: Estaciones + entities: + - script.montesazules + - script.ojodeliebre + - script.lamichilia + - script.elcielo + - script.islasmarias + - script.mapimi + - script.janos + + # Northern Maya Highlands: Stations + + northernmayalowlandsrobot: + name: Robot Dance + entities: + - script.siankaan + + # Northern Maya Highlands: Stations + + northernmayalowlandsstories: + name: Historias + entities: + - script.calakmul + - script.tiburonballena + + # Console Maya Lands: Keypad Yes No + + consolemayalandskeypadyesno: + name: Teclado Sí No + entities: + - script.keypadyes + - script.keypadno + + # Console Maya Lands: Keypad Multiple Choice + + consolemayalandskeypadmultiplechoice: + name: Teclado Opción Multiple + entities: + - script.keypadone + - script.keypadtwo + - script.keypadthree + - script.keypadfour + + # Media Maya Lands: Corporate + + mediamayalandscorporate: + name: Corporativo + entities: + - switch.aak + - switch.aayin + + # Media Maya Lands: Intel Guadalajara + + mediamayalandsintelguadalajara: + name: Intel Guadalajara + entities: + - switch.chakmool + + # Media Maya Lands: Visitors Center + + mediamayalandsvisitorscenter: + name: Centro de Visitantes + entities: + - switch.am + + # Media Maya Lands: Drawing + + mediamayalandsdrawing: + name: Dibujos + entities: + - switch.chiich + + # Media Maya Lands: Memories + + mediamayalandsmemories: + name: Visitas + entities: + - switch.cho + - switch.chuwen + + # Media Maya Lands: Camera + + mediamayalandscamera: + name: Cámara + entities: + - switch.kaab + + # Calendar Maya Lands: Internal Events + + calendarmayalandseventsinternal: + name: Eventos Internos + entities: + - automation.pop + - automation.sip + + # Calendar Maya Lands: External Events + + calendarmayalandseventsexternal: + name: Eventos Externos + entities: + - automation.wo + + # Calendar Maya Lands: Photo Booth + + calendarmayalandsphotobooth: + name: Photo Booth + entities: + - automation.photoboothdonotforget + + # Campaign Maya Lands: Drones + + campaignmayalandsdronesintelaero: + name: Drones Intel® Aero + entities: + - automation.intelaero + - script.intelaero + + # Tradition Maya Lands :: San Valentin + + traditionmayalandssanvalentinchromecast: + name: San Valentin <> Chromecast + entities: + - automation.corazon + - script.corazon + + traditionmayalandssanvalentinamikoo: + name: San Valentin <> Robot + entities: + - automation.cupido + - automation.flores + - automation.chocolates + - script.cupido + - script.flores + - script.chocolates + + traditionmayalandssanvalentinnohochtata: + name: San Valentin <> Server + entities: + - automation.amistad + - script.amistad + + # Tradition Maya Lands :: Navidad + + traditionmayalandsnavidadchromecast: + name: Navidad <> Chromecast + entities: + - automation.familia + - script.familia + + traditionmayalandsnavidadamikoo: + name: Navidad <> Robot + entities: + - automation.campana + - automation.pesebre + - automation.trineo + - script.campana + - script.pesebre + - script.trineo + + traditionmayalandsnavidadnohochtata: + name: Navidad <> Server + entities: + - automation.santaclaus + - script.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + traditionmayalandsdiademuertoschromecast: + name: Dia De Muertos <> Chromecast + entities: + - automation.veladora + - script.veladora + + traditionmayalandsdiademuertosamikoo: + name: Dia De Muertos <> Robot + entities: + - automation.papelpicado + - automation.mantel + - automation.calaverita + - automation.fotografia + - script.papelpicado + - script.mantel + - script.calaverita + - script.fotografia + + # Tradition Maya Lands :: Intel + + traditionmayalandsintelchromecast: + name: Intel <> Chromecast + entities: + - automation.4004 + - script.4004 + + traditionmayalandsintelamikoo: + name: Intel <> Robot + entities: + - automation.8008 + - automation.8080 + - automation.8086 + - automation.80286 + - script.8008 + - script.8080 + - script.8086 + - script.80286 + + traditionmayalandsintelnohochtata: + name: Intel <> Server + entities: + - automation.i486 + - script.i486 + + # Techie Maya Lands: System Health + + techiemayalandssystemhealth: + name: Verificación del Sistema + entities: + - script.toyota + - script.kodak + + # Techie Maya Lands: System Calendar + + techiemayalandssystemcalendar: + name: Próxima Visita + entities: + - automation.apple + - sensor.imac + - sensor.ipod + #- calendar.hochobvcgmailcom + + # Techie Maya Lands: System Audio + + techiemayalandssystemaudio: + name: Audio del Servidor + entities: + - input_slider.qualcomm + - sensor.qualcomm + #- shell_command.qualcomm + #- automation.snapdragon + #- automation.csr101x + + # Techie Maya Lands: System Monitor + + techiemayalandssystemmonitor: + name: Monitor del Servidor + entities: + - sensor.cpu_use + - sensor.ram_free + - sensor.disk_use_home + #- camera.ffmpeg + + # Techie Maya Lands: System Quote + + techiemayalandssystemquote: + name: Citas del Servidor + entities: + - sensor.bosch + + # Techie Maya Lands: Server Infrastructure + + mayalandsserverinfrastructure: + name: Disponibilidad de Servidores + entities: + - device_tracker.eclipse + - device_tracker.hochob + + # Techie Maya Lands: Sandbox + + techiemayalandssandbox: + name: Sandbox + entities: + - script.visitorsusb + + gamesloteria: + name: Loteria + entities: + - script.loteriamexicana + + gamescarasygestos: + name: Caras Y Gestos + entities: + - script.carasygestos + + # Intel Experience Day + + intelexperiencedaylandsopening: + name: Escenario + entities: + - script.iedone + - script.iedtwo + - script.iedthree + + intelexperiencedaylandsdance: + name: Baile + entities: + - script.ieddance + + intelexperiencedaylandswelcome: + name: Bienvenida + entities: + - script.iedwelcome + - automation.wo + diff --git a/Hochob/Services/Automation/HomeAssistant/configuration.yaml.adriana b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.adriana new file mode 100644 index 00000000..5409d4f7 --- /dev/null +++ b/Hochob/Services/Automation/HomeAssistant/configuration.yaml.adriana @@ -0,0 +1,1993 @@ +homeassistant: + # Name of the location where Home Assistant is running + name: Home + # Location required to calculate the time the sun rises and sets + latitude: 20.35 + longitude: -102 + # Impacts weather/sunrise data (altitude above sea level in meters) + elevation: 1674 + # metric for Metric, imperial for Imperial + unit_system: metric + # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones + time_zone: America/Mexico_City + customize: + + # Language + + switch.language: + friendly_name: Idioma English / Español + icon: mdi:audiobook + + # Southern Maya Highlands + + # Southern Maya Highlands : 1 Introducción + + script.aguascalientes: + friendly_name: 1.1 Bienvenidos Intel, Protocolo de Seguridad + icon: mdi:audiobook + + # Southern Maya Highlands : 2 Robot + + script.bajacalifornianorte: + friendly_name: 2.1 Bienvenidos Guadalajara Design Center + icon: mdi:audiobook + script.bajacaliforniasur: + friendly_name: 2.2 Lupe Robot Show + icon: mdi:video + script.michoacan: + friendly_name: 2.3 Lupe Robot Foto Grupal + icon: mdi:video + + # Southern Maya Highlands : 3 Tour + + script.campeche: + friendly_name: 3.1 Bienvenidos Recorrido + icon: mdi:audiobook + + # Southern Maya Highlands : Sandbox + + script.zacatecas: + friendly_name: Sandbox + icon: mdi:test-tube + + # Amikoo Maya Lands + + script.resetall: + friendly_name: Ahora + icon: mdi:lock-reset + + # Amikoo Maya Lands :: Movement + + script.headright: + friendly_name: Derecha + icon: mdi:arrow-right-thick + script.headleft: + friendly_name: Izquierda + icon: mdi:arrow-left-thick + + script.rightup: + friendly_name: Arriba + icon: mdi:human-handsup + script.rightdown: + friendly_name: Abajo + icon: mdi:human-handsup + script.rightfold: + friendly_name: Doblar + icon: mdi:gesture-swipe-up + script.rightunfold: + friendly_name: Desdoblar + icon: mdi:gesture-swipe-up + + script.leftup: + friendly_name: Arriba + icon: mdi:human-handsup + script.leftdown: + friendly_name: Abajo + icon: mdi:human-handsup + script.leftfold: + friendly_name: Doblar + icon: mdi:gesture-swipe-up + script.leftunfold: + friendly_name: Desdoblar + icon: mdi:gesture-swipe-up + + script.moveright: + friendly_name: Derecha + icon: mdi:arrow-right-thick + script.moveleft: + friendly_name: Izquierda + icon: mdi:arrow-left-thick + script.moveforward: + friendly_name: Adelante + icon: mdi:arrow-up-thick + script.movebackward: + friendly_name: Atrás + icon: mdi:arrow-down-thick + script.movestop: + friendly_name: Parar + icon: mdi:stop + + # Amikoo Maya Lands :: Voice + + script.amikoovoice: + friendly_name: 5 4 3 2 1 0 + icon: mdi:voice + + # Amikoo Maya Lands :: Sense + + script.amikoosensesight: + friendly_name: Vista + icon: mdi:camera + + # Amikoo Maya Lands :: Communication + + script.amikoocommunicationaudio: + friendly_name: Audio + icon: mdi:audiobook + + script.amikoocommunicationimage: + friendly_name: Imágen + icon: mdi:file-image + + script.amikoocommunicationvideo: + friendly_name: Video + icon: mdi:file-video + + # Amikoo Maya Lands :: Expertise + + script.amikoogcvisionapi: + friendly_name: Google Vision API + icon: mdi:camera + script.amikoogctranslationapi: + friendly_name: Google Translation API + icon: mdi:google-translate + + # Amikoo Maya Lands :: Knowledge + + script.sphero: + friendly_name: Frases Populares + icon: mdi:audiobook + + script.makeblock: + friendly_name: Centro de Visitantes + icon: mdi:audiobook + + # Amikoo Maya Lands :: Applications + + script.coji: + friendly_name: Discurso Bilingüe + icon: mdi:speaker + script.meccanoid: + friendly_name: Baile Thriller + icon: mdi:account + script.chip: + friendly_name: Fotógrafo + icon: mdi:camera + + # Central Maya Lowlands, Stations + + script.acapulco: + friendly_name: 1. Antes del inicio + icon: mdi:audiobook + script.cancun: + friendly_name: 2. Intel + icon: mdi:audiobook + script.huatulco: + friendly_name: 3. Intel GDC + icon: mdi:audiobook + script.mazatlan: + friendly_name: 4. El microprocesador + icon: mdi:audiobook + script.puertovallarta: + friendly_name: 5. Labs y Fabs + icon: mdi:audiobook + + # Central Maya Lowlands, Stations + + script.ixtapa: + friendly_name: Preguntas + icon: mdi:audiobook + + # Central Maya Lowlands, Sandbox + + script.veracruz: + friendly_name: Sandbox + icon: mdi:test-tube + + # Northern Maya Lowlands + + script.montesazules: + friendly_name: 1. Bienvenida Experiencia Intel + icon: mdi:audiobook + + script.ojodeliebre: + friendly_name: 2. Juego Binario + icon: mdi:audiobook + + script.lamichilia: + friendly_name: 3. Intel en el Espacio + icon: mdi:audiobook + + script.elcielo: + friendly_name: 4. Los Muones + icon: mdi:audiobook + + script.mapimi: + friendly_name: 5. Hasta Pronto + icon: mdi:audiobook + + script.siankaan: + friendly_name: El Baile de Lupe + icon: mdi:test-tube + + script.calakmul: + friendly_name: La Ciencia + icon: mdi:test-tube + + script.tiburonballena: + friendly_name: Planeta Marte + icon: mdi:test-tube + + # Console Maya Lands : Keypad Yes No + + script.keypadyes: + friendly_name: Botón Sí + icon: mdi:check-circle + + script.keypadno: + friendly_name: Botón No + icon: mdi:checkbox-blank-circle + + # Console Maya Lands : Keypad Multiple Choice + + script.keypadone: + friendly_name: Botón Uno + icon: mdi:numeric-1-box + + script.keypadtwo: + friendly_name: Botón Dos + icon: mdi:numeric-2-box + + script.keypadthree: + friendly_name: Botón Tres + icon: mdi:numeric-3-box + + script.keypadfour: + friendly_name: Botón Cuatro + icon: mdi:numeric-4-box + + # Media Maya Lands : Corporate + + switch.aak: + friendly_name: Imágenes Corporativas + icon: mdi:folder-multiple-image + switch.aayin: + friendly_name: Videos Corporativos + icon: mdi:file-video + + # Media Maya Lands : Intel Guadalajara + + switch.chakmool: + friendly_name: Imágenes Intel Guadalajara + icon: mdi:folder-multiple-image + + # Media Maya Lands : Visitors Center + + switch.am: + friendly_name: Imágenes Centro de Visitantes + icon: mdi:folder-multiple-image + + # Media Maya Lands : Drawing + + switch.chiich: + friendly_name: Imágenes de Dibujos + icon: mdi:folder-multiple-image + + # Media Maya Lands : Memories + + switch.cho: + friendly_name: Imágenes de Visitas + icon: mdi:folder-multiple-image + switch.chuwen: + friendly_name: Videos de Visitas + icon: mdi:file-video + + # Media Maya Lands : Camera + + switch.kaab: + friendly_name: Vista Previa Cámara + icon: mdi:camera + + # Calendar Maya Lands + + automation.pop: + friendly_name: 30 segundos .. Bienvenida Robot + icon: mdi:calendar-clock + + automation.sip: + friendly_name: 30 segundos .. Bienvenida Servidor + icon: mdi:calendar-clock + + automation.wo: + friendly_name: 15 segundos .. Bienvenida Robot + icon: mdi:calendar-clock + + automation.sotz: + friendly_name: 15 segundos .. PoC Campaign Drones + icon: mdi:calendar-clock + + script.sotz: + friendly_name: PoC Campaign Drones + icon: mdi:drone + + # Tradition Maya Lands :: Navidad + + automation.familia: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.familia: + friendly_name: Sonidos + icon: mdi:speaker + + automation.campana: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.campana: + friendly_name: Sonidos + icon: mdi:speaker + + automation.pesebre: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.pesebre: + friendly_name: Imágenes + icon: mdi:file-image + + automation.trineo: + friendly_name: 10 minutos .. Video + icon: mdi:calendar-clock + + script.trineo: + friendly_name: Video + icon: mdi:file-video + + # Tradition Maya Lands :: Dia De Muertos + + automation.veladora: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.veladora: + friendly_name: Sonidos + icon: mdi:speaker + + automation.papelpicado: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.papelpicado: + friendly_name: Sonidos + icon: mdi:speaker + + automation.mantel: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.mantel: + friendly_name: Imágenes + icon: mdi:file-image + + automation.calaverita: + friendly_name: 10 minutos .. Fantasma + icon: mdi:calendar-clock + + script.calaverita: + friendly_name: Fantasma + icon: mdi:face-profile + + automation.fotografia: + friendly_name: 10 minutos .. Fotógrafo + icon: mdi:calendar-clock + + script.fotografia: + friendly_name: Fotógrafo + icon: mdi:camera + + automation.santaclaus: + friendly_name: 10 minutos .. Feliz Navidad + icon: mdi:calendar-clock + + script.santaclaus: + friendly_name: Feliz Navidad + icon: mdi:face-profile + + # Tradition Maya Lands :: Intel + + automation.4004: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.4004: + friendly_name: Sonidos + icon: mdi:speaker + + automation.8008: + friendly_name: 10 minutos .. Sonidos + icon: mdi:calendar-clock + + script.8008: + friendly_name: Sonidos + icon: mdi:speaker + + automation.8080: + friendly_name: 10 minutos .. Imágenes + icon: mdi:calendar-clock + + script.8080: + friendly_name: Imágenes + icon: mdi:file-image + + automation.8086: + friendly_name: 10 minutos .. Video + icon: mdi:calendar-clock + + script.8086: + friendly_name: Video + icon: mdi:file-video + + automation.80286: + friendly_name: 10 minutos .. Intel Bong + icon: mdi:calendar-clock + + script.80286: + friendly_name: Intel Bong + icon: mdi:face-profile + + automation.i486: + friendly_name: 10 minutos .. Intel Bong + icon: mdi:calendar-clock + + script.i486: + friendly_name: Intel Bong + icon: mdi:face-profile + + # Techie Maya Lands : System Health + + script.toyota: + friendly_name: Verificar Infraestructura + icon: mdi:approval + + script.kodak: + friendly_name: Reiniciar Servidor + icon: mdi:restart + + # Techie Maya Lands : System Calendar + + automation.apple: + friendly_name: 30 minutos .. Anuncio Servidor + icon: mdi:calendar-clock + + # Techie Maya Lands : System Audio + + input_slider.qualcomm: + friendly_name: Volumén % Ajustar + icon: mdi:volume-high + + sensor.qualcomm: + friendly_name: Volumén % Nivel + icon: mdi:volume-high + + #automation.snapdragon: + # friendly_name: Habilitado Ajustar + + #automation.csr101x: + # friendly_name: Habilitado Nivel + + # Techie Maya Lands : System Sandbox + + script.visitorsusb: + friendly_name: Visitantes USB + icon: mdi:usb + + # Techie Maya Lands : System Infrastructure + + device_tracker.eclipse: + friendly_name: IoT Eclipse Org + icon: mdi:server + + device_tracker.hochob: + friendly_name: Hochob Server + icon: mdi:server-network + + # Techie Maya Lands : System Quote + + sensor.bosch: + friendly_name: Hoy digo... + icon: mdi:approval + + # Intel Experience Day + + script.iedone: + friendly_name: Hola, bienvenidos... + icon: mdi:numeric-1-box + + script.iedtwo: + friendly_name: Que es eso? + icon: mdi:numeric-2-box + + script.iedthree: + friendly_name: Como yo? + icon: mdi:numeric-3-box + + script.ieddance: + friendly_name: Bailar... + + script.iedwelcome: + friendly_name: Saludo + +# Enables the frontend +frontend: + +http: + # Uncomment this to add a password (recommended!) + # api_password: PASSWORD + # Uncomment this if you are using SSL or running in Docker etc + # base_url: example.duckdns.org:8123 + +# Checks for available updates +updater: + +# Discover some devices automatically +#discovery: + +# Allows you to issue voice commands from the frontend in enabled browsers +conversation: + +# Enables support for tracking state changes over time. +history: + +# View all events in a logbook +logbook: + +#camera: +# - platform: ffmpeg +# input: /dev/video0 + +google: + client_id: !secret google_calendar_client_id + client_secret: !secret google_calendar_client_secret + +tts: + - platform: google + cache: true + time_memory: 300 + +input_slider: + + qualcomm: + name: Server Volume + initial: 50 + min: 0 + max: 100 + step: 5 + icon: mdi:volume-medium + +sensor: + + - platform: template + sensors: + imac: + friendly_name: Quién? + value_template: '{{ states.calendar.hochobvcgmailcom.attributes.message }}' + + - platform: template + sensors: + ipod: + friendly_name: Cuando? + value_template: '{{ states.calendar.hochobvcgmailcom.attributes.start_time }}' + + - platform: command_line + name: Qualcomm + command: amixer -D pulse sget Master | grep Left | grep -Eo '\[(\w+)\%\]' | grep -Eo '\w+' + unit_of_measurement: "%" + value_template: '{{ value | int }}' + + - platform: systemmonitor + name: SpaceX + resources: + - type: processor_use + - type: memory_free + - type: disk_use_percent + arg: /home/ + + - platform: command_line + name: Bosch + command: fortune + scan_interval: 300 + +device_tracker: + - platform: ping + hosts: + eclipse: iot.eclipse.org + hochob: 10.215.56.158 + +script: + + # Southern Maya Highlands + + aguascalientes: + sequence: + - service: shell_command.aguascalientes + + bajacalifornianorte: + sequence: + - service: shell_command.bajacalifornianorte + + bajacaliforniasur: + sequence: + - service: shell_command.bajacaliforniasur + + campeche: + sequence: + - service: shell_command.campeche + + michoacan: + sequence: + - service: shell_command.michoacan + + zacatecas: + sequence: + - service: shell_command.zacatecas + + # Amikoo Maya Lands + + resetall: + sequence: + - service: shell_command.resetall + + # Amikoo Maya Lands :: Movement + + headright: + sequence: + - service: shell_command.headright + + headleft: + sequence: + - service: shell_command.headleft + + rightup: + sequence: + - service: shell_command.rightup + + rightdown: + sequence: + - service: shell_command.rightdown + + rightfold: + sequence: + - service: shell_command.rightfold + + rightunfold: + sequence: + - service: shell_command.rightunfold + + leftup: + sequence: + - service: shell_command.leftup + + leftdown: + sequence: + - service: shell_command.leftdown + + leftfold: + sequence: + - service: shell_command.leftfold + + leftunfold: + sequence: + - service: shell_command.leftunfold + + moveright: + sequence: + - service: shell_command.moveright + + moveleft: + sequence: + - service: shell_command.moveleft + + moveforward: + sequence: + - service: shell_command.moveforward + + movebackward: + sequence: + - service: shell_command.movebackward + + movestop: + sequence: + - service: shell_command.movestop + + # Amikoo Maya Lands :: Voice + + amikoovoice: + sequence: + - service: shell_command.amikoovoice + + # Amikoo Maya Lands :: Sense + + amikoosensesight: + sequence: + - service: shell_command.amikoosensesight + + # Amikoo Maya Lands :: Communication + + amikoocommunicationaudio: + sequence: + - service: shell_command.amikoocommunicationaudio + + amikoocommunicationimage: + sequence: + - service: shell_command.amikoocommunicationimage + + amikoocommunicationvideo: + sequence: + - service: shell_command.amikoocommunicationvideo + + # Amikoo Maya Lands :: Expertise + + amikoogcvisionapi: + sequence: + - service: shell_command.amikoogcvisionapi + + amikoogctranslationapi: + sequence: + - service: shell_command.amikoogctranslationapi + + # Amikoo Maya Lands :: Knowledge + + sphero: + sequence: + - service: shell_command.sphero + + makeblock: + sequence: + - service: shell_command.makeblock + + # Amikoo Maya Lands :: Application + + coji: + sequence: + - service: shell_command.coji + + meccanoid: + sequence: + - service: shell_command.meccanoid + + chip: + sequence: + - service: shell_command.chip + + # Central Maya Lowlands, Stations + + acapulco: + sequence: + - service: shell_command.acapulco + + cancun: + sequence: + - service: shell_command.cancun + + huatulco: + sequence: + - service: shell_command.huatulco + + mazatlan: + sequence: + - service: shell_command.mazatlan + + puertovallarta: + sequence: + - service: shell_command.puertovallarta + + # Central Maya Lowlands, Questions + + ixtapa: + sequence: + - service: shell_command.ixtapa + + # Central Maya Lowlands, Sandbox + + veracruz: + sequence: + - service: shell_command.veracruz + + # Northern Maya Lowlands + + ojodeliebre: + sequence: + - service: shell_command.ojodeliebre + + montesazules: + sequence: + - service: shell_command.montesazules + + lamichilia: + sequence: + - service: shell_command.lamichilia + + elcielo: + sequence: + - service: shell_command.elcielo + + mapimi: + sequence: + - service: shell_command.mapimi + + siankaan: + sequence: + - service: shell_command.siankaan + + calakmul: + sequence: + - service: shell_command.calakmul + + tiburonballena: + sequence: + - service: shell_command.tiburonballena + + # Calendar Maya Lands + + sotz: + sequence: + - service: shell_command.sotz + + # Tradition Maya Lands :: Navidad + + familia: + sequence: + - service: shell_command.familia + + campana: + sequence: + - service: shell_command.campana + + pesebre: + sequence: + - service: shell_command.pesebre + + trineo: + sequence: + - service: shell_command.trineo + + santaclaus: + sequence: + - service: shell_command.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + veladora: + sequence: + - service: shell_command.veladora + + papelpicado: + sequence: + - service: shell_command.papelpicado + + mantel: + sequence: + - service: shell_command.mantel + + calaverita: + sequence: + - service: shell_command.calaverita + + fotografia: + sequence: + - service: shell_command.fotografia + + # Tradition Maya Lands :: Intel + + 4004: + sequence: + - service: shell_command.4004 + + 8008: + sequence: + - service: shell_command.8008 + + 8080: + sequence: + - service: shell_command.8080 + + 8086: + sequence: + - service: shell_command.8086 + + 80286: + sequence: + - service: shell_command.80286 + + i486: + sequence: + - service: shell_command.i486 + + # Techie Maya Lands + + toyota: + sequence: + - service: shell_command.toyota + kodak: + sequence: + - service: shell_command.kodak + + visitorsusb: + sequence: + - service: shell_command.visitorsusb + + # Console Maya Lands + + keypadyes: + sequence: + - service: shell_command.keypadyes + keypadno: + sequence: + - service: shell_command.keypadno + keypadone: + sequence: + - service: shell_command.keypadone + keypadtwo: + sequence: + - service: shell_command.keypadtwo + keypadthree: + sequence: + - service: shell_command.keypadthree + keypadfour: + sequence: + - service: shell_command.keypadfour + + # Intel Experience Day + + iedone: + sequence: + - service: shell_command.iedone + + iedtwo: + sequence: + - service: shell_command.iedtwo + + iedthree: + sequence: + - service: shell_command.iedthree + + ieddance: + sequence: + - service: shell_command.ieddance + + iedwelcome: + sequence: + - service: shell_command.iedwelcome + +shell_command: + + # Southern Maya Highlands + + aguascalientes: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Aguascalientes.sh & + bajacalifornianorte: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaNorte.sh & + bajacaliforniasur: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/BajaCaliforniaSur.sh & + campeche: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Campeche.sh & + michoacan: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Michoacan.sh & + zacatecas: ~/CodeLabs/Hochob/Applications/SouthernMayaHighlands/Zacatecas.sh & + + # Central Maya Lowlands, Stations + + acapulco: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Acapulco.sh & + cancun: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Cancun.sh & + huatulco: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Huatulco.sh & + mazatlan: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Mazatlan.sh & + puertovallarta: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/PuertoVallarta.sh & + + # Central Maya Lowlands, Questions + ixtapa: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Ixtapa.sh & + + # Central Maya Lowlands, Sandbox + + veracruz: ~/CodeLabs/Hochob/Applications/CentralMayaLowlands/Veracruz.sh & + + # Northern Maya Lowlands + + montesazules: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/MontesAzules.sh & + ojodeliebre: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/OjoDeLiebre.sh & + lamichilia: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/LaMichilia.sh & + elcielo: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/ElCielo.sh & + mapimi: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/Mapimi.sh & + siankaan: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/SianKaan.sh & + calakmul: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/Calakmul.sh & + tiburonballena: ~/CodeLabs/Hochob/Applications/NorthernMayaLowlands/TiburonBallena.sh & + + # Amikoo Maya Lands + + resetall: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/resetall 1 + + # Amikoo Maya Lands: Movement + + headleft: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/headleft "Head Left" + headright: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/headright "Head Right" + + rightup: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightup "Arm Right Up" + rightdown: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightdown "Arm Right Down" + rightfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightfold "Arm Right Fold" + rightunfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/rightunfold "Arm Right Unfold" + + leftup: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftup "Arm Left Up" + leftdown: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftdown "Arm Left Down" + leftfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftfold "Arm Left Fold" + leftunfold: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/leftunfold "Arm Left Unfold" + + moveright: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveright "Body Move Right" + moveleft: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveleft "Body Move Left" + moveforward: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/moveforward "Body Move Forward" + movebackward: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/movebackward "Body Move Backward" + movestop: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh amikoo/movestop "Body Stop" + + # Amikoo Maya Lands :: Voice + + amikoovoice: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "5 4 3 2 1 0" + + # Amikoo Maya Lands: Sense + + amikoosensesight: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooSense.sh Sight Picture + + # Amikoo Maya Lands :: Communication + + amikoocommunicationaudio: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Audio Random + amikoocommunicationimage: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Image Random + amikoocommunicationvideo: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooCommunication.sh Amikoo Video Random + + # Amikoo Maya Lands: Expertise + + amikoogcvisionapi: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh gcvisionapi 1 + amikoogctranslationapi: ~/CodeLabs/Hochob/Services/Amikoo/Remote/Amikoo.sh gctranslationapi 1 + + # Amikoo Maya Lands :: Knowledge + + sphero: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Sphero.sh & + makeblock: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Makeblock.sh & + + # Amikoo Maya Lands: Application + + coji: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Coji.sh & + meccanoid: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Meccanoid.sh & + chip: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Chip.sh & + + # Console Maya Lands + + keypadyes: ~/CodeLabs/Hochob/Services/Keypad/KeypadYesNo.sh virtual yes & + keypadno: ~/CodeLabs/Hochob/Services/Keypad/KeypadYesNo.sh virtual no & + keypadone: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 1 & + keypadtwo: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 2 & + keypadthree: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 3 & + keypadfour: ~/CodeLabs/Hochob/Services/Keypad/KeypadMultipleChoice.sh virtual 4 & + + # Calendar Maya Lands + + pop: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Pop.sh & + sip: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Sip.sh & + wo: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Wo.sh & + sotz: ~/CodeLabs/Hochob/Applications/CalendarMayaLands/Sotz.sh & + + # Tradition Maya Lands :: Navidad + + familia: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Familia.sh & + campana: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Campana.sh & + pesebre: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Pesebre.sh & + trineo: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/Trineo.sh & + santaclaus: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Navidad/SantaClaus.sh & + + # Tradition Maya Lands :: Dia De Muertos + + veladora: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Veladora.sh & + papelpicado: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/PapelPicado.sh & + mantel: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Mantel.sh & + calaverita: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Calaverita.sh & + fotografia: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/DiaDeMuertos/Fotografia.sh & + + # Tradition Maya Lands :: Intel + + 4004: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/4004.sh & + 8008: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8008.sh & + 8080: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8080.sh & + 8086: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/8086.sh & + 80286: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/80286.sh & + i486: ~/CodeLabs/Hochob/Applications/TraditionMayaLands/Intel/i486.sh & + + # Techie Maya Lands + + toyota: ~/CodeLabs/Hochob/Applications/TechieMayaLands/Toyota.sh & + kodak: ssh root@127.0.0.1 sudo reboot + apple: ~/CodeLabs/Hochob/Applications/TechieMayaLands/Apple.sh & + qualcomm: amixer -D pulse sset Master '{{ volume_level }}%' + visitorsusb: ~/CodeLabs/Hochob/Services/Visitors/Usb.sh & + + # Intel Experience Day + + iedone: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Hola, bienvenidos al show de baile de Intel" + iedtwo: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Que es eso" + iedthree: ~/CodeLabs/Hochob/Services/Amikoo/Remote/AmikooVoice.sh spanish "Como yo" + ieddance: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Dance.sh + iedwelcome: ~/CodeLabs/Hochob/Applications/AmikooMayaLands/Welcome.sh + +switch: + + - platform: command_line + switches: + + # Language + + language: + command_on: "~/CodeLabs/Hochob/Services/Language/Language.sh spanish &" + command_off: "~/CodeLabs/Hochob/Services/Language/Language.sh english &" + + # Media Maya Lands: Corporate + + aak: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Aak.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + aayin: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Aayin.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh vlc" + + # Media Maya Lands: Intel Guadalajara + + chakmool: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chakmool.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Visitors Center + + am: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Am.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Drawing + + chiich: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chiich.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + + # Media Maya Lands: Memories + + cho: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Cho.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh eog" + chuwen: + command_on: "~/CodeLabs/Hochob/Applications/MediaMayaLands/Chuwen.sh &" + command_off: "~/CodeLabs/Hochob/Services/Kill/KillApp.sh vlc" + + # Media Maya Lands: Camera + + kaab: + command_on: "cvlc --no-video-title-show --fullscreen v4l2:///dev/video0 &" + command_off: "pkill -9 vlc" + +automation: + + - alias: TTS Clear Cache + trigger: + platform: time + hours: '/24' + condition: + - condition: time + weekday: + - mon + action: + service: tts.clear_cache + + - alias: Home Assistant Start + trigger: + platform: homeassistant + event: start + action: + - delay: '00:00:10' + - service: tts.google_say + data: + message: 'Home Assistant has started' + + # Calendar Maya Lands + + - alias: pop + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.pop + + - alias: sip + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.sip + + - alias: wo + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + action: + - service: shell_command.wo + + - alias: sotz + initial_state: 'off' + trigger: + platform: time + seconds: '/30' + action: + - service: shell_command.sotz + + # Tradition Maya Lands :: Navidad + + - alias: Familia + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.familia + + - alias: Campana + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.campana + + - alias: Pesebre + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.pesebre + + - alias: Trineo + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.trineo + + - alias: SantaClaus + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + - alias: Veladora + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.veladora + + - alias: PapelPicado + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.papelpicado + + - alias: Mantel + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.mantel + + - alias: Calaverita + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.calaverita + + - alias: Fotografia + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.fotografia + + # Tradition Maya Lands :: Intel + + - alias: 4004 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + condition: + condition: time + after: '07:00:00' + before: '21:00:00' + action: + - service: shell_command.4004 + + - alias: 8008 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8008 + + - alias: 8080 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8080 + + - alias: 8086 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.8086 + + - alias: 80286 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.80286 + + - alias: i486 + initial_state: 'off' + trigger: + platform: time + minutes: '/10' + seconds: 00 + action: + - service: shell_command.i486 + + # Techie Maya Lands: System Calendar + + - alias: Apple + initial_state: 'off' + trigger: + platform: time + minutes: '/30' + seconds: 00 + action: + - service: shell_command.apple + + # Techie Maya Lands: System Audio + + - alias: snapdragon + initial_state: 'on' + trigger: + - platform: state + entity_id: input_slider.qualcomm + action: + - service: shell_command.qualcomm + data_template: + volume_level: "{{ states.input_slider.qualcomm.state }}" + + - alias: csr101x + initial_state: 'on' + trigger: + - platform: state + entity_id: sensor.qualcomm + action: + - service: input_slider.select_value + data_template: + entity_id: input_slider.qualcomm + value: "{{ states.sensor.qualcomm.state | int }}" + +group: + + default_view: + view: yes + name: Sensei + entities: + - group.techiemayalandssystemhealth + - group.techiemayalandssystemcalendar + - group.captainmayalandslanguage + + # Southern Maya Highlands + + southernmayalands: + view: yes + name: Bienvenida + entities: + - group.southernmayahighlandsintroduction + - group.southernmayahighlandsrobot + - group.southernmayahighlandstour + #- group.southernmayahighlandssandbox + + # Amikoo Maya Lands + + robotmayalands: + view: yes + name: Robot + entities: + #- group.robotmayalandsvoice + #- group.robotmayalandssense + #- group.robotmayalandscommunication + #- group.robotmayalandsexpertise + #- group.robotmayalandsapplications + #- group.robotmayalandsknowledge + - group.robotmayalandshead + - group.robotmayalandsarmright + - group.robotmayalandsarmleft + - group.robotmayalandslegs + - group.robotmayalandsreset + + # Central Maya Lowlands + + centralmayalowlands: + view: yes + name: Inicios + entities: + - group.centralmayalowlandsstations + #- group.centralmayalowlandsquestions + #- group.centralmayalowlandssandbox + + # Northern Maya Lowlands + + northernmayalowlands: + view: yes + name: Experiencia + entities: + - group.northernmayalowlandsstations + #- group.northernmayalowlandsstories + #- group.northernmayalowlandsrobot + + # Console Maya Lands + + consolemayalands: + view: no + #icon: mdi:keyboard + name: Teclado + entities: + - group.consolemayalandskeypadyesno + - group.consolemayalandskeypadmultiplechoice + + # Media Maya Lands + + mediamayalands: + view: no + #icon: mdi:filmstrip + name: Memorias + entities: + - group.mediamayalandscorporate + - group.mediamayalandsintelguadalajara + - group.mediamayalandsvisitorscenter + - group.mediamayalandsdrawing + - group.mediamayalandsmemories + - group.mediamayalandscamera + + # Calendar Maya Lands + + calendarmayalands: + view: no + name: Calendario + entities: + - group.calendarmayalandseventsinternal + - group.calendarmayalandseventsexternal + - group.calendarmayalandseventscampaign + + # Tradition Maya Lands + + traditionmayalands: + view: no + name: Tradición + entities: + - group.traditionmayalandsnavidadchromecast + - group.traditionmayalandsnavidadamikoo + - group.traditionmayalandsnavidadnohochtata + - group.traditionmayalandsintelchromecast + - group.traditionmayalandsintelamikoo + - group.traditionmayalandsintelnohochtata + - group.traditionmayalandsdiademuertoschromecast + - group.traditionmayalandsdiademuertosamikoo + + # Techie Maya Lands + + techiemayalands: + view: yes + name: Techie + entities: + - group.techiemayalandssystemhealth + - group.techiemayalandssystemcalendar + - group.techiemayalandssystemaudio + - group.techiemayalandssystemmonitor + - group.techiemayalandssystemevent + - group.techiemayalandssystemquote + - group.techiemayalandsserverinfrastructure + #- group.techiemayalandssandbox + + intelexperiencedaylands: + view: no + name: Intel Experience Day + entities: + - group.intelexperiencedaylandsopening + - group.intelexperiencedaylandsdance + - group.intelexperiencedaylandswelcome + + # Captain Maya Lands: Language + + captainmayalandslanguage: + name: Idioma + entities: + - switch.language + + # Southern Maya Highlands: Introduction + + southernmayahighlandsintroduction: + name: 1 Introduccion + entities: + - script.aguascalientes + + # Southern Maya Highlands: Robot + + southernmayahighlandsrobot: + name: 2 Robot + entities: + - script.bajacalifornianorte + - script.bajacaliforniasur + - script.michoacan + + # Southern Maya Highlands: Tour + + southernmayahighlandstour: + name: 3 Tour + entities: + - script.campeche + + # Southern Maya Highlands: Sandbox + + southernmayahighlandssandbox: + name: Sandbox + entities: + - script.zacatecas + + # Amikoo Maya Lands: Voice + + robotmayalandsvoice: + name: Voz + entities: + - script.amikoovoice + + # Amikoo Maya Lands: Sense + + robotmayalandssense: + name: Sentido + entities: + - script.amikoosensesight + + # Amikoo Maya Lands: Communication + + robotmayalandscommunication: + name: Comunicación + entities: + - script.amikoocommunicationaudio + - script.amikoocommunicationimage + - script.amikoocommunicationvideo + + # Amikoo Maya Lands: Expertise + + robotmayalandsexpertise: + name: Especialización + entities: + - script.amikoogcvisionapi + - script.amikoogctranslationapi + + # Amikoo Maya Lands: Applications + + robotmayalandsapplications: + name: Aplicaciones + entities: + - script.coji + - script.meccanoid + - script.chip + + # Amikoo Maya Lands: Knowledge + + robotmayalandsknowledge: + name: Conocimiento + entities: + - script.makeblock + - script.sphero + + # Amikoo Maya Lands :: Movement :: Head + + robotmayalandshead: + name: Cabeza + entities: + - script.headright + - script.headleft + + # Amikoo Maya Lands :: Movement :: Arm Right + + robotmayalandsarmright: + name: Brazo Derecho + entities: + - script.rightup + - script.rightdown + - script.rightfold + - script.rightunfold + + # Amikoo Maya Lands :: Movement :: Arm Left + + robotmayalandsarmleft: + name: Brazo Izquierdo + entities: + - script.leftup + - script.leftdown + - script.leftfold + - script.leftunfold + + # Amikoo Maya Lands :: Movement :: Legs + + robotmayalandslegs: + name: Piernas + entities: + - script.moveright + - script.moveleft + - script.moveforward + - script.movebackward + - script.movestop + + # Amikoo Maya Lands :: Reset + + robotmayalandsreset: + name: Reiniciar + entities: + - script.resetall + + # Central Maya Lowlands: Stations + + centralmayalowlandsstations: + name: Estaciones + entities: + - script.acapulco + - script.cancun + - script.huatulco + - script.mazatlan + - script.puertovallarta + + # Central Maya Lowlands: Questions + + centralmayalowlandsquestions: + name: Conocimiento + entities: + - script.ixtapa + + # Central Maya Lowlands: Sandbox + + centralmayalowlandssandbox: + name: Sandbox + entities: + - script.veracruz + + # Northern Maya Highlands: Stations + + northernmayalowlandsstations: + name: Estaciones + entities: + - script.montesazules + - script.ojodeliebre + - script.lamichilia + - script.elcielo + #- script.mapimi + + # Northern Maya Highlands: Stations + + northernmayalowlandsrobot: + name: Robot Dance + entities: + - script.siankaan + + # Northern Maya Highlands: Stations + + northernmayalowlandsstories: + name: Historias + entities: + - script.calakmul + - script.tiburonballena + + # Console Maya Lands: Keypad Yes No + + consolemayalandskeypadyesno: + name: Teclado Sí No + entities: + - script.keypadyes + - script.keypadno + + # Console Maya Lands: Keypad Multiple Choice + + consolemayalandskeypadmultiplechoice: + name: Teclado Opción Multiple + entities: + - script.keypadone + - script.keypadtwo + - script.keypadthree + - script.keypadfour + + # Media Maya Lands: Corporate + + mediamayalandscorporate: + name: Corporativo + entities: + - switch.aak + - switch.aayin + + # Media Maya Lands: Intel Guadalajara + + mediamayalandsintelguadalajara: + name: Intel Guadalajara + entities: + - switch.chakmool + + # Media Maya Lands: Visitors Center + + mediamayalandsvisitorscenter: + name: Centro de Visitantes + entities: + - switch.am + + # Media Maya Lands: Drawing + + mediamayalandsdrawing: + name: Dibujos + entities: + - switch.chiich + + # Media Maya Lands: Memories + + mediamayalandsmemories: + name: Visitas + entities: + - switch.cho + - switch.chuwen + + # Media Maya Lands: Camera + + mediamayalandscamera: + name: Cámara + entities: + - switch.kaab + + # Calendar Maya Lands: Internal Events + + calendarmayalandseventsinternal: + name: Eventos Internos + entities: + - automation.pop + - automation.sip + + calendarmayalandseventsexternal: + name: Eventos Externos + entities: + - automation.wo + + calendarmayalandseventscampaign: + name: Campaña + entities: + - automation.sotz + - script.sotz + + # Tradition Maya Lands :: Navidad + + traditionmayalandsnavidadchromecast: + name: Navidad <> Chromecast + entities: + - automation.familia + - script.familia + + traditionmayalandsnavidadamikoo: + name: Navidad <> Robot + entities: + - automation.campana + - automation.pesebre + - automation.trineo + - script.campana + - script.pesebre + - script.trineo + + traditionmayalandsnavidadnohochtata: + name: Navidad <> Server + entities: + - automation.santaclaus + - script.santaclaus + + # Tradition Maya Lands :: Dia De Muertos + + traditionmayalandsdiademuertoschromecast: + name: Dia De Muertos <> Chromecast + entities: + - automation.veladora + - script.veladora + + traditionmayalandsdiademuertosamikoo: + name: Dia De Muertos <> Robot + entities: + - automation.papelpicado + - automation.mantel + - automation.calaverita + - automation.fotografia + - script.papelpicado + - script.mantel + - script.calaverita + - script.fotografia + + # Tradition Maya Lands :: Intel + + traditionmayalandsintelchromecast: + name: Intel <> Chromecast + entities: + - automation.4004 + - script.4004 + + traditionmayalandsintelamikoo: + name: Intel <> Robot + entities: + - automation.8008 + - automation.8080 + - automation.8086 + - automation.80286 + - script.8008 + - script.8080 + - script.8086 + - script.80286 + + traditionmayalandsintelnohochtata: + name: Intel <> Server + entities: + - automation.i486 + - script.i486 + + # Techie Maya Lands: System Health + + techiemayalandssystemhealth: + name: Verificación del Sistema + entities: + - script.toyota + - script.kodak + + # Techie Maya Lands: System Calendar + + techiemayalandssystemcalendar: + name: Próxima Visita + entities: + - automation.apple + - sensor.imac + - sensor.ipod + #- calendar.hochobvcgmailcom + + # Techie Maya Lands: System Audio + + techiemayalandssystemaudio: + name: Audio del Servidor + entities: + - input_slider.qualcomm + - sensor.qualcomm + #- shell_command.qualcomm + #- automation.snapdragon + #- automation.csr101x + + # Techie Maya Lands: System Monitor + + techiemayalandssystemmonitor: + name: Monitor del Servidor + entities: + - sensor.cpu_use + - sensor.ram_free + - sensor.disk_use_home + #- camera.ffmpeg + + # Techie Maya Lands: System Quote + + techiemayalandssystemquote: + name: Citas del Servidor + entities: + - sensor.bosch + + # Techie Maya Lands: Server Infrastructure + + mayalandsserverinfrastructure: + name: Disponibilidad de Servidores + entities: + - device_tracker.eclipse + - device_tracker.hochob + + # Techie Maya Lands: Sandbox + + techiemayalandssandbox: + name: Sandbox + entities: + - script.visitorsusb + + intelexperiencedaylandsopening: + name: Escenario + entities: + - script.iedone + - script.iedtwo + - script.iedthree + + intelexperiencedaylandsdance: + name: Baile + entities: + - script.ieddance + + intelexperiencedaylandswelcome: + name: Bienvenida + entities: + - script.iedwelcome + - automation.wo diff --git a/Hochob/Services/Calendar/GoogleCalendar.py b/Hochob/Services/Calendar/GoogleCalendar.py new file mode 100755 index 00000000..2372f0f6 --- /dev/null +++ b/Hochob/Services/Calendar/GoogleCalendar.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from __future__ import print_function +import httplib2 +import os + +from apiclient import discovery +from oauth2client import client +from oauth2client import tools +from oauth2client.file import Storage + +import datetime + +try: + import argparse + flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() +except ImportError: + flags = None + +# If modifying these scopes, delete your previously saved credentials +# at ~/.credentials/calendar-python-quickstart.json +SCOPES = 'https://www.googleapis.com/auth/calendar.readonly' +CLIENT_SECRET_FILE = 'client_secret.json' +APPLICATION_NAME = 'Google Calendar API Python Quickstart' + + +def get_credentials(): + """Gets valid user credentials from storage. + + If nothing has been stored, or if the stored credentials are invalid, + the OAuth2 flow is completed to obtain the new credentials. + + Returns: + Credentials, the obtained credential. + """ + home_dir = os.path.expanduser('~') + credential_dir = os.path.join(home_dir, '.credentials') + if not os.path.exists(credential_dir): + os.makedirs(credential_dir) + credential_path = os.path.join(credential_dir, + 'calendar-python-quickstart.json') + + store = Storage(credential_path) + credentials = store.get() + if not credentials or credentials.invalid: + flow = client.flow_from_clientsecrets(CLIENT_SECRET_FILE, SCOPES) + flow.user_agent = APPLICATION_NAME + if flags: + credentials = tools.run_flow(flow, store, flags) + else: # Needed only for compatibility with Python 2.6 + credentials = tools.run(flow, store) + print('Storing credentials to ' + credential_path) + return credentials + +def main(): + """Shows basic usage of the Google Calendar API. + + Creates a Google Calendar API service object and outputs a list of the next + 10 events on the user's calendar. + """ + credentials = get_credentials() + http = credentials.authorize(httplib2.Http()) + service = discovery.build('calendar', 'v3', http=http) + + now = datetime.datetime.utcnow() - datetime.timedelta(hours=+2) + now = now.isoformat() + 'Z' + #now = datetime.datetime.utcnow().isoformat() + 'Z' # 'Z' indicates UTC time + eventsResult = service.events().list( + calendarId='primary', timeMin=now, maxResults=1, singleEvents=True, + orderBy='startTime').execute() + events = eventsResult.get('items', []) + + if not events: + """ print('No upcoming events found.')""" + for event in events: + start = event['start'].get('dateTime', event['start'].get('date')) + name = event['summary'].encode('utf-8') + print(name) + #titulo=" Bienvenidos \n"+event['summary'] + #instruccion="convert -pointsize 90 -fill white -draw \'text 50,100 \" "+str(titulo)+" \" \' intel.jpg intel2.jpg" + #os.system(instruccion) + #os.system("feh --fullscreen intel2.jpg") + + +if __name__ == '__main__': + main() diff --git a/Hochob/Services/Calendar/Name.sh b/Hochob/Services/Calendar/Name.sh new file mode 100755 index 00000000..2dede228 --- /dev/null +++ b/Hochob/Services/Calendar/Name.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export NAME_PID=$$ + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +#echo "Instituto Triki Tran" +python $HOCHOB_SERVER_SERVICES_CALENDAR/GoogleCalendar.py + +# End of File diff --git a/Hochob/Services/Calendar/client_secret.json b/Hochob/Services/Calendar/client_secret.json new file mode 100644 index 00000000..916b5af0 --- /dev/null +++ b/Hochob/Services/Calendar/client_secret.json @@ -0,0 +1 @@ +{"installed":{"client_id":"199573476774-n9louvdbg84sl4c6hblehrcnqjingkkm.apps.googleusercontent.com","project_id":"inlaid-sentinel-168814","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"Y3d1jXCP8aR9XghbDbEk9P_R","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}} \ No newline at end of file diff --git a/Hochob/Services/Camera/Fswebcam.sh b/Hochob/Services/Camera/Fswebcam.sh new file mode 100755 index 00000000..1059fc3a --- /dev/null +++ b/Hochob/Services/Camera/Fswebcam.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +#. ~/CodeLabs/Hochob/Main.sh + +export FSWEBCAM_PID=$$ +export FSWEBCAM_BINARY=fswebcam +export FSWEBCAM_ARGUMENTS="-r 4096x2304 -s brightness=50% -s Contrast=50% -s Gamma=50% --jpeg 100 --no-banner" +export FSWEBCAM_IMAGE=$HOCHOB_SERVER_MEDIA_SOURCE_CAMERA_FSWEBCAM_IMAGE + +LOCAL_IMAGES="$1" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +IMAGE=1 + +if [ $# -eq 1 ] +then + + while [ $IMAGE -le "$LOCAL_IMAGES" ] + do + DATE=`date +"%Y%m%d%H%M%S"` + NAME=`printf %04d $IMAGE` + $FSWEBCAM_BINARY $FSWEBCAM_ARGUMENTS $FSWEBCAM_DIRECTORY/$NAME.jpg + cp $FSWEBCAM_DIRECTORY/$NAME.jpg $FSWEBCAM_IMAGE + IMAGE=$(($IMAGE+1)) + done + +else + echo "Invalid number of arguments, see Documentation" + exit 1 +fi + + +# End of File diff --git a/Hochob/Services/Communications/MqttClient/Mosquitto.sh b/Hochob/Services/Communications/MqttClient/Mosquitto.sh new file mode 100755 index 00000000..2d429577 --- /dev/null +++ b/Hochob/Services/Communications/MqttClient/Mosquitto.sh @@ -0,0 +1,51 @@ +#!/bin/sh + +set -x + +# ============================================================================= +# Variables +# ============================================================================= + +. ~/CodeLabs/Hochob/Main.sh + +export MOSQUITTO_PID=$$ +export MOSQUITTO_PUB_BINARY=mosquitto_pub +export MQTT_SERVER_ADDRESS=$MQTT_SERVER_ADDRESS +export MQTT_SERVER_PORT=$MQTT_SERVER_PORT + +LOCAL_TOPIC="${1}" +LOCAL_MESSAGE="${2}" + +# ============================================================================= +# Functions +# ============================================================================= + +# None + +# ============================================================================= +# Main +# ============================================================================= + +i=0 +for var in "$@" +do + if [ "$i" -gt 1 ]; then + LOCAL_MESSAGE=$LOCAL_MESSAGE" $var" + echo $LOCAL_MESSAGE + fi + i=`expr $i + 1` +done + +$MOSQUITTO_PUB_BINARY -h $MQTT_SERVER_ADDRESS -p $MQTT_SERVER_PORT -q 2 -t "$LOCAL_TOPIC" -m "\"${LOCAL_MESSAGE}\"" + +exit 0 + +if [ $# -eq 2 ] +then + $MOSQUITTO_PUB_BINARY -h $MQTT_SERVER_ADDRESS -p $MQTT_SERVER_PORT -q 1 -t $LOCAL_TOPIC -m $LOCAL_MESSAGE +else + echo "Invalid number of arguments, see Documentation" + exit 1 +fi + +# End of File diff --git a/Hochob/Photography/Media/__init__.py b/Hochob/Services/Communications/MqttServer/vernemq.conf similarity index 100% rename from Hochob/Photography/Media/__init__.py rename to Hochob/Services/Communications/MqttServer/vernemq.conf diff --git a/Hochob/Services/Drawing/dibujos/guardar.php b/Hochob/Services/Drawing/dibujos/guardar.php new file mode 100644 index 00000000..dc93aa77 --- /dev/null +++ b/Hochob/Services/Drawing/dibujos/guardar.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/Hochob/Services/Drawing/index.html b/Hochob/Services/Drawing/index.html new file mode 100644 index 00000000..ba5632ae --- /dev/null +++ b/Hochob/Services/Drawing/index.html @@ -0,0 +1,114 @@ + + + +
+