Set Radio station using scene

Discussion in 'General Discussion' started by Newbie, Sep 6, 2012.

  1. Newbie

    Newbie

    Joined:
    Jun 16, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    South Africa
    can you set radio station using your scenes on your Spectrum Colour(logic)?
     
    Newbie, Sep 6, 2012
    #1
  2. Newbie

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,420
    Likes Received:
    62
    Location:
    Adelaide
    Yes and No..

    You can't include it as part of the scene itself, but you can write logic to change the preset in response to the scene trigger.

    I do this at home myself :

    Code:
    once (GetTriggerLevel("TGBed1Alarm") = 3 {AlarmOn}) then
      begin
       if GetBoolSystemIO("BoolEnableB1BlindWakeup") then
         begin
           SetScene("Bed1 Blinds Wakeup");
       end;
    
       if GetBoolSystemIO("BoolEnableB1RadioAlarm") then
         begin
           SetLightingLevel("Bed1 MRA Source", "Tuner1", "0s");
           SetStringSystemIO("BedroomSource", 'Tuner 1');
           SetIntIBSystemIO("Media Transport Control Selection", 1, 1);
           IntWorking := Round((GetIntSystemIO("AlarmRadioVolume") * 255 / 100));
           SetLightingLevel("Bed1 Volume", IntWorking, "12s");
         end;
    end;
    
    The line :
    Code:
    SetIntIBSystemIO("Media Transport Control Selection", 1, 1);
    
    uses the Media Transport function to set the "Selection" for Media Link group 1, to value 1. For this to work, you have to assigned Media Link Group 1 to control Tuner 1 in the Matrix Switcher, and have a channel assigned to preset 1 (via the MARPA project).

    Nick
     
    NickD, Sep 7, 2012
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.