smarthome-hw

command module
v0.0.6-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

README ¶

Smarthome-hw

Hardware interface for the Smarthome server

smarthome-hw logo

Token 🔑

In order to guarantee a safe communication between the smarthome server and the smarthome-hw server, a token is required. When this application is first started, a random token will be generated and printed to the server's logs (but not to file).

Change token ↺

In order to change the default token, use the provided bash script:

./update_token.sh "old_token" "new_token"

Api

To send a power request, make a POST request to a similar url with a similar request body encoded as application/json

http://localhost:8081/power?token=smarthome
{
	"switch": "s1",
	"power": true
}

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis
core
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL