diff --git a/README.md b/README.md index e77d4fb..c716e66 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,12 @@ TODO - Create new user for database: `GRANT ALL PRIVILEGES ON dev_locationhub.* TO 'dbuser'@'localhost' IDENTIFIED BY '1234';` - Import tables: `/usr/bin/mariadb -u dbuser -p1234 dev_locationhub < server/sql/tables.sql` +### TTN Integration +Create new Webhook for application. Set base url and enable "Uplink message" to api `/api/ttn/webhook`. +Add a addidtional header: +- Type: `authorization` +- Value: `Bearer your-very-secure-token` + ### Testing Webhook - To test the webhook use the python script `ttn-webhook-dummy.py` to send prerecorded TTN Uplinks. - To test the script you can use `while true; do echo -e "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nSuccess"; nc -l -p 8080 -q 1; done` \ No newline at end of file