• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

Brew Bubbles: Web-Enabled Airlock

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Well, I'm not saying "issue" but I think something changed.

Just a quick look - I don't see that the URL changed but there is a new TOU agreement. Have you logged in there lately? Maybe your account is flagged to accept that?
 
Last edited:
Errrrmmm.... Cough... I wonder.... Didn't I tidy up that old router recently? Ah!

Some time ago (about a year) I repurposed an old router to provide better coverage in my brewing area. For simplicity I put this onto my existing network and put some port forward rules. My eventual aim was to "hide" my real network behing the IoT network. All worked well, but for reasons I can't explain the BrewBubble rule was no more! Low and behold it now works again!

Probably need to make that "temporary" test a more permanent installation, run that CAT5 cable and put my network behind my brewing network.

ARRRRGGGGG!
 
Well, I'm not saying "issue" but I think something changed.

Just a quick look - I don't see that the URL changed but there is a new TOU agreement. HAve you logged in there lately? Maybe your account is flagged to accept that?

Definitley NOT a BrewBubbles issue, an issue with the user... Definitely!
 
Lee Happy New year and I just wanted to let you know that I'm still loving these Brewbubbles, can't brew without them.
Just found a new record maker: The Lallemand Nottingham yeast with more then 1100 bubbles per minute.

New record.JPG


Or checkout this movie
 
Fun news:
I just released my latest project - BrewFlasher Web Edition! Flash BrewPi-ESP8266 (amongst other projects!) to your controller, straight from your web browser.

This project took all the magic of BrewFlasher, and stuck it in a web app. Flash any ESP8266/ESP32 firmware supported by BrewFlasher, straight from your web browser. No downloads needed.

BrewFlasher Web Edition is available at: BrewFlasher Web Edition

The code is open source, and is available at GitHub.

Note - Due to the APIs required, BrewFlasher Web Edition only works in recent desktop versions of Google Chrome, Microsoft Edge, and Opera. If you don't use one of those browsers, try BrewFlasher desktop edition instead.
Yes, Brew Bubbles is supported by BrewFlasher Web Edition!
 
@LBussy I'm tinkering around with HomeAssistant and was thinking if I could log/use BrewBubbles. So where does the general HHTP POST from BrewBubbles come from? Is there an endpoint after the IP address, i.e. "http://IP_ADDRESS/ENDPOINT"? I've tried a few guesses but not yet been able to get HomeAssistant to actually hear anything, but that could also be me fumbling in the dark (again)!
 
Last edited:
Hell if I know! :p Lemme look ....

Are you talking about a "Generic HTTP Target?" That doc section shows you the payload, The target string is a full url like "http://hasst.local/brewbubbles/" (or whatever you want to call it.) It's set in "URL Target Settings." There's some additional information in that part of the doc.

(Incidentally, I found your name in the source code.)

If all that is taken care of, you might be able to see something in the serial log. There should be enough of a clue there to figure out what's going on.
 
Hell if I know! :p Lemme look ....

Are you talking about a "Generic HTTP Target?" That doc section shows you the payload, The target string is a full url like "http://hasst.local/brewbubbles/" (or whatever you want to call it.) It's set in "URL Target Settings." There's some additional information in that part of the doc.

(Incidentally, I found your name in the source code.)

If all that is taken care of, you might be able to see something in the serial log. There should be enough of a clue there to figure out what's going on.
Well if YOU don't know.... :no:

Yes, Generic HTTP target, but I could never find the full url of what BrewBubbles is supplying in the documentation. The information that HomeAssistant requires about the source of the POST is "http://IP_ADDRESS/ENDPOINT". I guessed several options (I think including .../brewbubbles...) but never got one to work. In BrewBubbles I think I just point to my HomeAssistant IP address, but I'm not sure if it requires anything else.

So far I've not found a combination of source and dstination that works, but I must stress I'm fumbling around with options that I'm not fully understanding!
 
You'll have to excuse any terminology here, I haven't got to grips with it yet. My "task" is get information from BB into HA. So is this a POST from BB AND a GET from HA? Is this just a POST from BB, or just a GET from HA? At this point I'm unclear if HA requests the info from BB or if BB sends and HA is always listening.

More reading over a coffee or several :coff3:
 
Well my time with HAST ended when I moved full time into an RV ... but BB will POST to an endpoint, that means something in HAST has a RESTful API to allow that. The way HAST works most easily is to have dedicated integration or MQTT. Right now Brew Bubbles does not have MQTT but it could (I think.)

