homebridge-flume
Version:
Homebridge plugin to integrate Flume devices into HomeKit.
26 lines (24 loc) • 2.44 kB
HTML
<style>
.dark-mode {
background-color: #242424;
color: lightgrey;
}
</style>
<p class="text-center">
<img
src="https://raw.githubusercontent.com/mpatfield/homebridge-flume/refs/heads/latest/img/banner.png"
alt="homebridge-flume"
style="width: 60%;"
/>
</p>
<div id="support" class="text-center" style="display: none;">
<p i18n="support"></p>
</div>
<div id="pageIntro" class="text-center" style="display: none;">
<p class="lead" i18n="thankYou"></p>
<p i18n="needed"></p>
</br><button type="button" class="btn btn-primary" id="introContinue" i18n="continue"></button>
</div>
<script>
(()=>{var t={de:{continue:"Continue →",needed:'Sie ben\xF6tigen Ihren Benutzernamen, Ihr Passwort und Ihre Client-ID/Geheimnis von <a target="_blank" href="https://portal.flumetech.com/">Flume</a>',support:'F\xFCr Hilfe und Unterst\xFCtzung besuchen Sie bitte <a target="_blank" href="https://github.com/mpatfield/homebridge-flume/">GitHub</a>',thankYou:"Danke f\xFCr die Installation homebridge-flume"},en:{continue:"Continue →",needed:'You will need your username, password, and Client ID/Secret from <a target="_blank" href="https://portal.flumetech.com/">Flume</a>',support:'For help and support please visit <a target="_blank" href="https://github.com/mpatfield/homebridge-flume/">GitHub</a>',thankYou:"Thank you for installing Homebridge Flume"},es:{continue:"Continuar →",needed:'Necesitar\xE1s tu nombre de usuario, contrase\xF1a y el ID/secreto de cliente de <a target="_blank" href="https://portal.flumetech.com/">Flume</a>',support:'Para ayuda y soporte, visita <a target="_blank" href="https://github.com/mpatfield/homebridge-flume/">GitHub</a>',thankYou:"Gracias por instalar Homebridge Flume"}};function o(){document.querySelectorAll("[i18n]").forEach(e=>{let n=e.getAttribute("i18n");e.innerHTML=t[n]})}function i(){document.getElementById("pageIntro").style.display="none",document.getElementById("support").style.display="block",homebridge.showSchemaForm(),homebridge.hideSpinner()}function r(){document.getElementById("introContinue").addEventListener("click",async()=>{i()}),document.getElementById("pageIntro").style.display="block",homebridge.hideSpinner()}homebridge.showSpinner();(async()=>{let e=await homebridge.i18nCurrentLang();t=e in t?t[e]:t.en,o(),(await homebridge.getPluginConfig()).length?i():(await homebridge.updatePluginConfig([{name:"Flume"}]),r())})();})();
</script>