Last active
February 3, 2021 08:52
-
-
Save BlackthornYugen/95fceed2a5099ef34d186a1aefe1c7de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Create container with the following command: | |
docker run \ | |
-d \ | |
-e TZ=America/Toronto \ | |
-v $PWD/data:/home/node/.webthings \ | |
--log-opt max-size=1m \ | |
--log-opt max-file=10 \ | |
--device=/dev/ttyACM0 \ | |
--name webthings \ | |
webthingsio/gateway:latest | |
# Create DNS record for webthings.xyz.acme.corp and point it (CNAME) to your server, lets say ours is firebird.xyz.acme.corp. | |
# Connect to webthings.xyz.acme.corp:8080 and signup with email/password. | |
# SKIP CREATING A WEBTHINGS.IO SUBDOMAIN, WE DO NOT WANT ONE | |
# BUG: If unable to skip setting up subdomain just change URL to http://webthings.xyz.acme.corp:8080/things | |
# Install zigbee adapter | |
# Navigate to settings / add ons / click the + in the lower right | |
# Plugin a zigbee device and put it in paring mode. Snopee Zigbee smartplug enters paring mode by holding power switch for 10 seconds | |
# After device in pairing mode, navigate to "Things" and click + in lower right | |
# Select device and add it with a custom name | |
# Optional: Observ logs with docker logs -f webthings: | |
# 2021-02-02 19:18:49.719 INFO : Opened a new things socket | |
# 2021-02-02 19:18:49.721 INFO : zigbee-adapter: Pairing mode started, timeout = 60 | |
# 2021-02-02 19:18:52.068 INFO : zigbee-adapter: ZigbeeNode created: addr64: 0444b044e72449 addr16: 7677 | |
# 2021-02-02 19:18:52.103 INFO : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### remote64: 00124b001e7201a9 profileId: 0104 clusterId: 0006 sourceEndpoint: 01 cmdId: report payload: [{"attrId":0,"dataType":16,"attrData":0}] | |
# 2021-02-02 19:18:52.704 INFO : zigbee-adapter: genOnOffEndpoints = [ 1 ] | |
# 2021-02-02 19:18:52.706 INFO : zigbee-adapter: Processing endpoing 0 = 1 | |
# 2021-02-02 19:18:55.864 INFO : Successfully created new thing zb-myswitch | |
# Not covered by this doc: Setting up https. See documentation in ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment