Search Results

Search: Posts Made By: drogert
11,223
Posted By drogert
It does the same thing when I try T="\r" It...
It does the same thing when I try T="\r"

It mutes the amplifier!, so no difference there...

I want to build on this working script, to make a script that switches between channels if my TV is...
11,223
Posted By drogert
Hi, I was trying some things out and I...
Hi,

I was trying some things out and I think I got it!

This what I did:

#!/bin/bash

# Might need \r\n, not sure
T="\r\n"

amp() {
printf "%s${T}" "$*" | nc 192.168.1.155 8102...
11,223
Posted By drogert
Ok, I changed it with -q 2 and added the T="\r\n"...
Ok, I changed it with -q 2 and added the T="\r\n"

It now DOES give a respond:

pi@domoticzpi ~ $ . /home/pi/domoticz/scripts/bash/versterkeruit2.sh
'ot reply 'PWR0
got PWR0


:-D only it...
11,223
Posted By drogert
well, when I run the script: pi@domoticzpi ~...
well, when I run the script:

pi@domoticzpi ~ $ . /home/pi/domoticz/scripts/bash/versterkeruit2.sh
Got reply ''
Did not get PWR0

It gave me this... How did you expected the debugging info? Am...
11,223
Posted By drogert
I run the script and gave me a output, but it was...
I run the script and gave me a output, but it was wrong, The amplifier is on, but it gave me did not get PWR0. I changed the port to 8102 and to 23, both gave the same result. Why did you made it...
11,223
Posted By drogert
Thank you for your help! I guess what I want is...
Thank you for your help! I guess what I want is the following:
I need to send this command: ?p (which send a power request) and then the amp responds with PWR0 if on. Then, when on, send MZ (which...
11,223
Posted By drogert
Sorry I couldn't react earlier! I really like...
Sorry I couldn't react earlier! I really like that you are helping me, but I've been busy last night so I couldnt try it any sooner(wife nagging :p) .

I've tried you script and adjusted some tiny...
11,223
Posted By drogert
Thanks! You are helping me allot! When I...
Thanks! You are helping me allot!

When I add this code into the command line it gives me this:

{
> sleep 2
> echo mz
> sleep 2
> } | telnet 192.168.1.155
Trying 192.168.1.155......
11,223
Posted By drogert
WOW, it works :) I am very happy now! thank...
WOW, it works :)

I am very happy now! thank you very very much!.
You said it would be more robust if I rewrite this into a expect? but how must I do this. I am running this on a Raspberry Pi...
11,223
Posted By drogert
anyone?
anyone?
11,223
Posted By drogert
Telnet script to amplifier
Hi all!

I have a Pioneer VSX-921 which I am very happy about. It has airplay, lots of other features. One of them is controlling it with your Iphone and telnet.
And now it becomes interesting! I...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy