Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to add controllers, document API endpoint #299

Closed
blalor opened this issue Jun 26, 2014 · 4 comments
Closed

Add ability to add controllers, document API endpoint #299

blalor opened this issue Jun 26, 2014 · 4 comments

Comments

@blalor
Copy link

blalor commented Jun 26, 2014

The kegbot admin page says Note: Controllers can be created and edited in the Kegbot app. This is not helpful if you're not using the Kegbot app. Please add a UI component to manage controllers and document the API endpoint for /controllers/.

@mik3y
Copy link
Member

mik3y commented Jun 26, 2014

Acknowledged, this would be useful.

@blalor
Copy link
Author

blalor commented Jun 26, 2014

Here's what I came up with:

curl -X POST \
    -H 'X-Kegbot-Api-Key: <your_api_key>' \
    -d "name=<name>" \
    -d "serial_number=<name>" \
    -d "model_name=tablet-less, yo" \
    http://localhost:8000/api/controllers/

I took the name and serial_number from the output of kegbot_daemon.py:

2014-06-26 17:21:18,271 INFO     (main) kegboard-ABCD: <HelloMessage: protocol_version=None firmware_version=18 serial_number=KB-01xx-xxxx-xxxxABCD>

Once that's done you can add a flow sensor from the admin page.

@mik3y
Copy link
Member

mik3y commented Aug 27, 2014

FYI, pycore now automatically creates a two-tap controller when a board is connected (new in v1.2). It's a partial workaround for this issue (which will remain open) but should handle the common case.

@mik3y
Copy link
Member

mik3y commented Jun 26, 2017

Fixed in #364

@mik3y mik3y modified the milestones: v1.3, v1.2 Jun 26, 2017
@mik3y mik3y closed this as completed Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants