Skip to main content

Python application for simply sensor data capture on a Pi

Project description

Shongololo

CO2 and Imet sensor ground atation snap

This is the README for the shongololos portion of the VTAgmonitoring applications

python shongololo.py --settings=run_settings

Install:

Install for testing with web frontend

$ git clone --recurse-submodules git@gitlab.com:r4space/VTAgMonitoring.git
$ cd VTAgMonitoring/apps/sensor-logger
$ virtualenv --python=python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python server.py

Visit localhost:5000 in a browser ctrl-c to cancle server.py when done

Install for deployment

.. code-block::bash sudo aptitude install python3-dev python3-pip virtualenv virtualenv --python=python3 .venv source .venv/bin/activate pip install -r requirements.txt pip install setuptools wheel twine

Operation

As a stand alone application:

  • Follow install steps
  • cd VTAgMonitoring/apps/
  • python3 -m shongololo.shongololo
  • Data will output to screen and write to file

In conjuntction with the python flask web interface Ass

  1. Follow install steps
  2. On webpage: a) Press "Setup Logger" and wait for log to indicated it has concluded testing sensors (it can take a few seconds) b) When ready to log data for storage press "Start data capture" (This will also take a few seconds to start as it connects to all sensors" c) When ready to stop capturing press "Stop Data Capture" d) Repeat if you wish to sample data again d) When ready to shutdown system press "Shutdown App"

Maintenance for developers

$ python3 -m pip install --user --upgrade setuptools wheel twine
$ python3 setup.py sdist bdist_wheel
$ twine upload --repository-url  https://upload.pypi.org/legacy/ dist/*

Docs

Generate docs:

$ cd docs/
$ make html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shongololo-1.1.3.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file shongololo-1.1.3.tar.gz.

File metadata

  • Download URL: shongololo-1.1.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for shongololo-1.1.3.tar.gz
Algorithm Hash digest
SHA256 36fa75f444cf095f968a912e4fae87b6faaa040ba505ed83e4c0a6f036488def
MD5 a88d11111e1a516691d538dd160c3684
BLAKE2b-256 c8199a4e3ff18afac2e03d5c94703f43603d6a8363e278018999ab9e1061ac8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page