So your paths are "get Home Assistant to accept JSON POSTed by a device," add MQTT support to Brew Bubbles and send a pull request, or wait till I knock a couple projects off my list and can look at it.

One way that could work is to create an endpoint on your HAST host to receive the data and then turn around and send MQTT from there. You can look at this example in BrewPi Remix to see how to receive the POST from the device. You'd then need to code the rest to transform and send via MQTT.
 
@LBussy Thanks for the info. I've tried to run before I've learned to crawl here, time to go back to some testing. I've downloaded RESTer extension for Chrome and in between hosting and tasking over the next few days I'll go back to first principles.
 
So, after lots of anti-alcohol. Using RESTer on my laptop and doing a GET to the IP address of BB I get the HTML code. So I'm guessing I need to GET a different port or endpoint?

When I telnet to BB I get the following at the timing specicied in the target frequency.

2023-01-29T16:41:20Z V: Triggered URL Target push.
2023-01-29T16:41:20Z V: Host lookup: 192.168.20.197.
2023-01-29T16:41:20Z V: Resolved host 192.168.20.197 to IP 192.168.20.197.
2023-01-29T16:41:20Z N: Posting to: 192.168.20.197
2023-01-29T16:41:20Z V: Connecting to: 192.168.20.197 at 192.168.20.197 on port 80
2023-01-29T16:41:26Z W: Connection failed, Host: 192.168.20.197, Port: 80 (Err: 0)
2023-01-29T16:41:26Z E: URL Target post failed.
So BB is talking, but I'm not listening, or I'm listening to the wrong thing?
 
So, after lots of anti-alcohol. Using RESTer on my laptop and doing a GET to the IP address of BB I get the HTML code. So I'm guessing I need to GET a different port or endpoint?
There is not currently an endpoint dedicated for any generic use. There is one used to supply information to the index page, however. Here's the JS in index,.htm that does the GET to Brew Bubbles:

https://github.com/lbussy/brew-bubb...350cc325c2d2a54d2020/data/index.htm#L168-L223
You can look at that and see the endpoint is /bubble/ so hit that and you will see the JSON returned. I will warn you that since this is not a "published" API, I reserve the right to change it at any time and not consider it a breaking change. Given how often I have had to make changes, you should be safe.

When I telnet to BB I get the following at the timing specicied in the target frequency.
That looks like whatever you have chosen as your target is not listening.
 
So there is a small amount of illumination dawning. I can GET from HA to the BB endpoint /IP/bubble/ and I understand,
You can look at that and see the endpoint is /bubble/ so hit that and you will see the JSON returned. I will warn you that since this is not a "published" API, I reserve the right to change it at any time and not consider it a breaking change. Given how often I have had to make changes, you should be safe.
could make it stop working.

What I can't get working is the PUSH from BB to HA and am I right that the BB PUSH is always to port 80, as below?
2023-01-29T16:41:20Z V: Triggered URL Target push.
2023-01-29T16:41:20Z V: Host lookup: 192.168.20.197.
2023-01-29T16:41:20Z V: Resolved host 192.168.20.197 to IP 192.168.20.197.
2023-01-29T16:41:20Z N: Posting to: 192.168.20.197
2023-01-29T16:41:20Z V: Connecting to: 192.168.20.197 at 192.168.20.197 on port 80
2023-01-29T16:41:26Z W: Connection failed, Host: 192.168.20.197, Port: 80 (Err: 0)
2023-01-29T16:41:26Z E: URL Target post failed.
The path I set in BB for the URL Target is, http://IP:8123/api/webhook/brewbubbles
The HA webhook set in HA is to the (default) HA port 8123 and the port is not separately configurable, in the above path I can only configure "brewbubbles".

Have I at last appeared at the right tree to bark up?

Additional: I can POST from RESTer to HA with the above path and sample BB data and it works fine.
 
Last edited:
Have I at last appeared at the right tree to bark up?
Yes. :)

It seems I might have to update the lib with which I do that work with the url and port. - the good news is that guy that owns the other lib is standing right here. The bad news is I might end up with other library issues caused by upstream stuff changing.

If you have a moment would you create an issue on GitHub so I don't forget this? I have some other stuff percolating these next days but I might be able to look at that later this week.
 

Latest posts

Back
Top