From a3ac3085dab578c25be45fa42f9b4e59e53ceb95 Mon Sep 17 00:00:00 2001 From: ecoreng <3725293+ecoreng@users.noreply.github.com> Date: Sun, 5 Nov 2023 15:03:18 -0800 Subject: [PATCH] newest --- .../2_Gear-Speed-Throttle-Brake/part1.ini | 98 ++++++++++++++ README.md | 2 +- ...Game - RPM (80-100%) - N flash.ledsprofile | 120 ++++++++++++++++++ 3 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 OLED/Ingame/2_Gear-Speed-Throttle-Brake/part1.ini create mode 100644 RGB-LEDs/Any Game - RPM (80-100%) - N flash.ledsprofile diff --git a/OLED/Ingame/2_Gear-Speed-Throttle-Brake/part1.ini b/OLED/Ingame/2_Gear-Speed-Throttle-Brake/part1.ini new file mode 100644 index 0000000..61ea770 --- /dev/null +++ b/OLED/Ingame/2_Gear-Speed-Throttle-Brake/part1.ini @@ -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' diff --git a/README.md b/README.md index 4eeeb0d..dfeb8b7 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/RGB-LEDs/Any Game - RPM (80-100%) - N flash.ledsprofile b/RGB-LEDs/Any Game - RPM (80-100%) - N flash.ledsprofile new file mode 100644 index 0000000..a376431 --- /dev/null +++ b/RGB-LEDs/Any Game - RPM (80-100%) - N flash.ledsprofile @@ -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 +} \ No newline at end of file