API Integration Questions

Discussion in 'Brew Sessions' started by Brewer #47996, Apr 17, 2020.

  1. Brewer #47996

    Brewer #47996 New Member

    Joined:
    Sep 25, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Baltimore, MD
    I am working to integrate a custom controller with Brewer's Friend. I have it (I think) successfully reporting as the device shows up in the device list, but it only shows Temperature and Gravity. Are the other (optional) values retained? I notice that the Tilts that we have show a Last Reading time. Is there a way I can set that as well?

    Code:
    {"report_source":"ChronicleController","device_source":"gdbrew","heat_state":"off","temp_target":"69","ambient":"67.1","name":"F2","temp":"67.1","temp_unit":"F","gravity":"1.031","gravity_unit":"G"}
    Relately, I am not really sure on the difference/intent of the "report_source" and "device_source" fields. I was hoping to get one of them to show up where "Tilt" shows up - or similar.
    We use Tilts in our fermenters and it would be great if I could make that little Tilt color circle show up next to the appropriate device as well :)

    Thanks!
     
  2. Pricelessbrewing

    Pricelessbrewing QA Software Tester
    Staff Member

    Joined:
    Jun 8, 2016
    Messages:
    766
    Likes Received:
    503
    Trophy Points:
    93
    Gender:
    Male
    I haven't used the api's too much apart from a couple testing scenarios, I'll ask one of the developers if they're able to help.

    Hope the controller goes well!
     
  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:
    Hi, The last reading gets automatically set. The fields are described in the docs, https://docs.brewersfriend.com/api/stream, yes not all value are displayed but they are stored and also available via the API. After the first time you post you will have the option to select the device from the brew session and link it. I hope that helps. Let me know if you need anything else. Cheers.
     
    Pricelessbrewing likes this.

Share This Page

arrow_white