Mercurial > code > home > repos > homeauto
diff service/rdf_to_mqtt/index.html @ 776:8fa420250799
add headboard
author | drewp@bigasterisk.com |
---|---|
date | Sun, 28 Jun 2020 14:30:52 -0700 |
parents | b15bc47b97a0 |
children | acf58b83022f |
line wrap: on
line diff
--- a/service/rdf_to_mqtt/index.html Sun Jun 28 14:29:23 2020 -0700 +++ b/service/rdf_to_mqtt/index.html Sun Jun 28 14:30:52 2020 -0700 @@ -37,6 +37,12 @@ <div><button data-post="output?s=:theater&p=:volumeChange" data-body="3">Theater volume up</button></div> <div><button data-post="output?s=:theater&p=:volumeChange" data-body="-3">Theater volume down</button></div> + <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#ffffff">headboard white</button></div> + <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#000000">headboard black</button></div> + <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#ff0000">headboard red</button></div> + <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#00ff00">headboard green</button></div> + <div><button data-post="output?s=:bedHeadboard&p=:color" data-body="#0000ff">headboard blue</button></div> + <script> Array.from(document.querySelectorAll("button")).forEach((el) => { el.addEventListener("click", (ev) => {