GithubHelp home page GithubHelp logo

tph_firebase's Introduction

#TPH_Firebase.py

A tool for storing Temperature, Pressure and Humidity in a Firebase Database

Usage

TPH_Firebase.py [-h] [-P PROJECT] [-N NAME] [-L LOCATION] [-R RATE] [-D DEVICE] [-S STATUS] [-T] [-v]

optional arguments:

-h, --help show this help message and exit

-P PROJECT, --Project PROJECT

 Firebase Project ID (default: test-f72f0)

-N NAME, --Name NAME

 Override Sensor Name (default: None)

-L LOCATION, --Location LOCATION

 Location Name (default: None)

-R RATE, --Rate RATE

 Sensor Collection Rate (default: 58)

-D DEVICE, --Device DEVICE

 Sensor port (default: ttyACM0)

-S STATUS, --Status STATUS

 Status File name. File updated with readings each time  (default: None)

-T, --Tell

 Report Arguments (default: False)

-v, --Verbose

 increase output verbosity (default: None)

Usage Details

  • Project:

    The firebase project that the data will be reported into, at this time the project must be able to be written to without security.

  • Name:

    The Sensor name that the data will be reported under. If the sensor name is not given as an argument then it will be read from the device and you should have set this before use. This is very important if you have more than one sensor logging

  • Location:

    The location that the sensor is located at. This is for display and record keeping later.

  • Rate:

    The rate that the data should be sampled from the sensor. The sample takes 1-2 seconds so for updates of once a minute use 58 seconds.

  • Device:

    The device name that the sensor reports as. ttyACM0 is the default and is normally the correct value

  • Status:

    Report the most recent measurements to a local file

  • Tell:

    Report the arguments that are in use

Requirements

python-firebase

sudo pip install python-firebase

get_pa_linux, which must be install in /usr/local/bin

Download from GitHub

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.