Skip to content

Commit d809c0f

Browse files
committed
update readme
1 parent c0108f2 commit d809c0f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ for TTN is it is included in the application handler
5555
- THINGS
5656
7. URL: url of your ThingsBoard
5757
8. PublicID: ->customers->copy customers ID
58-
## script installation(In Progress...non-operational)------------------------------------------------------
58+
## script installation(service methode)
5959
## DDorch addition
6060
6161
- add a user `gateway_ttn` on the server: `sudo adduser gateway_ttn`.
@@ -87,7 +87,7 @@ User=gateway_ttn
8787
ExecStart=/usr/bin/env python3 /home/gateway_ttn/gateway_ttn-thingsboard.py
8888

8989
[Install]
90-
WantedBy=multi-user.ta
90+
WantedBy=multi-user.target
9191
```
9292
9393
- Start the service: `sudo systemctl start`
@@ -105,6 +105,14 @@ gateway_ttn.service - Gateway between TTN and Thingsboard
105105
106106
- enable service at startup with command
107107
````sudo systemctl enable gateway_ttn.service```
108+
## Use of the system
109+
For the gateway to work correctly,
110+
the Device ID on TTN must match the corresponding device on the things board.
111+
- created a new device on Things board.
112+
- copy your device ID.
113+
- creates a new device on TTN with this device ID and the EUI device of the node.
114+
- then enter the EUI application and the appKey in the node program.
115+
in description in TTN it is recommended to place the device name and a link to the thingsboard
108116
109117
110118

library.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def PostThingsboard( JsDATA, DeviceId):
7979

8080
printlog("7/9 - send request telemetry" )
8181
r = requests.post(dPrm['THINGS']['url']+'/api/v1/'+DeviceToken+'/telemetry', json=JsDATA)
82-
printlog("8/9 - request code reponse:"+str(r.text))
82+
printlog("8/9 - request code reponse:"+ str(r.text))
8383
if 'status' in ResponseDeviceToken.text:
8484
printlog( r.text)
8585
printlog("9/9 - ***done***")

0 commit comments

Comments
 (0)