Skip to content

upperboundcom/drinkbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Drinkbot: A Raspberry Pi-powered Robotic Bartender

This is the nodejs code for the Rasperry Pi-based robotic bartender (which I call drinkbot) described at:

http://upperbound.com/projects/drinkbot/

There are a few other dependencies:

To start the application

Change to the folder where you downloaded the files.

Start the backend:

$ sudo node backend.js &

Start the web front-end:

$ cd frontend
$ node server.js &

If you want to start it at boot, you can do the following:

  1. Install forever:
$ sudo npm install -g forever
  1. Add this to your crontab (your paths may be different):

Run:

$ crontab -e

and then add:

@reboot export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript && sudo -E /usr/bin/forever start -o /home/pi/projects/nodeapps/drinkbot/backend.log -e /home/pi/projects/nodeapps/drinkbot/backend.err /home/pi/projects/nodeapps/drinkbot/backend.js
@reboot export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript &&  /usr/bin/forever start -o /home/pi/projects/nodeapps/drinkbot/frontend/server.log -e /home/pi/projects/nodeapps/drinkbot/frontend/server.err /home/pi/projects/nodeapps/drinkbot/frontend/server.js

To do:

  • Make some hardcoded values config options
  • Move config options to a separate .json file

About

Nodejs code for the Drinkbot, a Raspberry Pi-powered robotic bartender

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published