Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
13.01.2016, 14:48
(This post was last modified: 13.01.2016, 14:51 by FatMax.)
Thanks for amazing help! I´ll test this and report back!
EDIT:
Getting error at line15, it´s expecting = near dec...?
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
You should never place code that is executed by itself into common functions. Common functions is included in every script and should only contain functions.
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
I see, thanks, understand better know!
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
I´ve been experimenting a lot with the script above, trying to get the Player ID from the system. I cannot execute anything without that elementary piece of information.
So, someone who actually knows how this works; What´s the next step? I´m getting responses from the system with various commands, I´m just missing what they´re calling payload information...
Anyone up for the challenge?
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
It´s pretty strange, even though I get success in the log when sending the auth, by sending a check account shortly after it says I´m signed out.
I think I´ll have to try this with a computer on the network itself, after all, all I need is the damn player id to be able to control volume up and down and play/pause, which is the only thing I´ll be using it for initially.
Thank you for the tremendous support, I´ve never experienced anything like it really.
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
I´ve had someone over in the house to locally telnet directly into the heos and that finally gave me the PID i was looking for. The payload seems to be missing from the responses run through the scripts here.
Changing volume and muting seems to be working just fine now, thanks for all your help!