Skip to content

MQTT device to control water consumption and alert in case of leakage.

Notifications You must be signed in to change notification settings

peychart/WiFiWaterMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wifi Water Meter Pulse Sensor

Software:

C++ source, HTML, Javascript & JSON format.

  • MQTT transmission of data each hour,
  • log history each hour in flash memory,
  • adjustment (setting.h) of the unit of diffusion,
  • retention of records on system time synchronization defect and re-indexing on synchronization recovery before historization,
  • monitoring of the consumption for detection of possible leaks in the water network,
  • configuration of the monitoring parameters via the Web interface,
  • MQTT alerts about possible leaks to the home automation device (Domotics, Jeedom, ...).
  • 3 configurable SSID,
  • web interface configuration,
  • definition of IPs (such as the reverse proxy) excluded from configuration changes; allows secure exposure of the (only) home page to the Internet,
  • debug trace available by telnet console (#ifdef DEBUG),
  • firmware update via WiFi, without loss of data or setting,
  • accepts HTML commands from the home automation software: current counter value, log history recovery in JSON format, clear current history, backup of current measures with reboot, ...
  • modem sleep option allowed between measures...
  • connection to pulse sensor (open collector or dry contact): 3.3v/5mA, bounce filtering.

Http requests available (except from EXCLUDED_IPV4_FROM_TUNE):

http://IPAddress WEB User Interface
http://IPAddress/getCurrentIndex current counter value
http://IPAddress/getData data file - all measures saved [Unix date, counter index]
http://IPAddress/getCurrentRecords not yet indexed measures (on NTP error)
http://IPAddress/resetHistory current data file will be erased after DELETEDATAFILE_DELAY (ms)
http://IPAddress/modemSleepAllowed UI available during AWAKETIME (s) before and after each hour (minimum power consumption)
http://IPAddress/modemSleepDenied WiFi always connected and UI always available (maximum power consumption)
http://IPAddress/restart save current measure and reboot
  • Screenshots:

  • MQTT parameters:

  • Virtual sensor creat & edit in Domoticz:

  • Map:

  • Graph:

Hardware:

About

MQTT device to control water consumption and alert in case of leakage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published