Skip to content

Commit

Permalink
newest
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoreng committed Nov 5, 2023
1 parent 3d036b5 commit a3ac308
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 1 deletion.
98 changes: 98 additions & 0 deletions OLED/Ingame/2_Gear-Speed-Throttle-Brake/part1.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
[variable]
name='v5'
value=[DataCorePlugin.GameData.Gear]
sample=3

[variable]
name='v6'
value=[DataCorePlugin.GameData.Brake]
sample=88

[variable]
name='v7'
value=[DataCorePlugin.GameData.Throttle]
sample=99

[variable]
name='v8'
value=[DataCorePlugin.GameData.SpeedLocalUnit]
sample=MPH

[variable]
name='v9'
value=round([SpeedLocal], 0)
sample=39

[text]
text=[context.v5]
id=5
fontType=2
fontSize=2
color=1
align=1
verticalAlign=1
x=22
y=56
visible=1
order=0
name='Gear'

[progressbar]
value=[context.v6]
id=6
color=1
x=0
y=0
height=64
width=4
minValue=0
maxValue=100
vertical=true
reverse=true
visible=1
order=0
name='Brake'

[progressbar]
value=[context.v7]
id=7
color=1
x=124
y=0
height=64
width=4
minValue=0
maxValue=100
vertical=true
reverse=true
visible=1
order=0
name='Accel'

[text]
text=[context.v8]
id=8
fontType=0
fontSize=1
color=1
align=1
verticalAlign=1
x=101
y=55
visible=1
order=0
name='Units'

[text]
text=[context.v9]
id=9
fontType=0
fontSize=3
color=1
align=3
verticalAlign=1
x=120
y=31
visible=1
order=0
name='speed'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ I'm providing some sample meter configurations for the FRG in SimHub
They're provided in separate folders because SimHub manages both components separately.

Video with some samples:
https://www.youtube.com/watch?v=ycWpWfiqpsU
https://youtu.be/f9Xryb7ePtg

## RGB-LEDs
In this folder you can find the "RGB Leds" tab profiles for the meter ring of LEDs. You can import these configurations from SimHub's UI directly and even pick specific games you want the configuration applied.
Expand Down
120 changes: 120 additions & 0 deletions RGB-LEDs/Any Game - RPM (80-100%) - N flash.ledsprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"TestLedsGameData": {
"GearEx": 0,
"FuelMax": 100.0,
"RPMSMax": 10000.0,
"TurboMax": 3.5,
"TurnIndicatorLeftEnabled": false,
"TurnIndicatorRightEnabled": false,
"SessionBestDeltaEx": 0.0,
"AllTimeBestDeltaEx": 0.0,
"DRSEnabled": false,
"DRSAvailable": false,
"MaxRpm": 10000.0,
"GameRunning": true,
"GameName": "CodemastersDirtRally",
"Fuel": 28.061224489795919,
"RPMPercent": 78.571428571428569,
"RPMRedlineReached": false,
"SpeedKmh": 0.0,
"SpeedMph": 0.0,
"Turbo": 0.0,
"TurboPercent": 0.0,
"Gear": "N",
"IsInPitLane": false,
"PitLimiterOn": false,
"AbsEnabled": false,
"AbsActive": true,
"TCEnabled": false,
"TCActive": true,
"LowFuelAlert": false,
"SpotterCarLeft": false,
"SpotterCarRight": false,
"BlackFlag": false,
"YellowFlag": false,
"WhiteFlag": false,
"BlueFlag": false,
"GreenFlag": false,
"CarModel": "Subaru Impreza S4 Rally",
"CarStartedTime": "2023-08-30T23:15:24.8408162-07:00",
"SessionBestDelta": 0.0,
"AllTimeBestDelta": 0.0
},
"LedContainers": [
{
"RpmMode": 1,
"OverrideMaxRPMWithRedlineValue": false,
"PercentMin": 70.0,
"PercentMax": 98.0,
"RPMMin": 0.0,
"RPMMax": 8000.0,
"BlinkDelay": 50,
"StartColor": "Red",
"EndColor": "Red",
"GradientOnAll": true,
"RightToLeft": false,
"LedCount": 24,
"BlinkEnabled": false,
"BlinkOnLastGear": true,
"UseLedDimming": false,
"FillAllLeds": false,
"RelativeToRedline": false,
"StartPosition": 1,
"ContainerId": "6c42c187-a18e-47fe-a7ab-65ab74171158",
"ContainerType": "SimHub.Plugins.DataPlugins.RGBDriver.LedsContainers.RPMContainer",
"Description": "Show leds gradient based on car RPMs",
"IsEnabled": true
},
{
"RpmMode": 1,
"OverrideMaxRPMWithRedlineValue": false,
"PercentMin": 99.0,
"PercentMax": 100.0,
"RPMMin": 0.0,
"RPMMax": 8000.0,
"BlinkDelay": 50,
"StartColor": "AliceBlue",
"EndColor": "AliceBlue",
"GradientOnAll": true,
"RightToLeft": false,
"LedCount": 24,
"BlinkEnabled": true,
"BlinkOnLastGear": true,
"UseLedDimming": true,
"FillAllLeds": false,
"RelativeToRedline": false,
"StartPosition": 1,
"ContainerId": "a04b4d51-208a-41d2-843c-676be9c04e32",
"ContainerType": "SimHub.Plugins.DataPlugins.RGBDriver.LedsContainers.RPMContainer",
"Description": "Show leds gradient based on car RPMs copy",
"IsEnabled": true
},
{
"EnabledFormula": {
"Expression": "[Gear] == 'N' && [DataCorePlugin.GameRunning]"
},
"BlinkFormula": {
"Expression": ""
},
"LedCount": 24,
"Color": "Yellow",
"BlinkEnabled": true,
"BlinkDelay": 300,
"DualBlinkTimingEnabled": false,
"OffDelay": 750,
"OnDelay": 125,
"StartPosition": 1,
"ContainerId": "2838844f-7299-4741-a8c0-2952c61c6fd4",
"ContainerType": "SimHub.Plugins.DataPlugins.RGBDriver.LedsContainers.CustomStatusContainer",
"Description": "Show static leds based on formulas",
"IsEnabled": true
}
],
"GlobalBrightness": 50.0,
"UseProfileBrightness": false,
"Error": "",
"LastLoaded": "2023-11-01T21:31:37.6030724-07:00",
"Name": "RPM (80-100%) - N flash",
"ProfileId": "b7affaa1-e106-4ac1-be1f-d7986816372c",
"GameCode": null
}

0 comments on commit a3ac308

Please sign in to comment.