loth project, next step

This commit is contained in:
tth 2020-10-31 01:08:23 +01:00
parent f33a0189a5
commit 2e2db9d427
4 changed files with 43 additions and 4 deletions

View File

@ -1,8 +1,19 @@
# Loth Hacks for fun and profit # Loth Hacks for fun and profit
Le problème est complxe : comment découvrir l'adresse IP d'un machin
qui tourne avec MadMapper ?
Il y a toute une procédure vu que leur truc utilise __Bonjour__ pour
découvrir leurs adresses IP.
`$ mdns-scan`
## en shell ## en shell
Voir `sender.sh` Les paramètres sont dans `config.sh` pour adresser les madboites
vidéo et lumière.
Voir `play.sh`.
## en C ## en C

5
Loth/config.sh Normal file
View File

@ -0,0 +1,5 @@
# config pour le MapMachin
R_IP="10.20.25.6"
R_PORT="1111"

19
Loth/play.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
source config.sh
function envoyer
{
msg=$1
echo $msg
oscsend $R_IP $R_PORT $msg
}
envoyer "/play"
sleep 15
envoyer "/pause"

View File

@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
R_IP="localhost" #
R_PORT="2222" # c'est juste du code d'exemple
#
R_IP="10.20.31.170"
R_PORT="1111"
DEVICE=42 DEVICE=42
@ -12,7 +16,7 @@ oscsend $R_IP $R_PORT $oscpath s "==========="
for foo in $(seq 20 7 80) for foo in $(seq 20 7 80)
do do
echo " " $foo echo " " $foo
message=$(printf "0x%02x" $foo) message=$(printf " 0x%02x" $foo)
oscsend $R_IP $R_PORT $oscpath s "$message" oscsend $R_IP $R_PORT $oscpath s "$message"
sleep 1 sleep 1
done done