Skip to content

Instantly share code, notes, and snippets.

@tcoopman
Last active July 1, 2020 19:24
Show Gist options
  • Save tcoopman/9f914a8cfa212967bf7e27be012317f4 to your computer and use it in GitHub Desktop.
Save tcoopman/9f914a8cfa212967bf7e27be012317f4 to your computer and use it in GitHub Desktop.
Pump Control
Pump Control
Pump off*
time after 1400 -> Pump on
Pump on
time after 1900 -> Pump off
start control loop -> Control loop
Control loop*
roof temperature higher -> Valve opened
roof temperature lower -> Valve closed
Valve closed
start control loop timer -> control loop timer
Valve opened
start control loop timer -> control loop timer
control loop timer
timer rang -> Control loop
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment