yaqwsx / SensorStreamer

Stream sensor values from your Android device
MIT License
51 stars 7 forks source link

Feature request: Add Device ID Static String Field to JSON Packet Type #3

Open stormfish-sci opened 5 years ago

stormfish-sci commented 5 years ago

It would be very helpful if the JSON packet type included a static string field with which you could specify a value to use to disambiguate which device produced the telemetry record.

To add a bit of context, we have multiple devices which are all streaming JSON packets via TCP to a Logstash server which stores the data in Elasticsearch for analysis. We capture the IP address of the device which produced a given telemetry record, however since the devices get their IPs from DHCP, the IP addresses for each device can change. If there where a way to include a static string in the JSON packet definition, for example:

"device_id": "Test tablet 1"

That would be fantastic!

alexschultze commented 1 year ago

+1 for this feature. This could be the device identifier.