Skip to content

tancou/jebao-dosing-pump-md-4.4-express

Repository files navigation

Logo

Jebao Dosing Pump MD 4.4 Express Server

This project exposes web endpoints using express to interact locally with Jebao Dosing Pump MD 4.4.

It use https://github.com/tancou/jebao-dosing-pump-md-4.4 library

Device details

The Jebao Dosing Pump MD 4.4 device is internally an ESP which uses the GizWits platform. With this the device offers two ways of communication:

  • The device connects to the gizwits cloud via MQTT and publishs the device data there, where the Android app gets the data from
  • The device also offers local options via UDP for discovery and setup (Onboarding) and also a TCP interface for communication with the device and to request data

This project aims to connect, query the status of and send commands to the device.

Usage

DEVICE_IP=192.168.0.xx npm start

You can change the port too

PORT=8000 DEVICE_IP=192.168.0.xx npm start

Docker compose

Copy .env.example to .env and set DEVICE_IP and TAG.

docker compose up
# or build it if you want
docker compose build

Endpoints

Todo

  • Add tests
  • Dockerize the project

Changelog

1.0.1 (2023-09-03)

  • (tancou) Release 1.0.1

1.0.0 (2023-09-03)

  • (tancou) Release 1.0.0