Coder Social home page Coder Social logo

barmixvah's Introduction

Bar Mixvah

Bar Mixvah is an automated drink mixing robot that is controlled via a beautiful web interface. Users can select a drink, select a size, and have their drink made for them in front of their eyes!

Requirements

This is not magic. A not-so-insignificant amount of hardware, soldering, and wiring is required for this to work. Follow along with the tutorials on my website here:

http://yujiangtham.com/2014/05/25/build-your-very-own-drink-mixing-robot-part-1/ http://yujiangtham.com/2014/05/30/build-your-very-own-drink-mixing-robot-part-2/ http://yujiangtham.com/2014/06/12/build-your-very-own-drink-mixing-robot-part-3/

Caveats

A few parts of the interface are incomplete or not very well-implemented at the moment. Currently, only 5 pumps are supported (although you should be able to add as many as you want, up to the number of digital out pins on the Arduino). You'll have to change the code in /public/javascripts/robot/backend.js to support this, but it's a quick and easy change. Also, the add pumps button should be removed or greyed out when the max number of pumps is reached, but I have no code in place to do that yet currently. In the add screen, there is no confirmation when a drink is added. In the edit screen, the +/- buttons are not functional as of yet.

Usage

The app connects to your local mongo database on startup. You should have mongo running first, or it will throw an error. The web interface is located at http://localhost:3000 (or if you are connecting via a different device, you can point that device to http://x.x.x.x:3000, the IP address of the machine that the node.js app is running on).

You'll likely want to import example drinks collection that I made. It doesn't contain drinks for all combos, but it'll have a few examples. You can add more by following the information at the bottom of this section. Import the drinks collection with this command: mongoimport --db barmixvah --collection drinks --file drinks.json

Pump controls are accessed in the top-right corner by clicking the PUMP button. You can add/remove pumps with the (+) and (-) buttons and select ingredients for each of those pumps as they appear in the center of the screen.

Drinks can be added by pointing your browser to localhost:3000/add, and can be edited at localhost:3000/edit. Drink images can be added to /public/image/drinks/.

Yu Jiang Tham, 2014

barmixvah's People

Contributors

amittel avatar ytham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

barmixvah's Issues

BarMixvah does not run on Ubuntu 18 and Raspbian Stretch

Hey,
i just wanted to install Bar Mixvah and did the following steps, but the application does not run.

`
mkdir -p /data/db
apt-get install mongodb-server
service mongodb start
cd /opt
git clone https://github.com/ytham/barmixvah.git
cd barmixvah

#install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install yarn

yarn install
apt-get update
install yarn #updates yarn

yarn add node-gyp bson express expressjs johnny-five serialport

#bson path adjustments:
vim /opt/barmixvah/node_modules/mongodb/node_modules/bson/ext/index.js
#change from bson = require('../build/Release/bson'); to bson = require('bson');

mongoimport --db barmixvah --collection drinks --file drinks.json

node app.js --debug #start server
`

After installation i can start the application:
grafik

When accessing the web server on port 192.168.1.66:3000 it will load infinitely. The node.js server does not throw any error. If i access http://192.168.1.66:3000/index.js then some error occures
grafik

I already tried to comment out the part with the pumps/controller but there was no difference.

Do you have an idea how to fix? I guess it's a dependency problem with some module. I also had to use yarn instead of npm because this failed many times.

regards, Mario

inporting stl-files

Hi,

I've got some issues when I import the STL-files to my simplify3D software.
On each file the software said that the model is out of dimentions.

Do you've got an Idea how this could happens?

npm dependencies are checked into the project

Just for getting things off the ground I was running into this issue after cloning the repository

15:24:16-myusername~/mywebprojects/barmixvah (master)$ git clone https://github.com/ytham/barmixvah.git
15:24:16-myusername~/mywebprojects/barmixvah (master)$ cd barmixvah
15:24:16-myusername~/mywebprojects/barmixvah (master)$ npm start

> [email protected] start /Users/myusername/mywebprojects/barmixvah
> node ./bin/www

Failed to load c++ bson extension, using pure JS version
It looks like serialport didn't compile properly. This is a common problem and its fix is well documented here https://github.com/voodootikigod/node-serialport#to-install

/Users/myusername/mywebprojects/barmixvah/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:29
    throw "Missing serialport dependency";
    ^
Missing serialport dependency

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.1.0
npm ERR! npm  v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node ./bin/www'.
npm ERR! This is most likely a problem with the BarMixvah package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./bin/www
npm ERR! You can get their info via:
npm ERR!     npm owner ls BarMixvah
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/myusername/mywebprojects/barmixvah/npm-debug.log

A solution I found here (shout out to David) was to $ npm install johnny-five

This totally worked and now after npm start I'm seeing this

15:31:41-myusername~/mywebprojects/barmixvah (master)$ npm start

> [email protected] start /Users/myusername/mywebprojects/barmixvah
> node ./bin/www

Failed to load c++ bson extension, using pure JS version
   info  - socket.io started
   warn  - error raised: Error: listen EADDRINUSE 0.0.0.0:3000
1456777907629 Board Looking for connected device  

woot

Unless you really want those /node_modules checked in at those set versions, I think the best thing to do here is to add /node_modules to a top level .gitignore and add $ npm install to the starting steps in the documentation.

This will cut down on the overall size of the repository and allow for users to get off the ground with ease

Let me know what you think

MongoError

When trying to add a drink in barmixvah i get an error of '{“error”:{“name”:”MongoError”}}' please can you help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.