Skip to content

Instantly share code, notes, and snippets.

View petrjac's full-sized avatar

petrjac

  • Prague, Czech Republic
View GitHub Profile
#!/bin/bash
#HEOS_CLI_ProtocolSpecification-Verion-1.3.pdf
HEOS_IP=<IP_ADDRESS>
HEOS_PORT=1255
HEOS_ID=<HEOS_UNIT_ID>
echo "heos://player/set_play_state?pid=$HEOS_ID&state=play" | telnet $HEOS_IP $HEOS_PORT
echo "heos://player/set_volume?pid=2141622311&level=25" | telnet $HEOS_IP $HEOS_PORT
#!/bin/bash
#echo -e '\x01''\x30''\x31''\x30''\x30''\x31''\x30''\x38''\x35''\x30''\x35''\x36''\x34''\x17' | nc 10.0.0.30 23
#echo -e '\x01''\x30''\x31''\x30''\x30''\x31''\x30''\x38''\x35''\x30''\x35''\x36''\x34''\x17'> /dev/tcp/10.0.0.30/23
#echo '0130313030313038353035363417' | xxd -r -p
#echo -n "0100108505" | xxd -p
#CHECKSUM=$(( 0xff - ((0x01 + 0x00 + 0x10 + 0x87 + 0x06) % 0x100) ))
#CHECKSUM16=`echo "obase=16; $CHECKSUM" | bc`
#echo "0130313030313038373030363717" | xxd -r -p | nc 10.0.0.30 23 #Zhasnout G3