Git Product home page Git Product logo

pyanova's Introduction

pyanova

An Anova Precision Cooker (Sous Vide) Bluetooth API Python Wrapper

pypi-pyanova

Descirption

This is a Python wrapper of the Anova Precision Cooker (Sous Vide) API via the Bluetooth LE connection. Under the hood, it utilizes peplin/pygatt for the Bluetooth LE communications.

The library is tested on C.H.I.P with Debian + Python 2.7

Acknowledgements

Installation

Prerequisites

Install using Python pip

Once the prerequisite are satisfied, you can install pyanova with pip: pip install pyanova

Usage

The GATTTool backend normally requires root permission. Hence you might need to run your program with root permission or setup passwordless sudo for 'hcitool'.

Automode

You can initialize PyAnova easily with automode which will automatically discover and connect to the first available Anova device

import pyanova

pa = pyanova.PyAnova()
pa.get_status()

Manual mode

Alternatively, you can fully control the discover and connect phrases of an PyAnova object

import pyanova

pa = pyanova.PyAnova(auto_connect=False)
devices = pa.discover(list_all=False, timeout=3)
pa.connect_device(devices[0])
pa.get_status()

TODO

  • Unit tests
  • Autogen docs
  • Probably swtich to pygattlib?

Demo

see: samples/pyanova_terminal.py

Disclaimer

This software may harm your device. Use it at your own risk.

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM β€œAS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

pyanova's People

Contributors

c3v6a2vy avatar wsidl avatar

Watchers

James Cloos avatar

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.