Finishing FMS dash board

This commit is contained in:
stephb9959
2021-07-21 14:55:21 -07:00
parent 89c93a5a0d
commit aaba1135e6

View File

@@ -179,6 +179,20 @@ devicereport() {
jq < ${result_file}
}
fmsversion() {
curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=version" \
-H "accept: application/json" \
-H "Authorization: Bearer ${token}" > ${result_file}
jq < ${result_file}
}
fmstimes() {
curl ${FLAGS} -X GET "https://${UCENTRALFMS}/api/v1/system?command=times" \
-H "accept: application/json" \
-H "Authorization: Bearer ${token}" > ${result_file}
jq < ${result_file}
}
help() {
echo
@@ -197,6 +211,8 @@ case "$1" in
"connecteddevices") login; connecteddevices ; logout ;;
"connecteddevice") login; connecteddevice "$2" ; logout ;;
"devicereport") login; devicereport; logout ;;
"fmsversion") login; fmsversion; logout ;;
"fmstimes") login; fmstimes; logout ;;
*) help ;;
esac