Comments (5)
this issue has been discussed previously... the proper way to manually add a drink is by using the api...
i have a script i use that works pretty well
#!/bin/bash -x
USER=$1
OZ=$2
TICKS=`echo "$OZ/0.01545" | bc -q`
curl -F 'api_auth_token=AUTHTOKEN' \
-F "ticks=$TICKS" \
-F "username=$USER" \
http://kegbot.goliathonline.com/api/tap/kegboard.flow0
from kegbot-server.
From one Jared to another.... I must have missed that discussion. Where can
I find it? And thanks man!
from kegbot-server.
Yup, @szechyjs is right! -- You want to add a drink using the API. I should probably incorporate such a feature into kegadmin, eventually..
from kegbot-server.
👍 +1 for this issue. I pulled 2 liters of stout into a growler the other day only to realize my daemon had crashed. I need to add this so that my volumes are correct. I tied manually adding through the web interface, but as @jallen2281 said, regen stats wouldn't work properly. Kept getting python errors... I can only assume that you don't expose the drinks_to_sessions db table in the web interface.
from kegbot-server.
Issue #133 (just closed) adds manager interfaces for deleting, reassigning, and editing pour drinks.
I'll keep this open to add a manual "record a drink with these parameters" form, though I suspect this is lower priority (and can be already accomplished from the command line as above).
from kegbot-server.
Related Issues (20)
- Update to Django 1.11 HOT 1
- API support for idempotency keys HOT 1
- Replace highcharts with another charting library HOT 1
- Test - ignore
- Deleting multiple drinks does not update stats and sessions
- Get project buildable again & release a new version HOT 19
- Update to Pipenv HOT 1
- Update to Python 3
- Update to Django 2
- Update docs links to point to readthedocs
- perform docker build as a pre-commit check HOT 1
- push new releases to Docker Hub
- Docker images for RaspberryPi HOT 2
- Fix the docker build for PRs
- Setting Debug = False (KEGBOT_ENV = production) breaks user uploaded images HOT 2
- Docker build fails due to cryptography dependency HOT 1
- Introduce a new (v2) api HOT 3
- feature request: make default drinker configurable in admin dashboard HOT 2
- Issue with "docker-compose up" HOT 1
- Media files do not load successfully HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kegbot-server.