API Intergration Issues

Discussion in 'Brew Sessions' started by Connor256, Apr 8, 2020.

  1. Connor256

    Connor256 New Member

    Joined:
    Sep 3, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy 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:
     

    Attached Files:

  2. ElectricBrews

    ElectricBrews New Member

    Joined:
    Apr 10, 2020
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  3. avantassel

    avantassel Moderator
    Staff Member

    Joined:
    Jan 5, 2018
    Messages:
    148
    Likes Received:
    90
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    Brewer and Software Engineer
    Location:
    Lafayette, CO
    Home Page:
    @Connor256 Sorry about that, there was a brief outage last Tuesday. Can you try this again?
     

Share This Page

arrow_white