Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
/ smartHouse Public archive

Simple server to control RaspberryPi-driven house

Notifications You must be signed in to change notification settings

liquidcore7/smartHouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartHouse

Simple server to control RaspberryPi-driven house

API

You can control your house with GET and POST requests to the server.

Avaliable requests:

  • /auth (POST) : log in. Default password is raspHouse, you can change it in server/smartHouseApi.hpp:10
  • /try (GET) : test connection
  • /getstate (GET) : get states of all pins
  • /setlight1 (POST) : set the lamp on GPIO2 to "ON" or "OFF"
  • /setlight2 (POST) : set the lamp on GPIO3 to "ON" or "OFF"
  • /setdoor (POST) : set the door magnet on GPIO4 to "OPEN" or "CLOSE"
  • /unauth (POST) : log out, do this on session end. Leave data empty

About

Simple server to control RaspberryPi-driven house

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published