Brewometer integration


#431

I’ve been playing around with this for the last week but still not got it going.
I started with a fresh SD card today, followed the install instructions from the wiki and brewpi works fine, same with the test script, but I get the same error every time I try copy over the script files and try to run it.
I’ve run the update script and also manually cloned brewpi-scrip. I’m using the master branch for this, is that right?
I’m really at a loss for what I’m missing! :confused:


#432

Can someone provide me their source list so I can confirm mine is correct. Thank you.


#433

A fresh install has the following in /etc/apt/sources.list

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
#Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi


#434

Hello,

I have a problem, i hope you can help me :slight_smile:
My install versión brewpi is 0.5.2 and I want install brewpi-brewometer.
I follow the instructions of https://github.com/sibowler/brewpi-brewometer but is dows not works :frowning:
I have this error:
Apr 12 2018 23:31:03 Notification: Script started for beer ‘My First BrewPi Run’
Apr 12 2018 23:31:03 Connecting to controller…
Apr 12 2018 23:31:03 Opening serial port
Apr 12 2018 23:31:03 Checking software version on controller…
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 353, in
hwVersion = brewpiVersion.getVersionFromSerial(ser)
File “/home/brewpi/brewpiVersion.py”, line 29, in getVersionFromSerial
bg_ser.writeln(‘n’) # request version info
AttributeError: ‘Serial’ object has no attribute ‘writeln’

What am I doing wrong?


#435

Hi @Andu and @eviltom - - I’ve worked it out. When I was comparing the modifications to source I’d stupidly forgotten to fetch the latest (so was comparing to my local branch) :man_facepalming:

I’ve now fixed the problem and if you re-sync the brewpi.py file it should work.

Sorry for the delay/confusion with this one.


#436

Thanks @sbowler
Can I just check, do you mean to clone brewpi.py from https://github.com/sibowler/brewpi-brewometer.git again?
I tried that and I’ve just recreated the container and started from scratch and I’m still getting the same error.
Cheers


#437

Bugger! Missed the error message when I did the push from my local. Fixed now. Thanks for testing so quickly.


#438

Re-synced and refreshed the page and everything worked.
Brilliant! Thank you very much for your efforts, @sbowler


#439

@sbowler

I seem to be missing a step, as the graph is not showing data,

Running in Docker:

Get output from TiltHydrometerTest.py

Also get data in .json and csv files.

‘’‘root@FermentPi:/home/brewpi/data/Punk-IPA-03042018-2# cat Punk-IPA-03042018-2.csv
Apr 15 2018 09:41:20;13.88;13.71;null;12.94;13.26;null;3;12.88;null;null;13.89;1.007;
Apr 15 2018 09:42:22;13.88;13.7;null;13.0;13.26;null;3;12.88;null;null;13.89;1.007;
Apr 15 2018 09:43:26;13.81;13.7;null;13.0;13.2;null;3;12.88;null;null;13.89;1.007;
Apr 15 2018 09:44:28;13.88;13.7;null;13.06;13.18;null;3;12.88;null;null;13.89;1.007;
Apr 15 2018 09:45:29;13.88;13.7;null;13.06;13.25;null;3;12.81;null;null;13.89;1.007;
Apr 15 2018 09:46:31;13.88;13.69;null;13.13;13.25;null;3;12.88;null;null;13.89;1.007;
Apr 15 2018 09:47:34;13.88;13.69;null;13.13;13.2;null;3;12.88;null;null;13.89;1.007;’’’

Have copied all files to relevant locations and changed permissions and restarted a new session.

Any suggestions much appreciated.


#440

I had to force refresh the browser to get it to display properly. CTRL +F5


#441

@eviltom, That seems to be the problem, although not 100%. Seems to work in Chrome but on in Safari on my Mac, even after a reboot of the Mac.

Will have to look for whats wrong with Safari.

Actually “Opt + Cmd + E” is clear cache on Safari.

Thanks


#442

is working !!! :metal: :metal: :metal:

thank you very much for your work @sbowler , it’s really nice :star_struck:


#443

Hi…i am a new user here. I want to know Any suggestions on how to share the code? I was going to use a github branch but the brewpi-script branch reveals changes that I think are for a upcoming version, so not sure of the value in merging my changes into that to allow others to test?


#444

Hi @CoraDias - IMO, the best way is really a GitHub repository. In regards to upcoming changes, it depends which brewpi-script repository you’re talking about. Generally @elco keeps upcoming changes on the develop branch. Once they move to master, they’re released.


#445

As the major software changes are still in the “jam tomorrow” stage and the docker setup is standard now is there any chance of providing a python script within the downloaded files to move all the other files in the right position in the container for docker users? It would be much simpler to do a git clone followed by running the script for the end user any time a docker container was updated, destroying the Tilt integration in the container, rather than having to copy over all the bits and pieces one at a time. With it being a container it should be identical for all users.


#446

Much easier would be to make the required changes inside a docker container, commit them and publish the image on docker hub for a 1 step deployment.