1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-03 13:12:44 +02:00

Exposes the motor speed attribute in the api endpoint

This commit is contained in:
Thomas Pauli
2020-09-26 17:42:56 +02:00
committed by GitHub
parent 11270522ab
commit 95734d90d3

View File

@@ -153,7 +153,8 @@ if [ -n "$F_action" ]; then
},
\"motor\": {
\"x\": $($MOTOR -d s | sed -n '1 p' | awk '{print $2}'),
\"y\": $($MOTOR -d s | sed -n '2 p' | awk '{print $2}')
\"y\": $($MOTOR -d s | sed -n '2 p' | awk '{print $2}'),
\"speed\": $($MOTOR -d s | sed -n '3 p' | awk '{print $2}')
}
}
}"