drmark12pa Posted April 11, 2015 Share Posted April 11, 2015 I currently have a Sirius internet radio in my system which has 10 channel presets that can be used so I store my 10 most listened to channels using those. On my SR250 remote I can just hit one of the number buttons and that will change the radio to the corresponding preset.Is there a way to "capture" the button/preset that is being selected using variables? In turn, can the variable be incremented +1 or decremented -1 by programming a wall keypad button?So, if hit button 5 which is Howard 100, how do I store the current preset variable as "5". Then hitting a button on a keypad, increase the variable to 6 and when this changes then preset 6 would be selected.The changing channel part I can figure out for changing the channel but I'm having trouble figuring out a way to capture that button on the remote so I could actually have a variable that is keeping track of the current preset. Link to comment Share on other sites More sharing options...
Cyknight Posted April 11, 2015 Share Posted April 11, 2015 You can actually trigger any command sent to the room you want. Select the room on the left hand side, and select the desired command from the "commands" drop down, in you case the numbers. You'd end up with something like: WHEN [room] command [number] is receivedIF [room] current selected device is Sirius-set [variable] to x You would have to do this 10 times though - you can't actually 'capture' the number press to auto create x. Link to comment Share on other sites More sharing options...
drmark12pa Posted April 11, 2015 Author Share Posted April 11, 2015 It sounds like my idea isn't possible in this case. My plan was to basically use the variable to correspond to the preset. So if you tap a button 3 times, it would increase the variable by 3. So if you were on preset 5 it would go to preset 8. Link to comment Share on other sites More sharing options...
Matt Lowe Posted April 11, 2015 Share Posted April 11, 2015 you could just have it cycle through stations if variable is 1 set station to xxx add 1 stopif variable is 2 set to station to yyyy add 1 stopif varabile is three set station to zzzz add 1 stop Link to comment Share on other sites More sharing options...
drmark12pa Posted April 11, 2015 Author Share Posted April 11, 2015 you could just have it cycle through stations if variable is 1 set station to xxx add 1 stopif variable is 2 set to station to yyyy add 1 stopif varabile is three set station to zzzz add 1 stopThat might work using a macro.... so every time the button was tapped (ie one tap would be +1, two taps would be +2, 3 taps +3) the variable would increase, the macros would then trigger:IF VARIABLE X=1 send command 1IF VARIABLE X=2 send command 2etc I think I will work on that right now! Link to comment Share on other sites More sharing options...
Matt Lowe Posted April 11, 2015 Share Posted April 11, 2015 you could also do numbers received on the remote' if 1 is pressed set variable to 1 if 4 is pressed set variable to 4 Link to comment Share on other sites More sharing options...
drmark12pa Posted April 11, 2015 Author Share Posted April 11, 2015 you could also do numbers received on the remote' if 1 is pressed set variable to 1 if 4 is pressed set variable to 4I would like to actually do this as well but can't seem to find a way in programming to accomplish this. I would have to have something that reads like this: IF AUDIO SOURCE IS SIRIUS-IF 1 IS PRESSED - SET VARIABLE X TO 1-IF 2 IS PRESSED - SET VARIABLE X TO 2 Link to comment Share on other sites More sharing options...
drmark12pa Posted April 11, 2015 Author Share Posted April 11, 2015 Also, can someone explain what SNMP Trap is under variable? Link to comment Share on other sites More sharing options...
Matt Lowe Posted April 11, 2015 Share Posted April 11, 2015 I would like to actually do this as well but can't seem to find a way in programming to accomplish this. I would have to have something that reads like this: IF AUDIO SOURCE IS SIRIUS-IF 1 IS PRESSED - SET VARIABLE X TO 1-IF 2 IS PRESSED - SET VARIABLE X TO 2 from the actions side you would need to select variable X commands set to 1, 2 , 3 , etc Link to comment Share on other sites More sharing options...
drmark12pa Posted April 11, 2015 Author Share Posted April 11, 2015 from the actions side you would need to select variable X commands set to 1, 2 , 3 , etcso it looks like I would have to go to each room under Commands and then do the following lengthy script: When command "1" is received - IF AUDIO SOURCE IS SIRIUS - set variable x to 1 - EXECUTE MACRO SIRIUS(the SIRIUS macro would contain the IF VARIABLE X=3 press preset 3, etc) Link to comment Share on other sites More sharing options...
Matt Lowe Posted April 11, 2015 Share Posted April 11, 2015 just create a macrocould create one for each roomor create a different variable for each room. then each room when button X is pressed if audio is sirius set variable to Y execute macro then you have basic programming that you can copy and paste to each numberthen do all of your programming on one macro. Link to comment Share on other sites More sharing options...
Cyknight Posted April 11, 2015 Share Posted April 11, 2015 It sounds like my idea isn't possible in this case. My plan was to basically use the variable to correspond to the preset. So if you tap a button 3 times, it would increase the variable by 3. So if you were on preset 5 it would go to preset 8.Sure you can, I jsut didnt understand that from you post.Instead of "set variable to" just us "variable +3" Link to comment Share on other sites More sharing options...
Cyknight Posted April 11, 2015 Share Posted April 11, 2015 Hmm. I've been mulling this over, and with the remote, there may be some requirement to edit the driver as well to prevent loops and/or overrides. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.