Kegberry/Kegbot New Installation

What RFID model do you recommend for the Kegbot and did you enclose it

I have not enclosed my RFID reader, but I have attached it behind a facing board on my bar, so I scan my cards/tags against a special spot on my cabinets and it registers fine behind 3/4" plywood.

I’m using a super-cheap RC522 based reader, this is the exact one I’m using: https://www.amazon.com/HiLetgo-RFID-Kit-Arduino-Raspberry/dp/B01CSTW0IA

Thanks for the info

Thanks, new install scripts works flawlessly… So easy and quick…
Just one thing… After installing node.js server, is there a way of changing live pours to millilitres? The total volume poured is in mL, but live pours (while pouring) is in oz, even with metric selected everywhere.
Thanks in advance

NO!!! Imperial and US Measurements Only!!!

JK :grin: Great suggestion and should be pretty easy to implement, give me a few days!

Oh Thanks Johnnyruz That will be great… Ur Awesome !

Ok so I’ve pushed an update to the Github Repository that has the unit change for the live pours.

It was a little bit more complex than initially expected since I wanted it to adjust to the settings of the server so I had to add some logic there to expose it to the “live” piece.

FOLLOW AT YOUR OWN RISK TO KEGBOT DATA!!

If you’re installing from scratch, the standard installation scripts will apply:

  1. Install Kegbot Server bash <(wget -qO- https://raw.githubusercontent.com/johnnyruz/kegbot-server/add_my_pkgs_to_github/install_latest.sh)
  2. Install Node: bash <(wget -qO- https://raw.githubusercontent.com/johnnyruz/kegbot-server/add_my_pkgs_to_github/install_node_latest.sh)

However, if you’ve already got an installation up and running and just want the updates, you should be able to just run:

  1. kegberry upgrade
  2. Install Node Again: bash <(wget -qO- https://raw.githubusercontent.com/johnnyruz/kegbot-server/add_my_pkgs_to_github/install_node_latest.sh)

You may want to check the contents of the file /usr/local/lib/python2.7/dist-packages/kegberry/app.py to make sure that the package locations are pointing to my repository, which they should be if you installed with my scripts initially.

Let me know if you run into any issues!

1 Like

Great stuff… Will give it a bash and report back
Thanks again

Hi Jonny
Did a fresh install, all went well, it now shows mL on the kegberry, but think conversion error somewhere, For example pouring 60 millilitres only shows 6mL on the kegberry. Not flow meter problem, connecting and using the kegbot app it measures correctly… Any ideas?
Thanks in advance

Yep! Issues with how I checked stuff into Github. You should be able to just run the node installer again bash <(wget -qO- https://raw.githubusercontent.com/johnnyruz/kegbot-server/add_my_pkgs_to_github/install_node_latest.sh) to get a working version.

Okay, so ran the node installer… Not showing the pours on the kegberry. I then did fresh install but same issue… Also at the bottom of home screen, just below the little beer mug it shows NOdejs error! Kegbot… Am i doing something wrong?

Hey @Necro,

You’re definitely not doing anything wrong, bugs on my side again. Admittedly the solution is a little flaky but a few steps to troubleshoot and hopefully get the Node Server up and running and be able to re-start it if it does have an error.

First, I fixed typo in one of the files on Github, so run the installer yet again to pick up those updates. Hopefully that gets things running but if not.

  1. The NODEJS ERROR message at the bottom means that the browser was unable to connect to the server. There are a few possible reasons for this.
  • Server isn’t running: the server should start up on installation and with Kegbot, but occasionally something will happen. The command `ps -ef | grep node’ will tell you if it is running. You should see something like this:

If you only see the line grep --color=auto node that means the server is not running. You can either start it manually by running node /home/kegbot/kegbot-server.venv/node_server/server.js & OR restart all kegbot services with sudo supervisorctl restart kegbot:*

  1. If you inspect the file /home/kegbot/kegbot-server.venv/node_server/server.js, you should see a version comment of 3/6/2020 which means you have the latest server version.

  2. Finally, if you still are unable to connect and are getting the NODEJS error, make sure networking is setup to hit the correct ports. If you’re accessing within your local environment it shouldn’t be a problem, but if you’re accessing from outside there may be other configurations necessary. By default the node server runs on port 3000 and connects to the IP address specified in the setup script. You can make sure that looks good by inspecting the file /home/kegbot/kegbot-server.venv/lib/python2.7/site-packages/pykeg/web/kegweb/templates/kegweb/fullscreen.html and looking at line 189 to make sure it’s pointing to the correct URL and Port.

Please keep pinging me if you run into issues. There is work going on to hopefully simplify the whole process and increase the stability.

Great!!NODEJS error seems fixed, and pours showing up now on the kegberry now mL’s.but,
The pours don’t seem to register on server though. Comes up fine if I use the kegbot app.
It only shows first pour on new keg, addition pouers not showing up anywhere.

I actually set this up a few months ago but never got around to using it(Needed a keg), I was starting everything back up in preparation for a keg during this stay at homer order, but I noticed my test flows are not being logged either, I don’t remember if this is normal when using the test flow.py or if I’m having the same issue as you

Also having the NodeJS issue, but I’m sure I just need to rerun the updated Node installer as you’ve updated
–EDIT: Running the node update script resolved the error message

Again, you da man @johnnyruz

I think the main dashboard could use some work, but I code in django/python all day, so I think I am going to update a few things. I’ll share what I end up with!

1 Like

Can’t wait to see it!!!

Hi all
After a year or 2 hiatus now with more time on my hands during these crazy times I’ve got back into brewing and I’m trying to get my kegbot back up and running.
I’ve made it through 2 installs, on the 3rd install I’ve got -
ERROR: Package ‘mock’ requires a different Python: 2.7.13 not in ‘>=3.6’
Could someone point me in the right direction where I can change the version of mock to 2.0.0? Or any other solution?

Thank you all in advance.

I’ve been running Kegbot server on a RPi for 3 or 4 years now without drama. The past week the poor thing has been losing web connectivity so thought it was time to refresh it. Wasn’t able to do any backups or anything, but was able to mysqldump the database and copy the media file over.

Anyway, I spent hours last night trying to get a fresh install and import done. I ended up having a Django.appconf error so couldn’t run anything, the install scripts failed etc. It wasn’t until I worked out I had to downgrade to django.appconf v 1.0.2, and everything started to work. I was able to then run install_script_part1.sh, which failed. I ran install_script_part2arm.sh, then ran part1 again and happy days! Imported the database manually, imported the media folder manually, and it all seems to work now.

tl:dr - if you hit up appconf issues, it might be because you’ve done an apt-get upgrade somewhere. Downgrade with a pip install “django.appconf==1.0.2” and it should downgrade it for you.

Thank you very much for this info @mitchnic! I have updated the installer script for Kegberry to explicitly require 1.0.2 and just tested a fresh install successfully.

1 Like

@johnnyruz you’ve saved me yet again…

My db got corrupted and I had to rebuild. The install script worked brilliantly and I am back up and running straight away. I was going to restore from my backup but I think there was some corruption in there for a while so starting fresh. Thanks so much mate, absolute legend. I would love to buy you a beer if you have a paypal or some way to transfer you a few bucks for a shout.