Skip to content

Instantly share code, notes, and snippets.

@edgerunner
Last active April 19, 2019 12:58
Show Gist options
  • Save edgerunner/9cea13bda2224caf6d4a6b9942a5132f to your computer and use it in GitHub Desktop.
Save edgerunner/9cea13bda2224caf6d4a6b9942a5132f to your computer and use it in GitHub Desktop.
Water intake*
Water intake*
level at setpoint -> No intake
level above max -> Drain
Mix water*
Fill both*
temperature above setpoint -> Fill cold
temperature below setpoint -> Fill hot
Fill cold
temperature at setpoint -> Fill both
Fill hot
temperature at setpoint -> Fill both
Drain
level below max -> No intake
No intake
level below setpoint -> Water intake
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