Skip to content

Instantly share code, notes, and snippets.

@k9lego
Created February 12, 2021 20:37
Show Gist options
  • Save k9lego/3c4ac94c2db6f089e77da1d7b9d1db13 to your computer and use it in GitHub Desktop.
Save k9lego/3c4ac94c2db6f089e77da1d7b9d1db13 to your computer and use it in GitHub Desktop.
EmptyEpsilon Hardware.ini for Phillips Hue Color
[hardware]
device = PhilipsHueDevice
# You need to configure the IP
ip =
[channels]
# You need to configure the channels probably
#OverheadLight1 = 4,5,6
#OverheadLight2 = 7,8,9
#Surroundings1 = 1,2,3,10,11,12
#Surroundings2 = 13,14,15
#LightStrip = 10,11,12
# HUE COLOURS
# Red: 1.0, 1.0, 0.0
# Gold: 1.0, 1.0, 0.1
# Yellow: 1.0, 1.0, 0.15
# Yellowish Green: 1.0, 1.0, 0.2
# Green: 1.0, 1.0, 0.3
# Dark Green: 1.0, 1.0, 0.4
# Aqua: 1.0, 1.0, 0.5
# Sky Blue: 1.0, 1.0, 0.6
# Dark Blue: 1.0, 1.0, 0.7
# Purple: 1.0, 1.0, 0.8
# Pink: 1.0, 1.0, 0.9
# White: 1.0, 0.0, 0.0
# Tinted Colour: 1.0, 0.25, x.x [last var for col above]
# GREEN ALERT (NORMAL)
# Light Strip OFF
#[state]
#condition = Alert == 0
#target = LightStrip
#value = 0.0, 0.0, 0.0
# YELLOW ALERT
# Light Strip
#1.5 before
# Dimmed white light for game
[state]
condition = Always
target = OverheadLight1
value = 0.5,0,0
time=1
[state]
condition = Always
target = OverheadLight2
value = 0.5,0,0
time=1
[state]
condition = Always
target = Surroundings1
value = 0,0,0,0,0,0
time=1
[state]
condition = Always
target = Surroundings2
value = 0,0,0
time=1
# Brighter white light for before game
condition = HasShip == 0
target = OverheadLight1
value = 1,0,0 , 1,0,0
[state]
condition = HasShip == 0
target = Surroundings1
value = 0.5,0,0,0.5,0,0
[state]
condition = HasShip == 0
target = Surroundings2
value = 0.5,0,0
# Yellow for Yellow Alert
[state]
condition = YellowAlert
target = OverheadLight1
value = 1.0, 0.96, 0.124
[state]
condition = YellowAlert
target = OverheadLight2
value = 1.0, 0.96, 0.124
# Red for Red Alert
[state]
condition = RedAlert
target = OverheadLight1
value = 0.4, 1.0, 0
time=1
[state]
condition = RedAlert
target = OverheadLight2
value = 0.4, 1.0, 0
time=1
# If hull is less than 50, glow red
[state]
condition = Hull < 50
target = OverheadLight1
effect = Glow
min_value = 0.5,1,0
max_value = 0.4,1,0
time=5
[state]
condition = Hull < 50
target = OverheadLight2
effect = Glow
min_value = 0.3,1,0
max_value = 0.4,1,0
time=5
# Pink/Purple for nebula
[state]
condition = InNebula
target = Surroundings1
value = 0.25, 0.5, 0.8,0.25, 0.5, 0.8
effect = Glow
min_value = 0.35, 0.7, 0.8,0.35, 0.7, 0.8
max_value = 0.35, 0.7, 0.9,0.35, 0.7, 0.9
time = 5
[state]
condition = InNebula
target = Surroundings2
value = 0.25, 0.5, 0.8
effect = Glow
min_value = 0.35, 0.7, 0.8
max_value = 0.35, 0.7, 0.9
time = 5
# Docking - blue
[state]
condition = Docking
target = Surroundings1
value = 1.0, 1.0, 0.7,1.0, 1.0, 0.7
effect = Glow
min_value = 1.0,1.0,0.6,1.0,1.0,0.6
max_value = 1.0,1.0,0.7,1.0, 1.0, 0.7
time=1
[state]
condition = Docking
target = Surroundings2
value = 1.0, 1.0, 0.7
effect = Glow
min_value = 1.0,1.0,0.6
max_value = 1.0,1.0,0.7
time=1
# Low light when preparing to jump
[state]
condition = Jumping
target = OverheadLight1
value=0,0,0
[state]
condition = Jumping
target = OverheadLight2
value=0,0,0
# Flash the shields when hit
[event]
trigger = <FrontShield
target = Surroundings1
value = 0.8,0.8,0.6,0.8,0.8,0.6
runtime = 0.5
[event]
trigger = <FrontShield
target = Surroundings2
value = 0.8,0.8,0.6
runtime = 0.5
[event]
trigger = <RearShield
target = Surroundings1
value = 0.8,0.8,0.6,0.8,0.8,0.6
runtime = 0.5
[event]
trigger = <RearShield
target = Surroundings2
value = 0.8,0.8,0.6
runtime = 0.5
# Flash red overhead for hit
[event]
trigger = <Hull
target = OverheadLight1
runtime = 0.3
value = 1.0,1.0,0.0
[event]
trigger = <Hull
target = OverheadLight2
runtime = 0.25
value = 1.0,1.0,0.0
[event]
trigger = <Hull
target = OverheadLight1
runtime = 0.3
value = 1.0,1.0,0.0
[event]
trigger = <Hull
target = OverheadLight2
runtime = 0.25
value = 1.0,1.0,0.0
# If jammed, glow lights dimmed red
[state]
condition = IsJammed
target = OverheadLight1
effect = Glow
min_value = 0,1,0
max_value = 0.1,.4,0
time=0.8
[state]
condition = IsJammed
target = OverheadLight2
effect = Glow
min_value = 0.1,1,0
max_value = 0,.4,0
time=0.5
# When we have jumped, turn lights off for 1 second, ALL the lights including surroundings
[state]
condition = Jumped
target = OverheadLight1
value = 0,0,0
[state]
condition = Jumped
target = OverheadLight2
value = 0,0,0
[state]
condition = Jumped
target = Surroundings1
value = 0,0,0,0,0,0
[state]
condition = Jumped
target = Surroundings2
value = 0,0,0
# If energy is 0, turn off lights
[state]
condition = Energy == 0
target = OverheadLight1
effect = Glow
min_value = 0.1,1,0
max_value = 0,1,0
time=0.5
[state]
condition = Energy == 0
target = OverheadLight2
effect = Glow
min_value = 0,1,0
max_value = 0.1,1,0
time=0.3
[state]
condition = Energy == 1
target = OverheadLight1
effect = Glow
min_value = 0.1,1,0
max_value = 0,1,0
time=0.5
[state]
condition = Energy == 1
target = OverheadLight2
effect = Glow
min_value = 0,1,0
max_value = 0.1,1,0
time=0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment