-
Notifications
You must be signed in to change notification settings - Fork 4
DataLogger IoT upload format #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @JimKruk Note: I moved this issue to our Firmware repository for the DataLogger devices. The generic MQTT connection outputs a JSON object that groups readings in sub-objects that are named based on the connected devices. This is what your'e seeing above. Adafruit IO has a specific JSON format specified for their MQTT JSON payload - it's outlined here: https://io.adafruit.com/api/docs/mqtt.html#adafruit-io-mqtt-api This isn't surprising, each IoT service defines their own expected payload. To make this work correctly, we would need to build an Adafruit IO driver. I'll add it to our backlog for evaluation. -Kirk |
Thank you for the update
…On Wed, Jan 17, 2024 at 12:07 PM Kirk D. Benell ***@***.***> wrote:
Hi @JimKruk <https://github.com/JimKruk>
Note: I moved this issue to our Firmware repository for the DataLogger
devices.
The generic MQTT connection outputs a JSON object that groups readings in
sub-objects that are named based on the connected devices. This is what
your'e seeing above.
Adafruit IO has a specific JSON format specified for their MQTT JSON
payload - it's outlined here:
https://io.adafruit.com/api/docs/mqtt.html#adafruit-io-mqtt-api
This isn't surprising, each IoT service defines their own expected payload.
To make this work correctly, we would need to build an Adafruit IO driver.
I'll add it to our backlog for evaluation.
-Kirk
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI3Q37OBSEFA6U2KXQAJ3V3YPAANVAVCNFSM6AAAAABB64CYH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJWGIZTOMZSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I bought this board https://www.sparkfun.com/products/20594 SparkFun DataLogger IoT with a SF TMP117 temp sensor plugged in the board. I am using the adafruit IO mqtt service. After configuring the parms for the mqtt service, wifi and the logging interval everything seems to start and connect ok:
SparkFun DataLogger IoT (c) 2023 SparkFun Electronics
Version: 01.00.04 - build 0000bb
Restoring System Settings ...restored from ESP32 Preferences
Connecting to WiFi...Connected to NETGEARMR1100
NTP startup [5 secs]...enabled
MQTT Client: connecting to MQTT endpoint io.adafruit.com:1883 ...connected
Loading devices ... 2 devices detected
TMP117 - TMP117 Precision Temperature Sensor {qwiic}
MAX17048 - MAX17048 LiPo Battery Fuel Gauge {qwiic}
Time: 2024-01-01T10:59:47
Uptime: 0 days, 00:00:09.756
External Time Source: NTP Client
Board Name: SparkFun DataLogger IoT
Board ID: SFD248966B65B7A0
[I] SD card not available
[I] WiFi - Connected SSID: NETGEARMR1100 IP Address: 192.168.1.83 Signal: Fair
[I] Battery - Not Connected
[I] System Deep Sleep: disabled
Sleep Interval: 60 seconds
Wake Interval: 120 seconds
[I] Logging Interval (ms): 60000
[I] Serial Output: Disabled
Baud Rate: 115200
[I] SD Card Output: Disabled
Rotate Period: 24 Hours
[I] IoT Services:
MQTT Client : enabled
MQTT Secure Client : disabled
HTTP IoT : disabled
AWS IoT : disabled
Azure IoT : disabled
ThingSpeak MQTT : disabled
MachineChat : disabled
[I] Connected Devices [2]:
TMP117 - TMP117 Precision Temperature Sensor {qwiic}
MAX17048 - MAX17048 LiPo Battery Fuel Gauge {qwiic}
I called the mqtt topic:
Settings for: /SparkFun DataLogger IoT/Settings/MQTT Client/MQTT Topic
Edit the value of
MQTT Topic
- data typeWhen complete, press to accept, to discard
MQTT Topic = zzzzzzzz/feeds/datalogger.tmp117
I disabled the outputs for the 3 fields of the max17048 device in /SparkFun DataLogger IoT/Devices Settings/MAX17048
Settings for: /SparkFun DataLogger IoT/Devices Settings/MAX17048
Outputs:
When I open the web console of adafruit IO I am seeing updates once a minute but in the 'value' of the tmp117 feed I see this as the value:
{"TMP117":{"Temperature (C)":27.96875},"MAX17048":{}}
I just want to see the data value for "Temperature (C)" of 27.96875 not the entire string above
Is there a config setting for that somewhere ?
thanks
The text was updated successfully, but these errors were encountered: