v 1.2
SmartHouse Server is a typical HTTP server, but for handling smart devices and sensors. Easy to install and maintain, you can register your devices, set statuses for them, etc.
Default ports:
8080
for main server8008
for startup server
You need following programs be installed:
- Cmake
- Conan pakage manager
./unix-install.sh
from root folder
./windows-install.cmd
If you want to manage smarthouse server remotely you also need pyton3:
python3 ./startupServer.py
-
device accept: GET, PUT, POST, DELETE, OPTIONS
-
id - get device by id
-
name - name of device
-
status - status of device by which you can control behavior of device
smokeSensor
possible status: smokeNOTDetected, smokeDetectedwaterSensor
possible status: floodNOTDetected. flodoDetectedwindow
possible status: open, closedlight
possible status: off, onsmartDevice
possible status: off, onoven
possible status: off, ontap
possible status: closed, openedgarageDoors
possible status: closed, opened
all devices in JSON
device with id 0
{ "id": "0", "name": "smokeSensor", "status": "smokeNOTDetected" }
you can update any field of device except id
{ "status": "smokeDetected" }
returns all type of logs use type parameter for filtering specific logs Logs types:
- information
- error
- warning
we are using small python server for managing main server
Use port 8008
to manage main server
start
start main serverstop
stop main serverrestore
restore db