diff --git a/public/demoData/demo.json b/public/demoData/demo.json index e46a733..99c6238 100644 --- a/public/demoData/demo.json +++ b/public/demoData/demo.json @@ -106,9 +106,12 @@ "uuid": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "version": "1.3.3.7", "type": "esp8266", + "buildsection": "ESP8266_generic", "matrix": { - "type": 4, - "name": "Demo Matrix" + "type": 1, + "name": "Colum major", + "width": 32, + "height": 8 }, "sensors": [ "LDR" diff --git a/src/store/index.js b/src/store/index.js index 6345061..de31f38 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -525,28 +525,32 @@ function addToLogData(obj, state) { function addToSensorData(obj, state) { for (const key in obj) { - const oldEntry = state.sensorData.find((x) => x.name == getDisplayName(key)); - if (oldEntry) { - oldEntry.value = getDisplayValue(key, obj[key]); - } else { - state.sensorData.push({ - name: getDisplayName(key), - value: getDisplayValue(key, obj[key]), - }); + if (key != 'hostname') { + const oldEntry = state.sensorData.find((x) => x.name == getDisplayName(key)); + if (oldEntry) { + oldEntry.value = getDisplayValue(key, obj[key]); + } else { + state.sensorData.push({ + name: getDisplayName(key), + value: getDisplayValue(key, obj[key]), + }); + } } } } function addToButtonData(obj, state) { for (const key in obj) { - const oldEntry = state.buttonData.find((x) => x.name == getDisplayName(key)); - if (oldEntry) { - oldEntry.value = getDisplayValue(key, obj[key]); - } else { - state.buttonData.push({ - name: getDisplayName(key), - value: getDisplayValue(key, obj[key]), - }); + if (key != 'hostname') { + const oldEntry = state.buttonData.find((x) => x.name == getDisplayName(key)); + if (oldEntry) { + oldEntry.value = getDisplayValue(key, obj[key]); + } else { + state.buttonData.push({ + name: getDisplayName(key), + value: getDisplayValue(key, obj[key]), + }); + } } } } @@ -604,7 +608,7 @@ function getDisplayName(key) { key = 'Pressure'; break; case 'pixelitVersion': - key = 'PixelIt version'; + key = 'PixelIt Version'; break; case 'hostname': key = 'Hostname'; @@ -616,7 +620,7 @@ function getDisplayName(key) { key = 'Sketch size'; break; case 'freeSketchSpace': - key = 'Free sketch space'; + key = 'Free Sketch Space'; break; case 'wifiRSSI': key = 'Wifi RSSI'; @@ -669,6 +673,9 @@ function getDisplayName(key) { case 'battery': key = 'Battery'; break; + case 'buildSection': + key = 'Build Section'; + break; } return key; } diff --git a/src/views/Options.vue b/src/views/Options.vue index 6c19bb2..1704993 100644 --- a/src/views/Options.vue +++ b/src/views/Options.vue @@ -124,15 +124,17 @@

Why?


- Why we want to collect telemetry data and what data:

The telemetry data helps us to understand which hardware is used for the PixelIt and also which software versions of the PixelIt are on the road.
Also it is a motivator for us developers to see the spread so that we can continue to have fun developing :)

The data is sent anonymously and includes the following data:
-
  • UUID is a generated hash from the ESP hardware
  • -
  • Version from the PixelIt
  • -
  • Matrix type
  • -
  • Sensors used
  • -
  • Country (via GeoIP service)
  • +
    That was it :)
    @@ -242,3 +244,11 @@ export default { }, }; +