Giter Club home page Giter Club logo

bench_sense's Introduction

bench_sense

Bench sense is a script for detecting when a person is sitting on a chair and logging that data to Google Sheets. It requires a Raspberry Pi with a pressure sensor hooked up to it in a very specific manner.

Running

To really use the script you first need to configure the Google Sheets access.

First install Poetry, which is used for managing the Python environment and dependencies.

Then install the dependencies

poetry install

Then start the script

poetry run start

Bench sense is now listening for pressure on the sensor, and will report sitting start and end times to the Google Sheet defined in bench_sense/config.py.

Configuration

Google Sheets

To run the script, you need API access to Google Drive and Google Sheets. Generate credentials to those and put the credentials JSON file that you got to the root of this folder with a file name of credentials.json.

Then you need to create a sheet and give access to that for the credentials you just created. Find the email from credentials.json and invite that email to edit the sheet from the normal sharing UI.

See this article for more detailed instructions.

bench_sense's People

Contributors

khugo avatar

Watchers

 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.