mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-09 23:50:47 +02:00
Exposes the motor speed attribute in the api endpoint
This commit is contained in:
@@ -153,7 +153,8 @@ if [ -n "$F_action" ]; then
|
|||||||
},
|
},
|
||||||
\"motor\": {
|
\"motor\": {
|
||||||
\"x\": $($MOTOR -d s | sed -n '1 p' | awk '{print $2}'),
|
\"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}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
|
Reference in New Issue
Block a user