Brew Bubbles: Web-Enabled Airlock

HomeBrewTalk.com - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Help Support Homebrew Talk:

ZeSlammy

Well-Known Member
Joined
Mar 27, 2020
Messages
49
Reaction score
18
Start
1613311419160.png


Sort of finished but with the incomplete tag

Restarted, entered Wifi Config, worked.

Anyway, the one I have in fermentation is updated as well as the 2 I built in advance.
I still got 5 to build, I'll flash them straight to 2.2.2 :D
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
That's not good - it should show 2.2.2. And that's the one with the version showing correctly on the "About" page? Have you tried a shift-refresh on that Update firmware page? Because it also looks like the old style.
 

ZeSlammy

Well-Known Member
Joined
Mar 27, 2020
Messages
49
Reaction score
18
Sorry, my screenshot is misleading.
That's what I had when I started.

It ended up being a righteous 2.2.2[master](3deb66b)ZeSlammyEdition (well this bit is missing )
 

Attachments

OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
You might want to remove that log - it has a very ironic password in it. :)

Code:
15:09:13.466 -> 2021-02-14T22:09:12Z N: Started Brew Bubbles version 2.2.2 (master) [3deb66b].
Good! Must have been browser cacheing.
 

ChrisThomas

Well-Known Member
Joined
Aug 11, 2019
Messages
87
Reaction score
25
Location
Bristol, UK
@LBussy Just noticed a strange occurance... My first Brewbubble is attached to a fermenter that's been running for a week and a bit. I upgraded OTA to V2.2.2 without any issues. I just checked and I noticed the time is 8 hours ahead, local time now is 23:00 and time on Brewbubbles is tomorrow 07:00 (GMT). When I first noticed this I tried a remote reset but that didn't make any diffference to the displayed time. When I got up and actually walked the 30 steps to the fermenter and hit the reset button, BrewBubbles seemed to panic and went into AP mode, and lost the configuration.

The reset could just be one of those things but the time seems odd, maybe it was there earlier I just hadn't noticed. Time reported by everything else spot on. I've just pulled another recently updated BrewBubbles and started it up, it's reporting the same time offset.


Chris
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
Uh ........

BB keeps time in GMT (Z). The web page (javascript) is what does the conversion. Does that help you make sense of it? The place to look at the controller's time would be the Telnet (or serial) window.

The panic/AP mode is likely a result of the double-reset detector in combination with the pending (but unfulfilled) reset. I fixed that in Tiltbridge, I can see if the same fix will work here.
 
Last edited:

ChrisThomas

Well-Known Member
Joined
Aug 11, 2019
Messages
87
Reaction score
25
Location
Bristol, UK
@LBussy The reset issue isn't an issue, just for information. The time reported in Telnet agrees with the webpage, all bar a few seconds.

To test I've just downgraded to 2.1.1 and the time is reported correctly both in webpage and Telnet, but when I upgrade to 2.2.2 the offfset is back. This is strange but nothing that's going to prevent me monitoring my fermenttion progress.
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
That's .... weird. I'll have to dig in a bit later and see what I can find. I purposefully did not put any timezone handling in the controller. Maybe I got drunk and added it? :p
 

ChrisThomas

Well-Known Member
Joined
Aug 11, 2019
Messages
87
Reaction score
25
Location
Bristol, UK
If you had a drink "when" you added it, maybe drinking the same amount again would put you in same frame of mind? You know, when you walk into a room and can't remember why, walk out and in again is supposed to help? Maybe it's the same for alcohol? Does that work do you think????
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
Okay - I confirmed the time is off. VERY weird because I'm purposefully not setting it to anything other than Zulu. I am trying to move into a MacBook so things are going slow for me. :)
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
Figured out why - now I just need to figure out the best way to fix it.

For anyone who cares: I am using lwIP v1.4 because of a bug in 2.x that causes the filesystem OTA upgrade to fail. Apparently, that handles timezones very differently. I could do some hackery, but until I find out why it's wrong, I hesitate to do that.
 

ChrisThomas

Well-Known Member
Joined
Aug 11, 2019
Messages
87
Reaction score
25
Location
Bristol, UK
At least you found the issue and it's not me that's moved! Personally, it's not an issue. Yes, I check to make sure that my wine is still fermenting, I don't set my alarms/clock according to BrewBubbles time. Yes, I log bubble count to ThingSpeak (until Fermentrack will let me log) but that uses timestamp from when it receives the data (I think?).

I wouldn't bother with the "hackery", just sit and contemplate, I'm sure the solution will manifest itself in due course. As usual available for testing as required.
 

ZeSlammy

Well-Known Member
Joined
Mar 27, 2020
Messages
49
Reaction score
18
I've hit the big time now! :mug:

I can't read it of course, so I am assuming it doesn't say "this dumb American made this thing that sort of works." 😛
Nah, I'm evangelizing people to get a better knowledge of their yeast through BrewBubbles (lag, link between activity and bubbles, bubbles triggered by dry hopping etc). Well I also have built 10 and I am not using them all so I sell some of them :D
 

gshadel

New Member
Joined
Apr 5, 2021
Messages
3
Reaction score
2
Just flashed the latest 2.2.3 version using an HP Chromebook in Linux mode, using the esptool...
For a chromebook... "sudo apt-get install esptool" does the tool installation... You'll need to allow access by linux to the serial port once you plug in the 8266.

I used aluminized HVAC duct tape to cover the photo transitor. Hole was made with a sewing style pin before peeling the backing off the tape, at 10 mm. This is working great but positioning was critial.. at 9.45 mm, I was getting double counts.

Logging to Brewer's Friend isn't working for me just yet. I notice that the code uses http, but Brewer's Friend is now showing https for their sample stream logging url.. I put in a github bug, but perhaps that's premature as I haven't examined the logs yet. I think https availability on the 8266 is pretty recent, so not sure how mature the libraries are.

I really appreciate all the work that's gone into this device!!! Boards!! 3D printed holder!! The code; really nice code!! None of my own projects are nearly this complete or polished.
 

gshadel

New Member
Joined
Apr 5, 2021
Messages
3
Reaction score
2
Ha... Brewer's Friend logging is working now. I think the problem was that Brewer's Friend limits logging to once every 15 minutes. I had mine set to 15 minutes, but maybe my clock runs a few seconds faster than theirs...

In any case I have logging set to 20 minutes now and have a first value logged... Yes!!!! Soon I'll have a graph of bubbling rates!!! This is absolutely the next best thing to actually drinking the beer.
 
OP
LBussy

LBussy

A Cunning Linguist
HBT Supporter
Joined
Jan 19, 2013
Messages
3,181
Reaction score
1,216
Location
Kansas City
This is absolutely the next best thing to actually drinking the beer.
Glad you are enjoying it!

I used aluminized HVAC duct tape to cover the photo transitor.
That's a great idea, I'll add it to the docs.

at 10 mm. This is working great but positioning was critial.. at 9.45 mm, I was getting double counts.
I'm not following that. The entire gap is 10mm. You sure you don't mean 0.1mm?
 

gshadel

New Member
Joined
Apr 5, 2021
Messages
3
Reaction score
2
I used a measurement of 10mm up on the metalized tape to punch the hole. That is the distance from the bottom of the "U" of the bubble sensor up to where the hole is over the photo transistor.. Here's a picture that might help. The edge of the foil went into the bottom of the U of the photo sensor. It might be that 10.5 mm works even better...
BubbleSensor.jpg
 
Top