Hi Vito,
Yea a BrewPiLess integration would be awesome.
To answer your questions, they can/should be numbers for number types like temp, gravity and a null string("") should be used for empty values.
You can use the custom stream app endpoint or if you're just forwarding requests from Tilt or iSpindel you can use those endpoints:
For forwarding POST requests:
Tilt
https://log.brewersfriend.com/tilt/[API KEY]
Code:
Timepoint=43362.606502766204&Temp=43.0&SG=1.009&Beer=IPA%20Test&Color=RED&Comment=Again%20Test
iSpindel
Header: Content-Type: application/json
https://log.brewersfriend.com/ispindel/[API KEY] OR you can also put the API KEY in the token param and post to https://log.brewersfriend.com/ispindel
Code:
{
"name": "",
"ID": "",
"token": "",
"angle": "",
"temperature": "",
"temp_units": "C",
"battery": "",
"gravity": "",
"interval": "",
"RSSI": ""
}
Custom Stream App
Header: Content-Type: application/json
Posting as a stream app, https://log.brewersfriend.com/stream/[API KEY]
or you can put the API Key in the header instead -H "X-API-KEY: [API KEY]"
Code:
{
"name": "BrewPiLess",
"temp": 22.2,
"temp_unit": "C",
"gravity": 14.1,
"gravity_unit": "P",
"ph": 4.5,
"comment": "",
"beer": "",
"battery": 3.588112,
"RSSI": -57,
"angle": ""
}
temp unit: C, F or K
gravity unit: G or P
After the first post you will see the name in available devices dropdown. Choose the device and toggle on the stream device.