GithubHelp home page GithubHelp logo

pitools's Introduction

pitools

A set of flask blueprints to be used on RaspberryPi, which allow you to retrieve sensor data or send data to hardware devices via simple HTTP request.

Installation

Notice: Adafruit_Python_BMP package has not yet been released to PyPI, so you need to manually get its source code here.

# Install Adafruit_Python_BMP package
# Enter source code folder for Adafrui_Python_BMP
cd Adafruit_BMP
sudo python setup.py install
cd ..

# Install pitools
cd pitools
sudo python setup.py install

# All other dependencies will be automatically installed

Usage

Currently the available modules are:

  • pitools.camera
  • pitools.sensors.bmp085

There is a minimal working flask server in examples/server.py. Install the camera and BMP085 sensor hardware and run sudo python server.py to start it, and visit http://<your_raspberry_pi_IP>:9876/camera/shot for a photo captured, or visit http://<your_raspberry_pi_IP>:9876/sensors/bmp085/all for data from your BMP085 sensor.

Test

Install nosetests and run sudo nosetests -v to see the test result.

License

See LICENSE file.

pitools's People

Watchers

 avatar  avatar

pitools's Issues

Config the camera usage

Either to keep the camera running forever (this will make the shot procedure much faster, as there's no need to wait for white balance setting to take effect every time), or to create a new camera instance at every shot (this keeps the energy cost low, but will slow the shot speed).

Camera conflict

When a daily shot task is running, there might be a shot request at the same time, and will that result in come kind of hardware conflict?

Camera keeps running

The LED is always shining, which means the hardware never stops. This need to be improved.

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.