This repository has been archived on 2025-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025IoT-project-ThingsBoard/scripts/memory_used.sh
2025-12-20 15:23:20 +01:00

8 lines
260 B
Bash
Executable file

#!/bin/bash
while true; do
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