Giter Club home page Giter Club logo

fluxteq_heatflux_rpi's Introduction

Raspberry Pi-based data logger for FluxTeq sensors

The FluxTeq COMPAQ DAQ has a standard USB interface that can be plugged into a Raspberry Pi. This can then be used as a data logger to store data locally on the Pi's microSD card, or upload to an InfluxDB database on a remote server. This repo contains scripts that allow a Raspberry Pi heat flux data logger to be set up.

rpi_datalogger


Prerequisites

Run the following commands to install the prerequisits for the scripts to work:

sudo apt-get install python-pip
sudo pip install pyserial
sudo pip install influxdb
sudo pip install pathlib

Instructions

  1. Set WiFi SSID and password in the wpa_supplicant.conf file. Place this file in the boot partition on the microSD card. Add an empty ssh file as well to enable ssh server on the Pi.
  2. Copy the heatflux folder to /home/pi folder on the Raspberry Pi. You can use FileZilla to SSH into the Pi, or use a Linux-based machine to access the home directory on the microSD card.
  3. In the readserial.py, edit the number of heatflux sensors used, and input their sensitivities. This will be located in the calibration sheets that come with the sensors themselves.
  4. If you're pushing data to the cloud, open the datalogger.py file, edit the server URL, influxDB's port, username, password and database name. Otherwise you can comment out the influx session code and the data will be stored locally on the Pi.
  5. To make sure the scripts are always running and restart automatically when they crash for whatever reason, the script_handler.sh file can be set to run on boot. It keeps checking if the files are running and restarts them if they aren't. Run the following command:
sudo nano /etc/rc.local

On the second last line, type the following:

cd /home/pi/heatflux;./script_handler.sh &

This will ensure the script_handler.sh always runs on boot, which will monitor the other scripts.

  1. Run the following command to give root permissions to script_handler.sh
sudo chmod +x /home/pi/heatflux/script_handler.sh

fluxteq_heatflux_rpi's People

Contributors

akstudios avatar jackie-mcaninch 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.