Announcement

Collapse
No announcement yet.

ACTIVESOURCEIDs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ACTIVESOURCEIDs

    I've searched and can't find an answer to this question. Does anyone know where the ACTIVESOURCEIDs are defined or have a listing for them:

    Example 0 - Radio, 2 - XM Radio, 3 - Sirius ...

    My plan is to define an image on my skin that changes based on the ACTIVESOURCEID.

    Bobby


    Sent from my iPhone using Tapatalk

  • #2
    So far I've figured out the following:

    0-HD Radio
    1-FM Radio
    2-XM Radio
    3-Sirius Radio
    4-Audio
    5-Video??

    I read in some documentation there are up to 9 definitions.

    Bobby


    Sent from my iPhone using Tapatalk

    Comment


    • #3
      "ACTIVESOURCEID" - returns 1 = HD Radio, 2 = Radio, 3 = XM Radio, 4 = Sirius Radio, 5 = Audio(mp3), 6 = Video, 7 = DVD, 8 = TV
      -Thanks
      Mitch
      www.rush2112.net

      "Did you test it in carwings??"

      Sun, Come shine my way
      May healing waters bury all my pain
      Wind, Carry me home
      The fabric of reality is tearing apart
      The piece of me that died
      Will return To live again

      Comment


      • #4
        and for plugins.

        9 = DVB, 10 = WebRadio

        Comment


        • #5
          Thanks Mitch and Dartman_71. I have one other questions. In the code below, I'm trying to display a different graphic based on the source ID. Here is a sample:

          IMG,376,546,48,48,"BYVAR;ACTIVESOURCEID;<<ICONS\HD _TUNE.PNG<<ICONS\FM_TUNE.PNG<<ICONS\XM_TUNE.PNG<<I CONS\SR_TUNE.PNG<<ICONS\PLAY.PNG<<ICONS\PLAY.PNG<< ICONS\PLAY.PNG",all

          The code appears to be in the correct syntax, but none of the images are displayed. What am I doing wrong?

          Comment


          • #6
            there is NO support of byvar in IMG (Images) they are static!

            Indicators yes, and hmm.. i could see a neat use of a multistate indicator here...

            Code:
            + Indicators now support "byvar"
              ex. I,xxx,yyy,hhh,www,"byvar;myuservar;image0.png<<image1.png<<image2.png"
              [Will show image0.png when myuservar is 0 or false, will show image1.png
               when myuservar is 1 or true, and will show image2.png when myuservar is 2]
            Last edited by mitchjs; 07-16-2012, 09:27 PM.
            -Thanks
            Mitch
            www.rush2112.net

            "Did you test it in carwings??"

            Sun, Come shine my way
            May healing waters bury all my pain
            Wind, Carry me home
            The fabric of reality is tearing apart
            The piece of me that died
            Will return To live again

            Comment


            • #7
              oh, and any activesourceid > 9 is ambigous

              10 being web radio isnt always true!

              so.. this concept doesnt work past 10

              but each active source has a GUID
              -Thanks
              Mitch
              www.rush2112.net

              "Did you test it in carwings??"

              Sun, Come shine my way
              May healing waters bury all my pain
              Wind, Carry me home
              The fabric of reality is tearing apart
              The piece of me that died
              Will return To live again

              Comment


              • #8
                Mitch,

                Thanks for the replies. You've been a great help. I was able to do it mimicing code on another skin. I used the [I]mage command with the Mask option:

                I,356,540,88,60,"VAR;ACTIVESOURCEID",,,"icons\play _*.png"

                I'm thinking that the "VAR;ACTIVESOURCEID" can be trimmed to simply "ACTIVESOURCEID". In the future, I will use your syntax as it will prevent me from copying and renaming a bunch of files.

                Bobby

                Comment


                • #9
                  So.... how does a skin get the GUID?
                  How can the skinners do the various things based on the active source? I'd like to see something with a unique ID (guid) for each source that we can byvar or byvarx.

                  But.... there are probably only a few uses for something like this...

                  Just my 2 cents
                  Ryan

                  Comment


                  • #10
                    "ACTIVESOURCEGUID" is a Uservar, use skintool to view it!

                    byvar and byvarx not going to work on it...
                    since its not a singular number

                    Web Radio's GUID is {97D76E60-0F9A-4328-A1A4-C99967655630}
                    -Thanks
                    Mitch
                    www.rush2112.net

                    "Did you test it in carwings??"

                    Sun, Come shine my way
                    May healing waters bury all my pain
                    Wind, Carry me home
                    The fabric of reality is tearing apart
                    The piece of me that died
                    Will return To live again

                    Comment


                    • #11
                      Originally posted by rtgree01 View Post
                      So.... how does a skin get the GUID?
                      How can the skinners do the various things based on the active source? I'd like to see something with a unique ID (guid) for each source that we can byvar or byvarx.

                      But.... there are probably only a few uses for something like this...

                      Just my 2 cents
                      Ryan
                      Back in my radical days, I tried to get the "ACTIVESOURCEID" to be ordered more to what most users would use most, but I was overruled so I said screw it and came up with my own:" CURRENTSOURCE".

                      I use it in several ways:

                      1) it saves the currentsource # to the RR.ini in a variable called LASTAUDIO so when I reboot, RR resumes using the Audiosource I last had on:

                      Code:
                      "AUDIO","YT_STOP||SETVAR;TRACKNAME; ||SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;0||LOAD;AUDIO_PLAYER.SKIN"
                      "RADIO","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;1||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;1||LOAD;RADIO_PLAYER.SKIN"
                      "XM","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;2||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;2||LOAD;XM.SKIN"
                      "SIRIUS","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;3||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;3||LOAD;SRADIO.SKIN"
                      "VIDEO","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;4||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;4||LOAD;VIDEO_PLAYER.SKIN"
                      "DVD2","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;5||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;5||DVD"
                      "TV","YT_STOP||SETVAR;TRACKNAME;$TAGTITLE$||SETVAR;lastaudio;6||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;6||LOAD;TV.SKIN"
                      "YT_LOAD","SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;7||YOUTUBE"
                      "RRSHOUT","CHECKNETRADIO||BYVAR;AUTOREFRESH;<<INET1||YT_STOP||SETVAR;TRACKNAME; ||SETVAR;lastaudio;0||SAVETOINI;lastaudio;$lastaudio$||SETVAR;CURRENTSOURCE;0||RRSHOUTCAST"

                      2) it overwrites my ALBUMART for those items not currently supported in the MediaArt plugin, i.e., YouTube and Internet radio:

                      Code:
                      "CHECKNETRADIO","SETVARBYCODE;shoutcheck;ACTIVESOURCE||EVAL;YESTRACK0000;strcomp("$shoutcheck$";"RRShoutcast")||BATTERY0||BYVAR;YESTRACK0000;<<INET1"
                      
                      "INET1","RELOADLIST||INETMENU||INETMENU2||INETMENU3||INETMENU4"
                      "INETMENU","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU.SKIN
                      "INETMENU2","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU_2.SKIN
                      "INETMENU3","LOADIMG;630;100;160;135;InetRadio.JPG;ON",MENU_3.SKIN
                      "INETMENU4","LOADIMG;257;158;279;226;InetRadio.JPG;ON",MENU4.SKIN
                      /, "INETAUDIO","LOADIMG;606;110;172;159;InetRadio.JPG;ON",AUDIO_PLAYER.SKIN
                      
                      "YTSWAP","YTSWAP1||YTSWAP2||YTSWAP3"
                      "YTSWAP1","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU.SKIN
                      "YTSWAP2","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU_2.SKIN
                      "YTSWAP3","LDIMG;630;100;160;135;$PluginsPath$YouTube\art.jpg;ON",MENU_3.SKIN

                      3) its used to set the two lines of data on my main menus to show specific song title/artist/album or Frequence/HDTrackname/RDSName or Youtube/YT_Movie or XMChannel/XMStation

                      Code:
                      "BYVAR;CURRENTSOURCE;TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||Frequence||= - ||HDTRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<TRACKNUMBER||= - ||TRACKNAME<<=YOUTUBE - ||YT_MOVIE","SCROLL-CENTER"
                      "BYVAR;CURRENTSOURCE;tagAlbum<<rdsname<<TRACKNUMBER||= - ||xmstation<<TRACKNUMBER||= - ||srstation<<TRACKpath<<Tagalbum<<Tagalbum<<= ","SCROLL-CENTER"

                      4) its used to determine what command to use for "PAUSE/RESUME" when I shut off my engine and my tablet goes from ACC power to internal battery power and vice versa (after losing external power my Tablet is set to turn the screen off in 1 minute, standby in 20 minutes, hibernate in 4 hours; but if I come back within the 20 minutes, the screen immediately comes back on and the audio is resumed)

                      Code:
                      "TIMER","SETVAR;PSTATE1;$PSTATE$||SETVARBYCODE;pstate;powermon_powersrc||SETVAR;ONBATTERY;$PSTATE1$+$PSTATE$||BYVAR;CURRENTSOURCE;BATTERY0<<BATTERY1<<BATTERY2<<BATTERY3<<BATTERY4<<BATTERY5<<BATTERY6<<YTSWAP"
                      
                      /, ************************MUTE/PAUSE/SILENCE ON BATTERY
                      "BATTERY0","BYSTR;$ONBATTERY$;External+Battery<PAUSE><<Battery+External<RESUME>"
                      "BATTERY1","BYSTR;$ONBATTERY$;External+Battery<PAUSE><<Battery+External<RESUME>"
                      "BATTERY2","BYSTR;$ONBATTERY$;External+Battery<XMMUTE><<Battery+External<XMMUTE>"
                      "BATTERY3","BYSTR;$ONBATTERY$;External+Battery<SRMUTE><<Battery+External<SRMUTE>"
                      "BATTERY4","BYSTR;$ONBATTERY$;External+Battery<PLAY><<Battery+External<PLAY>"
                      "BATTERY5","BYSTR;$ONBATTERY$;External+Battery<PLAY><<Battery+External<PLAY>"
                      "BATTERY6","BYSTR;$ONBATTERY$;External+Battery<MUTE><<Battery+External<MUTE>"
                      "BATTERY7","BYSTR;$ONBATTERY$;External+Battery<YT_PLAY><<Battery+External<YT_PLAY>"

                      5) its also used to setup my external audio recorder's volume levels, recording source, and what to use as the filename:
                      Code:
                      "ONARTCLICKED","BYVAR;CURRENTSOURCE;AUDIOREC<<FMREC<<XMREC<<AUDIOREC<<AUDIOREC<<AUDIOREC<<TVREC<<YTREC<<YTREC<<YTREC"
                      
                      "STARTREC","BYVAR;CURRENTSOURCE;AUDIOREC<<FMREC<<XMREC<<AUDIOREC<<AUDIOREC<<AUDIOREC<<TVREC<<YTREC<<YTREC<<YTREC"
                      
                      "AUDIOREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"
                      "FMREC","SETVARBYCODE;curtrack;FREQUENCE||SETVARBYCODE;srds;rdstext||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$ - $srds$ %n.mp3" -c:05:00"
                      "XMREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:2-58 -q:m:8000 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"
                      "TVREC","SETVARBYCODE;curtrack;trackname||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:22050 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$ %Y %O %D %n.mp3" -c:05:00"
                      "YTREC","SETVARBYCODE;curtrack;YT_MOVIE||RUN;C:\Program Files\Rec\Rec.exe|-v:1-100 -q:s:44100 -s -f:"C:\My Documents\My Music\New\Active Quarter\Last Month\This Month\$curtrack$.mp3" -c:05:00"

                      It could easily be used for numerous other activities, but I just ran out of effort/desire to rewrite all my skins that I use. The above were my primary concerns when I joined the ACTIVESOURCEID bandwagon, but as usual, when it finally came time to add it into the RRCode - it didn't fit my needs so I abandoned it.
                      Last edited by GizmoQ; 07-18-2012, 05:32 PM.
                      HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

                      Comment

                      Working...
                      X