This is an IOT care system for my cat, using linkit 7697 MCU to develop a remote node, which has been implemented.
- feeding device
- water fountain device
- ambient temperature and humidity sensing
- smart fan
Web pages can be used to control IoT nodes, and web pages support responsive web design(RWD).
Prototype of IoT device:
- fountain-01: Support automatic or manual circulation water fountain device.
- feeder-01: The capacity of the bowl is measured with a laser distance sensor,
can be fed automatically or manually.
- node v16.20.0
- docker v24.0.2
- docker compose v2.18.1
First install docker && docker compose, then install the nodejs dependency package npm install
.
- Start docker:
docker compose up -d
- Develoment mode backend and frontend:
npm run dev
- 80 nginx
- 1883 mosquitto
- 3306 mysql
- 9080 phpmyadmin
- 5000 & 3000 is for backend & frontend development mode.
- client: vue3 + vuex frontend.
- server: koa2 backend.
- mosquitto: MQTT server config.
- nginx: Reverse proxy server config.
- database: mysql database init file and config.
- sensor_modules: physical sensor.
- Nodes:
- Linkit 7697
- SubPubClient 2.6 : Must be changed in the library
PubSubClient.h
=>#define MQTT_MAX_PACKET_SIZE 256
- better design and integration of front and back-end api.
- the frontend can have more visualization diagrams.
- the backend is not fully integrated with the database.
- front and backend fully into docker .
frontend template from : https://startbootstrap.com/template/sb-admin