Finishing example text
This commit is contained in:
parent
d8076f401b
commit
3eda30eea6
15 changed files with 80 additions and 40 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
mem_used=$(free -m | grep 'Mem' | awk '{print $3}')
|
||||
curl -s -X POST http://localhost:8080/api/v1/$KEY/telemetry --header Content-Type:application/json --data "{mem_used:$mem_used}"
|
||||
memory_used=$(free -m | grep 'Mem' | awk '{print $3}')
|
||||
curl -s -X POST http://thingsboard-ce:8080/api/v1/$TOKEN_COMPUTER/telemetry --header Content-Type:application/json --data "{memory_used:$memory_used}"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
|
|
|||
Reference in a new issue