Thanks to some help from Mitch...
Now with HD Radio Support!
![]()
autodimmer is ready to go, just need to get my FB plugged in to test it out...
Here's the code in case anyone's interested. It's a 17step autodimmer, which uses a photosensor attached to the fusion brain. It uses RRFusion and the new BYRANGE command found in RRExtended.
My skin, you can dynamically change the fusion brain input and output port numbers, so if you dont have/need that feature, replace $IN1PORT$ with the correct port number. All this needs is a Global Timer, which is also found in RRExtended.Code:"AUTODIM","BYVAR;AUTODIMMER;<<SETVARBYCODE;PSENSOR1;ANALOG$IN1PORT$RAW||DRANGE1" "DRANGE1","BYRANGE;$PSENSOR1$;964;1024;DIMMER;0<<DRANGE2" "DRANGE2","BYRANGE;$PSENSOR1$;904;963;DIMMER;10<<DRANGE3" "DRANGE3","BYRANGE;$PSENSOR1$;844;903;DIMMER;15<<DRANGE4" "DRANGE4","BYRANGE;$PSENSOR1$;784;843;DIMMER;20<<DRANGE5" "DRANGE5","BYRANGE;$PSENSOR1$;724;783;DIMMER;25<<DRANGE6" "DRANGE6","BYRANGE;$PSENSOR1$;664;723;DIMMER;30<<DRANGE7" "DRANGE7","BYRANGE;$PSENSOR1$;604;663;DIMMER;35<<DRANGE8" "DRANGE8","BYRANGE;$PSENSOR1$;544;603;DIMMER;40<<DRANGE9" "DRANGE9","BYRANGE;$PSENSOR1$;484;543;DIMMER;45<<DRANGE10" "DRANGE10","BYRANGE;$PSENSOR1$;424;483;DIMMER;50<<DRANGE11" "DRANGE11","BYRANGE;$PSENSOR1$;364;423;DIMMER;55<<DRANGE12" "DRANGE12","BYRANGE;$PSENSOR1$;304;363;DIMMER;60<<DRANGE13" "DRANGE13","BYRANGE;$PSENSOR1$;244;303;DIMMER;65<<DRANGE14" "DRANGE14","BYRANGE;$PSENSOR1$;184;243;DIMMER;70<<DRANGE15" "DRANGE15","BYRANGE;$PSENSOR1$;104;183;DIMMER;75<<DRANGE16" "DRANGE16","BYRANGE;$PSENSOR1$;44;103;DIMMER;80<<DRANGE17" "DRANGE17","BYRANGE;$PSENSOR1$;0;43;DIMMER;85<<"
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Thanks to some help from Mitch...
Now with HD Radio Support!
![]()
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Sorry it's been SO long since I've updated this thread... I've had some other stuff going on, but here is the code to the radio skin I've created with the help of Mitch and others.
Here are the variables you will have to add to your skin.ini:
When all of the radios are turned off (above all set to true), the radio skin WILL NOT APPEAR, it's a safety feature to prevent the skin from possibly lagging or locking up when you do not have any radios attached to the system.Code:NOXM=TRUE NOSR=TRUE NOFM=TRUE
Here are all of the commands you will need to add into the exectbl.ini file:
You will need to create some sort of settings screen to which you can select which radios you will be using. Here is the code for that:Code:"CHECKRADIO","BYVAR;NOFM;SOURCEFM2<<CHECKXM" "CHECKXM","BYVAR;NOXM;SOURCEXM2<<CHECKSR" "CHECKSR","BYVAR;NOSR;SOURCESIRIUS2<<MSGNORADIO" "CHECKRADIO1","BYVAR;NOXM;SOURCEXM<<CHECKSIRIUS1" "CHECKSIRIUS1","BYVAR;NOSR;SOURCESIRIUS" "CHECKRADIO2","BYVAR;NOSR;SOURCESIRIUS<<CHECKFM2" "CHECKFM2","BYVAR;NOFM;SOURCEFM" "CHECKRADIO3","BYVAR;NOFM;SOURCEFM<<CHECKXM3" "CHECKXM3","BYVAR;NOXM;SOURCEXM" "RADIOPRESET","GETPREFIX||GETPVALUE||SAVETOSKIN;$RPREFIX$PRESET$PRESETNUM$;$PVALUE$||SETVAR;$RPREFIX$PRESET$PRESETNUM$;$PVALUE$" "GETPREFIX","BYVAR;ACTIVESOURCEID;<<SETVAR;RPREFIX;HD<<SETVAR;RPREFIX;FM<<SETVAR;RPREFIX;XM<<SETVAR;RPREFIX;SR" "GETPVALUE","BYVAR;ACTIVESOURCEID;<<SETVARBYCODE;PVALUE;FREQUENCE<<SETVARBYCODE;PVALUE;FREQUENCE<<SETVARBYCODE;PVALUE;TRACKNUMBER<<SETVARBYCODE;PVALUE;TRACKNUMBER" "SOURCESIRIUS","SETSOURCE;SIRIUS||SETIND;!CUSTOMsrind;ON||SETIND;!CUSTOMfmind;OFF||SETIND;!CUSTOMxmind;OFF" "SOURCEXM","SETSOURCE;XM||SETIND;!CUSTOMxmind;ON||SETIND;!CUSTOMfmind;OFF||SETIND;!CUSTOMsrind;OFF" "SOURCEFM","SETSOURCE;RADIO||SETIND;!CUSTOMfmind;ON||SETIND;!CUSTOMxmind;OFF||SETIND;!CUSTOMsrind;OFF" "SOURCESIRIUS2","LOAD;radio.skin||SETSOURCE;SIRIUS||SETIND;!CUSTOMsrind;ON||SETIND;!CUSTOMfmind;OFF||SETIND;!CUSTOMxmind;OFF" "SOURCEXM2","LOAD;radio.skin||SETSOURCE;XM||SETIND;!CUSTOMxmind;ON||SETIND;!CUSTOMfmind;OFF||SETIND;!CUSTOMsrind;OFF" "SOURCEFM2","LOAD;radio.skin||SETSOURCE;RADIO||SETIND;!CUSTOMfmind;ON||SETIND;!CUSTOMxmind;OFF||SETIND;!CUSTOMsrind;OFF" "HDDOWN","SETVARBYCODE;HDCHAN;HDSUB||EVAL;HDCHAN2;$HDCHAN$-1||SETVARBYCODE;HDCOUNT;HDSUBCOUNT||BYVAR;HDCHAN;<<HDSUB;$HDCOUNT$<<HDSUB;$HDCHAN2$<<HDSUB;$HDCHAN2$<<HDSUB;$HDCHAN2$<<HDSUB;$HDCHAN2$<<HDSUB;$HDCHAN2$" "HDUP","SETVARBYCODE;HDCHAN;HDSUB||EVAL;HDCHAN2;$HDCHAN$+1||SETVARBYCODE;HDCOUNT;HDSUBCOUNT||BYRANGE;$HDCHAN2$;1;$HDCOUNT$;HDSUB;$HDCHAN2$<<HDSUB;1" "MSGNORADIO","MENU;NORADIO.SKIN"
The above code is for a button and indicator in your settings screen. Clicking the button will change the indicator status as well as save the variable to the skin.ini fileCode:B,119,223,253,37,"BYVAR;NOSR;SETVAR;NOSR;TRUE<<SETVAR;NOSR;FALSE||BYVAR;NOSR;SETVAR;NOSRSTATE;ON<<SETVAR;NOSRSTATE;OFF||SAVETOSKIN;NOSR;$NOSR$||SETIND;!CUSTOMnosr;$NOSRSTATE$", I,78,223,37,37,"!CUSTOMnosr" B,119,273,253,37,"BYVAR;NOXM;SETVAR;NOXM;TRUE<<SETVAR;NOXM;FALSE||BYVAR;NOXM;SETVAR;NOXMSTATE;ON<<SETVAR;NOXMSTATE;OFF||SAVETOSKIN;NOXM;$NOXM$||SETIND;!CUSTOMnoxm;$NOXMSTATE$", I,78,273,37,37,"!CUSTOMnoxm" B,119,323,253,37,"BYVAR;NOFM;SETVAR;NOFM;TRUE<<SETVAR;NOFM;FALSE||BYVAR;NOFM;SETVAR;NOFMSTATE;ON<<SETVAR;NOFMSTATE;OFF||SAVETOSKIN;NOFM;$NOFM$||SETIND;!CUSTOMnofm;$NOFMSTATE$", I,78,323,37,37,"!CUSTOMnofm"
Here is the code for the actual skin:
The system determines which presets to show based on the active source ID.Code:I,284,87,178,30,"HDACTIVE" L,80,344,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET1$MHz<<=$FMPRESET1$MHz<<=Chan: $XMPRESET1$<<=Chan: $SRPRESET1$","CENTER" L,215,344,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET2$MHz<<=$FMPRESET2$MHz<<=Chan: $XMPRESET2$<<=Chan: $SRPRESET2$","CENTER" L,350,344,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET3$MHz<<=$FMPRESET3$MHz<<=Chan: $XMPRESET3$<<=Chan: $SRPRESET3$","CENTER" L,485,344,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET4$MHz<<=$FMPRESET4$MHz<<=Chan: $XMPRESET4$<<=Chan: $SRPRESET4$","CENTER" L,620,344,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET5$MHz<<=$FMPRESET5$MHz<<=Chan: $XMPRESET5$<<=Chan: $SRPRESET5$","CENTER" L,80,477,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET6$MHz<<=$FMPRESET6$MHz<<=Chan: $XMPRESET6$<<=Chan: $SRPRESET6$","CENTER" L,215,477,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET7$MHz<<=$FMPRESET7$MHz<<=Chan: $XMPRESET7$<<=Chan: $SRPRESET7$","CENTER" L,350,477,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET8$MHz<<=$FMPRESET8$MHz<<=Chan: $XMPRESET8$<<=Chan: $SRPRESET8$","CENTER" L,485,477,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET9$MHz<<=$FMPRESET9$MHz<<=Chan: $XMPRESET9$<<=Chan: $SRPRESET9$","CENTER" L,620,477,100,16,192,192,192,8,"Verdana","BYVAR;ACTIVESOURCEID;<<=$HDPRESET10$MHz<<=$FMPRESET10$MHz<<=Chan: $XMPRESET10$<<=Chan: $SRPRESET10$","CENTER" IDL,4 I,100,526,50,75,"MUTE:b" B,100,526,50,75,"MUTE", B,365,515,70,100,"PLAY", B,450,525,50,75,"BYVAR;ACTIVESOURCEID;<<TUNEUP<<TUNEUP<<NEXT<<NEXT", B,300,525,50,75,"BYVAR;ACTIVESOURCEID;<<TUNEDOWN<<TUNEDOWN<<PREV<<PREV", B,725,525,50,75,"VOL-", B,650,525,50,75,"VOL+", B,25,526,50,75,"STOP", B,227,525,70,75,"MIXER||BYVAR;VOICECONF;<<PLAYSOUND;$SKINPATH$Sounds\equalizer.wav", B,503,525,70,75,"load;blackout.skin||BYVAR;VOICECONF;<<PLAYSOUND;$SKINPATH$Sounds\visu.wav", B,575,525,50,75,"REPEAT||BYVAR;VOICECONF;<<PLAYSOUND;$SKINPATH$Sounds\repeat.wav", B,175,525,50,75,"SHUFFLE||BYVAR;VOICECONF;<<PLAYSOUND;$SKINPATH$Sounds\shuffle.wav", L,100,107,173,30,0,0,255,24,"Digital Readout Thick Upright","BYVAR;ACTIVESOURCEID;<<FREQUENCE||= MHz HD||HDSUB<<FREQUENCE<<=XM Radio:<<=Sirius Radio:","LEFT" L,100,137,600,30,0,0,255,24,"Digital Readout Thick Upright","BYVAR;ACTIVESOURCEID;<<RDSNAME<<RDSNAME<<TRACKNUMBER||= - ||XMSTATION<<TRACKNUMBER||= - ||SRSTATION","SCROLL-LEFT" L,100,167,600,30,0,0,255,24,"Digital Readout Thick Upright","TAGARTIST||= - ||TAGTITLE","SCROLL-LEFT" L,565,205,135,24,255,255,255,16,"Digital Readout Thick Upright","DATE","RIGHT" B,79,274,54,54,"BYVAR;ACTIVESOURCEID;<<CHECKRADIO1<<CHECKRADIO1<<CHECKRADIO2<<CHECKRADIO3", B,750,49,49,472,"EXIT", B,48,0,751,49,"EXIT", B,0,0,48,520,"EXIT", L,467,90,30,24,0,0,255,13,"Verdana","BYVAR;ACTIVESOURCEid;<<HDSUBCOUNT", B,653,274,54,54,"BYVAR;ACTIVESOURCEID;<<HDUP", B,458,274,54,54,"BYVAR;ACTIVESOURCEID;<<HDDOWN", B,378,273,54,54,"BYVAR;ACTIVESOURCEID;<<SEEKUP<<TUNEUP<<NEXT<<NEXT", B,228,274,54,54,"BYVAR;ACTIVESOURCEID;<<TUNEDOWN<<FINEDOWN<<PREV<<PREV", I,594,89,31,26,"!CUSTOMxmind" I,502,89,33,26,"HDACTIVE" I,640,89,69,26,"!CUSTOMsrind" I,549,89,31,26,"!CUSTOMfmind" B,153,273,54,54,"BYVAR;ACTIVESOURCEID;<<SEEKDOWN<<TUNEDOWN<<PREV<<PREV", B,303,273,54,54,"BYVAR;ACTIVESOURCEID;<<TUNEUP<<FINEUP<<NEXT<<NEXT", B,80,360,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET1$<<RTUNE;$FMPRESET1$<<XMCHAN;$XMPRESET1$<<SRCHAN;$SRPRESET1$",@SETVAR;PRESETNUM;1||RADIOPRESET@ B,215,360,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET2$<<RTUNE;$FMPRESET2$<<XMCHAN;$XMPRESET2$<<SRCHAN;$SRPRESET2$",@SETVAR;PRESETNUM;2||RADIOPRESET@ B,350,360,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET3$<<RTUNE;$FMPRESET3$<<XMCHAN;$XMPRESET3$<<SRCHAN;$SRPRESET3$",@SETVAR;PRESETNUM;3||RADIOPRESET@ B,485,360,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET4$<<RTUNE;$FMPRESET4$<<XMCHAN;$XMPRESET4$<<SRCHAN;$SRPRESET4$",@SETVAR;PRESETNUM;4||RADIOPRESET@ B,620,360,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET5$<<RTUNE;$FMPRESET5$<<XMCHAN;$XMPRESET5$<<SRCHAN;$SRPRESET5$",@SETVAR;PRESETNUM;5||RADIOPRESET@ B,80,425,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET6$<<RTUNE;$FMPRESET6$<<XMCHAN;$XMPRESET6$<<SRCHAN;$SRPRESET6$",@SETVAR;PRESETNUM;6||RADIOPRESET@ B,215,425,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET7$<<RTUNE;$FMPRESET7$<<XMCHAN;$XMPRESET7$<<SRCHAN;$SRPRESET7$",@SETVAR;PRESETNUM;7||RADIOPRESET@ B,350,425,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET8$<<RTUNE;$FMPRESET8$<<XMCHAN;$XMPRESET8$<<SRCHAN;$SRPRESET8$",@SETVAR;PRESETNUM;8||RADIOPRESET@ B,485,425,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET9$<<RTUNE;$FMPRESET9$<<XMCHAN;$XMPRESET9$<<SRCHAN;$SRPRESET9$",@SETVAR;PRESETNUM;9||RADIOPRESET@ B,620,425,100,50,"BYVAR;ACTIVESOURCEID;<<RTUNE;$HDPRESET10$<<RTUNE;$FMPRESET10$<<XMCHAN;$XMPRESET10$<<SRCHAN;$SRPRESET10$",@SETVAR;PRESETNUM;10||RADIOPRESET@ L,100,205,135,24,255,255,255,16,"Digital Readout Thick Upright","TIME","LEFT" S01,798,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,TRUE,"12","Arial"
You'll also need to create a screen called noradio.skin, which is just a simple dialog menu with an OK button. This is the screen that appears when all radios are turned off in the settings screen.
I hope this is useful to everyone...
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Updated today. New screenshots are the big ones (640x427). More to come tonight as i have to run off to work.
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Release date?
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
Not for bit yet... I get occasional IM updates as to where or what he's worked on....
RideRunner...The #1 FE, PERIOD.
Current Project: DFXVoice [v1.0 Released]
Next in line: RRMedia v2.0
DFX 5.1.1 Skin
Appstore Link
My RideRunner Plugins
RRMedia
RRExtended
DFXVoice
"There are no bugs - only undocumented features."
hopefully it actually shouldnt be too much longer...once i have it in my car and running and i'm sure all the bugs are worked out (like a bug i found in the port config screen), i'll make a full release. I wont be able to do a clear background because of the shadow's on the buttons and some screens, but i will also include the PNG (adobe fireworks) document with all of the layers in it so that you can put your own image in the background. I'll also release it with just a black background, or, if someone wants, I can put their background in and send them the skin w/ the correct images.
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Minor setback with the coding... Turns out that Sonicxtacy's RRFusion plugin (not the official release, but the multi-brain version he never released) doesn't have everything i need in it to complete this skin...SO I'm going to have to do a little more work and use the COM interface and the Fusion Brain MDX software to get this working. I was kinda hoping to just be able to have FB commands that are native to RR and do what i want, but oh well...
Just for clarification, Shaun's RRFusion official release is great for single-brain systems, I just have far far more stuff to control and sensors to read than 1 brain could handle...
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
would you mind terribly helping me with the MDX/COM stuff? I'm 100% new to working with it as I was previously planning to use the RRFusion plugin.
Planning: [|||||||||-] 90%
Purchased: [|||||||||/] 99%
Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)
Bookmarks