/hwm-client

A tiny client which measures the of ground water level by ultrasonic

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

hwm-client

A tiny client which measures the ground water level by ultrasonic

Hardware

  • Raspberry Pi (all models supported)
  • Ultrasonic sensor (e.g. HC-SR04)

Software requirements

  • PHP > 7.0
  • Python
  • PHP curl extension
  • Ready HWM server

Configuration

Copy .env.dist to .env Fill .env variables

Variable Description
SERVER_URL Full HWM server URL
AUTH_TOKEN Authentication token of HWM server

Run the client

php run.php start [--interval=60]

Options

Short Long Description Default
i interval Interval in seconds of measurement cycles 60
c correctionDelta Value which is subtracted from each measurement value 0
n normalizationDeepness Number of measurements from the past used for normalization 5