Skip to content

Commit

Permalink
[mark2] Update telemetry to get hardware detection
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Mar 26, 2024
1 parent 82c50a5 commit 361dcfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ansible/roles/ovos_installer/templates/telemetry.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"gui_feature": {{ ovos_installer_feature_gui }},
"cpu_capable": {{ ovos_installer_cpu_is_capable }},
"tuning_enabled": {{ true if ovos_installer_tuning == 'yes' else false }},
"country": "{{ _isp_data.json.country | lower }}"
"country": "{{ _isp_data.json.country | lower }}",
"hardware" "{{ 'n/a' if ovos_installer_i2c_devices | length < 1 else ovos_installer_i2c_devices }}"
}
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function ver() {
# This function takes an argument like "2f", this will be converted
# to "0x2f".
function i2c_get() {
if i2cdetect -y -a "$I2C_BUS" "0x$1" "0x$1" 2>>"$LOG_FILE" | grep -qE "($1|UU)"; then
if i2cdetect -y -a "$I2C_BUS" "0x$1" "0x$1" 2>>"$LOG_FILE" | grep -q "$1"; then
return 0
fi
return 1
Expand Down

0 comments on commit 361dcfc

Please sign in to comment.