https://wiki.das-labor.org/index.php?title=Status-Bot/HomeKit&feed=atom&action=history
Status-Bot/HomeKit - Versionsgeschichte
2024-03-28T09:01:12Z
Versionsgeschichte dieser Seite in LaborWiki
MediaWiki 1.39.6
https://wiki.das-labor.org/index.php?title=Status-Bot/HomeKit&diff=29804&oldid=prev
Fridtjof: mehr POSIX
2018-04-07T01:33:37Z
<p>mehr POSIX</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 7. April 2018, 02:33 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l42">Zeile 42:</td>
<td colspan="2" class="diff-lineno">Zeile 42:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "polling": true,</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "polling": true,</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "interval": 5,</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "interval": 5,</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> "state_cmd": "[ \"$(curl -s 'https://das-labor.org/status/status.php?status')\" <del style="font-weight: bold; text-decoration: none;">=</del>= \"OPEN\" ]",</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> "state_cmd": "[ \"$(curl -s 'https://das-labor.org/status/status.php?status')\" = \"OPEN\" ]",</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "manufacturer": "Das Labor",</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "manufacturer": "Das Labor",</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "model": "Statusbot",</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> "model": "Statusbot",</div></td></tr>
</table>
Fridtjof
https://wiki.das-labor.org/index.php?title=Status-Bot/HomeKit&diff=29803&oldid=prev
Fridtjof am 7. April 2018 um 00:13 Uhr
2018-04-07T00:13:59Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 7. April 2018, 01:13 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Zeile 1:</td>
<td colspan="2" class="diff-lineno">Zeile 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ProjektInfoBox</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ProjektInfoBox</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>|name=<del style="font-weight: bold; text-decoration: none;">Statusbot </del>HomeKit</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>|name=<ins style="font-weight: bold; text-decoration: none;">Status-Bot/</ins>HomeKit</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|status=stable</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|status=stable</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|description=Labor-Status über HomeKit</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|description=Labor-Status über HomeKit</div></td></tr>
</table>
Fridtjof
https://wiki.das-labor.org/index.php?title=Status-Bot/HomeKit&diff=29802&oldid=prev
Fridtjof: Die Seite wurde neu angelegt: „{{ProjektInfoBox |name=Statusbot HomeKit |status=stable |description=Labor-Status über HomeKit |username=Fridtjof |author=Fridtjof |version=1.0 |platform=Linu…“
2018-04-07T00:13:37Z
<p>Die Seite wurde neu angelegt: „{{ProjektInfoBox |name=Statusbot HomeKit |status=stable |description=Labor-Status über HomeKit |username=Fridtjof |author=Fridtjof |version=1.0 |platform=Linu…“</p>
<p><b>Neue Seite</b></p><div>{{ProjektInfoBox<br />
|name=Statusbot HomeKit<br />
|status=stable<br />
|description=Labor-Status über HomeKit<br />
|username=Fridtjof<br />
|author=Fridtjof<br />
|version=1.0<br />
|platform=Linux/Homebridge, iOS<br />
|license=WTFPL<br />
|tags=Software<br />
}}<br />
<br />
Mithilfe von Homebridge und dem Plugin cmdswitch2 kann man den Status-Bot recht einfach als Schalter in die Home.app unter iOS einbinden und auch mit Siri abfragen ("Hey Siri, ist das Labor an?")<br />
<br />
== Wie? ==<br />
1. Homebridge einrichten: https://github.com/nfarina/homebridge<br />
<br />
2. Das Config-Template ausfüllen (MAC-Adresse mit : getrennt, PIN nach dem Schema "xxx-xx-xxx" (nur Zahlen)) und als ~/.homebridge/config.json speichern<br />
<br />
3. Homebridge starten und den QR-Code in der Home-App scannen<br />
<br />
== Internetz ==<br />
Damit das überall (sprich außerhalb des lokalen Netzwerks) funktioniert, braucht es einen Apple TV oder ein iPad, die sich im gleichen Netzwerk wie die Homebridge befinden und mit deinem iCloud-Account angemeldet sind.<br />
Weitere Infos hier: https://support.apple.com/de-de/HT207057<br />
<br />
== Config-Template ==<br />
{<br />
"bridge": {<br />
"name": "Homebridge",<br />
"username": "<irgendeine MAC hier>",<br />
"port": 51826,<br />
"pin": "<PIN>"<br />
},<br />
<br />
"platforms": [{<br />
"platform": "cmdSwitch2",<br />
"name": "Status",<br />
"switches": [{<br />
"name": "Labor",<br />
"on_cmd": "true",<br />
"off_cmd": "true",<br />
"polling": true,<br />
"interval": 5,<br />
"state_cmd": "[ \"$(curl -s 'https://das-labor.org/status/status.php?status')\" == \"OPEN\" ]",<br />
"manufacturer": "Das Labor",<br />
"model": "Statusbot",<br />
"serial": "1337"<br />
}]<br />
}]<br />
}</div>
Fridtjof