Jump to content

Creating a script to control my AV receiver


mo-scellaneous
 Share

1 post in this topic

Recommended Posts

Hello everybody, I am trying to build a small app and post on github for others to use.

 

I am trying to remap the volume up and down on my mac keyboard to control the volume on my amplifier. Right now my main concern is creating a daemon that will listen for the key press and send the appropriate command. The amplifier uses telnet. It works send things. The amp does respond back with a new volume, but I will work with that later. I know swift, but I cannot figure out how to create a daemon.

 

host=192.168.0.2

port=8102
cmd1='VU' //Volume up
cmd1='VD' //Volume down
 
( echo open ${host} ${port}
  sleep 1
  echo ${cmd1}
  sleep 1
  echo ${cmd1}
  sleep 1
  
  echo exit ) | telnet
 
Can anybody help me out?
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...