API Intergration Issues

Connor256

New Member
Premium Member
Joined
Sep 3, 2019
Messages
1
Reaction score
0
Points
1
Hi all, i currently have a brewpiless controlling my ferment and monitoring gravity / temp etc...
I want to connect it to the API and through reading the docs i need to use the 'stream' URL. just to test the connection i have completed the below POST request but i always get a 503 error.

URL: https://log.brewersfriend.com/stream/{myAPIKey}

Headers:
{"Content-Type": "application/json"}

Body:
{
"name": "BrewBench",
"temp": 22.2,
"temp_unit": "C",
"gravity": 14.1,
"gravity_unit": "P",
"ph": 4.5,
"comment": "",
"beer": "",
"battery": 3.588112,
"RSSI": -57,
"angle": ""
}

I have attempted to generate a new key and still no luck. please see the error response attached below:
 

Attachments

  • ErrorResponse.txt
    13.4 KB · Views: 123
Weird, 503 is service unavailable. That would indicate a server issue or the server saying it's not available for you(r account). From the docs everything looks correct. Have you tried the FIRST post with the body containing only the one required bit ("name") so it can setup your 'device'? Disclaimer, I've not messed with this stream API here but have done other things like this through NODE-RED on other services/APIs.
 

Back
Top