Skip to content

Commit

Permalink
feat(adu5): add blumalerts widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Blumlaut committed Nov 15, 2023
1 parent 5b6cb3d commit 46de2ee
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ADU5/ADU5.djson

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ADU5/ADU5.djson.carclasses
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions ADU5/blumalerts.djson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Variables":{"DashboardVariables":[]},"DashboardDebugManager":{"WindowPositionSettings":{"IsFullScreen":false,"Position":"-1122,401,800,451","TopMost":false,"AllowTransparency":false,"CloseOnMonitorLoss":false,"NoWindowActivate":false}},"Version":2,"Id":"26ef2afd-fa2c-4270-b42d-8a282576146e","BaseHeight":721,"BaseWidth":1281,"BackgroundColor":"#FF000000","Screens":[{"RenderingSkip":0,"Name":"Main","InGameScreen":true,"IdleScreen":true,"PitScreen":true,"ScreenId":"28763253-6bef-41ec-8666-788c4432ed6d","AllowOverlays":true,"IsForegroundLayer":false,"IsOverlayLayer":false,"OverlayTriggerExpression":{"Expression":""},"ScreenEnabledExpression":{"Expression":""},"OverlayMaxDuration":0,"OverlayMinDuration":0,"IsBackgroundLayer":false,"BackgroundColor":"#FF000000","Items":[{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"Font":"D-DIN DINCondensed","FontSize":85.0,"Text":"MAP 0","TextColor":"#FFFFFFFF","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FF0000FF","Height":120.0,"Left":0.0,"Top":0.0,"Visible":false,"Width":240.0,"Name":"ENGMAP_WARN","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Text":{"FormatString":"MAP 0","Formula":{"Expression":"[EngineMap]"},"Mode":2},"Visible":{"Formula":{"Expression":"changed(1000,[EngineMap])"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"Font":"D-DIN DINCondensed","FontSize":85.0,"Text":"ABS 1","TextColor":"#FF000000","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FF7FFF00","Height":120.0,"Left":0.0,"Top":0.0,"Visible":false,"Width":240.0,"Name":"ABS_WARN","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Text":{"FormatString":"ABS 0","Formula":{"Expression":"[ABSLevel]"},"Mode":2},"Visible":{"Formula":{"Expression":"changed(1000,[ABSLevel])"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"Font":"D-DIN DINCondensed","FontSize":85.0,"Text":"TC 1","TextColor":"#FFFFFFFF","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FF6A5ACD","Height":120.0,"Left":0.0,"Top":0.0,"Visible":false,"Width":240.0,"Name":"TC_WARN","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Text":{"FormatString":"TC 0","Formula":{"Expression":"[TCLevel]"},"Mode":2},"Visible":{"Formula":{"Expression":"changed(1000,[TCLevel])"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"Font":"D-DIN DINCondensed","FontSize":85.0,"Text":"TC2 1","TextColor":"#FFFFFFFF","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FF9932CC","Height":120.0,"Left":0.0,"Top":0.0,"Visible":false,"Width":240.0,"Name":"TC2_WARN","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Text":{"FormatString":"TC2 0","Formula":{"Expression":"[GameRawData.Graphics.TCCut]"},"Mode":2},"Visible":{"Formula":{"Expression":"changed(1000,[GameRawData.Graphics.TCCut])"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"Font":"D-DIN DINCondensed","FontSize":75.0,"Text":"BB 67.5%","TextColor":"#FFFFFFFF","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FFA52A2A","Height":120.0,"Left":0.0,"Top":0.0,"Visible":false,"Width":240.0,"Name":"BRAKEBIAS_WARN_PERC","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Text":{"FormatString":"BB 0.0\\%","Formula":{"Expression":"[BrakeBias]"},"Mode":2},"Visible":{"Formula":{"Expression":"changed(2000,[BrakeBias])"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.ImageItem, SimHub.Plugins","Image":"checkered","AutoSize":false,"BackgroundColor":"#00FFFFFF","Height":59.0,"Left":1142.0,"Top":0.0,"Visible":false,"Width":139.0,"Name":"CHECKEREDFLAG","RenderingSkip":0,"MinimumRefreshIntervalMS":0.0,"Bindings":{"Visible":{"Formula":{"Expression":"[Flag_Checkered]"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.RectangleItem, SimHub.Plugins","IsRectangleItem":true,"BackgroundColor":"#FF00FF00","Height":59.0,"Left":1142.0,"Top":0.0,"Visible":false,"Width":139.0,"Name":"GREENFLAG","RenderingSkip":35,"MinimumRefreshIntervalMS":350.0,"Bindings":{"Visible":{"Formula":{"Expression":"[Flag_Green]"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.RectangleItem, SimHub.Plugins","IsRectangleItem":true,"BackgroundColor":"#FFFFFFFF","Height":59.0,"Left":1142.0,"Top":0.0,"Visible":false,"Width":139.0,"Name":"WHITEFLAG","RenderingSkip":35,"MinimumRefreshIntervalMS":350.0,"Bindings":{"Visible":{"Formula":{"Expression":"[Flag_White]"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.RectangleItem, SimHub.Plugins","IsRectangleItem":true,"BackgroundColor":"#FF0000FF","Height":59.0,"Left":1142.0,"Top":0.0,"Visible":false,"Width":139.0,"Name":"BLUEFLAG","RenderingSkip":35,"MinimumRefreshIntervalMS":350.0,"Bindings":{"Visible":{"Formula":{"Expression":"[Flag_Blue]"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.RectangleItem, SimHub.Plugins","IsRectangleItem":true,"BackgroundColor":"#FFFFFF00","Height":59.0,"Left":1142.0,"Top":0.0,"Visible":false,"Width":139.0,"Name":"YELLOWFLAG","RenderingSkip":35,"MinimumRefreshIntervalMS":350.0,"Bindings":{"Visible":{"Formula":{"Expression":"[Flag_Yellow]"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"ShadowColor":"#FF000000","Font":"D-DIN DINCondensed","FontWeight":"Thin","FontSize":68.0,"Text":"ENGINE RPM OVERREV","TextColor":"#FF000000","HorizontalAlignment":1,"VerticalAlignment":0,"BackgroundColor":"#B4FFE700","Height":70.0,"Left":0.0,"Top":650.0,"Visible":false,"Width":1281.0,"Name":"OVERREV_WARN","RenderingSkip":10,"MinimumRefreshIntervalMS":100.0,"Bindings":{"Visible":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"if ($prop('Rpms') > $prop('MaxRpm')+300 && !$prop('PitLimiterOn')) {\r\n money_shifted = true\r\n} else if ($prop('PitLimiterOn') || $prop('WaterTemperature') > 120 || $prop('DataCorePlugin.Computed.Fuel_Percent') < 10) {\r\n money_shifted=false\r\n}\r\nreturn money_shifted","PreExpression":"money_shifted = false"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"ShadowColor":"#FF000000","Font":"D-DIN DINCondensed","FontWeight":"Thin","FontSize":65.0,"Text":"PIT LIMITER","TextColor":"#FF000000","HorizontalAlignment":1,"VerticalAlignment":0,"BackgroundColor":"#B400A3FF","Height":70.0,"Left":0.0,"Top":650.0,"Visible":false,"Width":1281.0,"Name":"PITLIM_WARN","RenderingSkip":25,"MinimumRefreshIntervalMS":250.0,"Bindings":{"Visible":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"return ($prop(\"PitLimiterOn\") || $prop(\"IsInPitLane\"))"},"Mode":2},"BackgroundColor":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"if ($prop(\"Rpms\") != 0 && $prop(\"IsInPitLane\") && !$prop(\"PitLimiterOn\")) {\r\n\treturn \"Red\"\r\n}\r\nreturn \"#B400A3FF\""},"Mode":2},"Text":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"if ($prop(\"Rpms\") != 0 && $prop(\"IsInPitLane\") && !$prop(\"PitLimiterOn\")) {\r\n\treturn \"PIT LIMITER OFF\"\r\n}\r\nreturn \"PIT LIMITER\""},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"ShadowColor":"#FF000000","Font":"D-DIN DINCondensed","FontWeight":"Thin","FontSize":65.0,"Text":"COOLANT TEMPERATURE HIGH","TextColor":"#FF000000","HorizontalAlignment":1,"VerticalAlignment":0,"BackgroundColor":"#B4FFE700","Height":70.0,"Left":0.0,"Top":650.0,"Visible":false,"Width":1281.0,"Name":"COOLANT_WARN","RenderingSkip":50,"MinimumRefreshIntervalMS":500.0,"Bindings":{"Visible":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"maxtemp = 120\r\nif ($prop('TemperatureUnit') == \"Fahrenheit\") maxtemp = 248;\r\nif ($prop(\"TemperatureUnit\") == \"Kelvin\") maxtemp = 393;\r\nreturn ($prop(\"WaterTemperature\") > maxtemp && $prop(\"PitLimiterOn\") == false && $prop(\"DataCorePlugin.Computed.Fuel_Percent\") > 10)","PreExpression":"money_shifted = false"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.TextItem, SimHub.Plugins","IsTextItem":true,"ShadowColor":"#FF000000","Font":"D-DIN DINCondensed","FontWeight":"Thin","FontSize":65.0,"Text":"LOW FUEL","TextColor":"#FF000000","HorizontalAlignment":1,"VerticalAlignment":1,"BackgroundColor":"#FFFF6347","Height":70.0,"Left":0.0,"Top":650.0,"Visible":false,"Width":1281.0,"Name":"FUEL_WARN","RenderingSkip":50,"MinimumRefreshIntervalMS":500.0,"Bindings":{"Visible":{"Formula":{"Expression":"([DataCorePlugin.Computed.Fuel_Percent] < 10 and [DataCorePlugin.Computed.Fuel_Percent] != 0)"},"Mode":2}}},{"$type":"SimHub.Plugins.OutputPlugins.GraphicalDash.Models.RectangleItem, SimHub.Plugins","IsRectangleItem":true,"BackgroundColor":"#00FFFFFF","BorderStyle":{"BorderColor":"#00FFFFFF","BorderTop":6,"BorderBottom":6,"BorderLeft":6,"BorderRight":6,"Bindings":{"BorderColor":{"Formula":{"JSExt":0,"Interpreter":1,"Expression":"if ($prop('CarSettings_CurrentDisplayedRPMPercent') > 97) {\r\n return \"Red\"\r\n} else if ($prop('CarSettings_CurrentDisplayedRPMPercent') > 90) {\r\n return \"Yellow\"\r\n}\r\nreturn \"Transparent\""},"Mode":2}}},"Height":720.0,"Left":0.0,"Top":0.0,"Visible":true,"Width":1280.0,"Name":"ShiftWarn","RenderingSkip":4,"MinimumRefreshIntervalMS":40.0}],"MinimumRefreshIntervalMS":0.0}],"SnapToGrid":false,"HideLabels":false,"ShowForeground":true,"ForegroundOpacity":100.0,"ShowBackground":true,"BackgroundOpacity":100.0,"ShowBoundingRectangles":false,"GridSize":10,"Images":[{"Name":"checkered","Extension":".png","Modified":false,"Optimized":true,"Width":140,"Height":60,"Length":1192,"MD5":"979e40b68ca4995e817753914795f916"}],"Metadata":{"SimHubVersion":"9.1.11","ScreenCount":1.0,"InGameScreensIndexs":[0],"IdleScreensIndexs":[0],"MainPreviewIndex":0,"IsOverlay":false,"Width":1281.0,"Height":721.0,"OverlaySizeWarning":true,"MetadataVersion":2.0,"EnableOnDashboardMessaging":true,"PitScreensIndexs":[0]},"ShowOnScreenControls":true,"IsOverlay":false,"EnableClickThroughOverlay":true,"EnableOnDashboardMessaging":true}
Binary file added ADU5/blumalerts.djson.ressources
Binary file not shown.

0 comments on commit 46de2ee

Please sign in to comment.