PHP_SMART_HOME_V3/README.md

101 lines
2.4 KiB
Markdown
Raw Normal View History

2019-10-12 19:45:12 +00:00
<!--
*** Smart_Home by JonatanRek
*** README by revox, 2019
-->
<!-- LOGO -->
2019-08-23 11:43:46 +00:00
<p align="center">
2019-10-12 19:28:58 +00:00
<img src="ICON HERE" height="100" width="100">
</p>
2019-10-12 19:36:52 +00:00
2019-10-12 19:27:41 +00:00
[![PHP](https://img.shields.io/badge/PHP-brightgreen.svg)](https://github.com/GamerClassN7/Smart_Home/search?l=php)
[![JS](https://img.shields.io/badge/JS-red.svg)](https://github.com/GamerClassN7/Smart_Home/search?l=js)
[![HTML](https://img.shields.io/badge/HTML-blue.svg)](https://github.com/GamerClassN7/Smart_Home/search?l=html)
2019-08-23 11:39:42 +00:00
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Discord](https://img.shields.io/discord/604697675430101003.svg?color=Blue&label=Discord&logo=Discord)](https://discord.gg/6BPErAS)
2019-08-23 11:39:42 +00:00
2019-10-12 19:45:12 +00:00
<!-- ABOUT THE PROJECT -->
## About Smart_Home
**Smart_Home** is a home automation project suited for **ESP boards** family (including NodeMCU). It supports PWA; supports tons of sensors; has modern and elegant UI; is easily customizable; is multilangual.
#### What works with Smart_Home?
* temperature sensors (e.g. DHT11/22),
* humidity sensors (e.g. DHT11/22),
* light detectors,
* water leak sensors,
* voltage meters,
* electricity consumption meters,
* switches,
* and many more...
<!-- TABLE OF CONTENTS -->
## Table of Contents
* [About Smart_Home](#about-smart_home)
* [Screenshots](#screenshots)
* [Installation](#instalation)
* [Contributing](#contributing)
* [License](#license)
* [Built With](#built-with)
* [Authors](#authors)
2019-08-23 11:39:42 +00:00
2019-10-12 19:36:52 +00:00
## Installation
2019-10-12 19:27:41 +00:00
//zrób tu dużo panie revoxie!
2019-08-23 11:39:42 +00:00
2019-10-12 19:36:52 +00:00
## Screenshots
### Browser (Desktop PWA)
2019-08-23 11:39:42 +00:00
2019-10-12 19:48:54 +00:00
<img src="./_README_IMG/1.png" height="250" width="500"> <img src="./_README_IMG/2.png" height="250" width="500">
<img src="./_README_IMG/3.png" height="250" width="500"> <img src="./_README_IMG/4.png" height="250" width="500">
2019-08-23 11:39:42 +00:00
### Mobile (PWA)
2019-08-23 11:39:42 +00:00
2019-10-12 19:48:54 +00:00
<img src="./_README_IMG/6.png" height="250" width="125"> <img src="./_README_IMG/7.png" height="250" width="125"> <img src="./_README_IMG/8.png" height="250" width="125"> <img src="./_README_IMG/9.png" height="250" width="125"> <img src="./_README_IMG/10.png" height="250" width="125">
2019-08-23 11:39:42 +00:00
2019-10-12 19:36:52 +00:00
## API
2019-10-12 19:28:58 +00:00
### POST Message (switch)
2019-08-23 11:39:42 +00:00
```
{
"token":"2"
}
```
2019-10-12 19:28:58 +00:00
### Answer (switch)
2019-08-23 11:39:42 +00:00
```
{
"device":{
"hostname":"2",
"sleepTime":0
},
"state":"succes",
"value":"0"
}
}
```
2019-10-12 19:28:58 +00:00
### POST Message (sensor)
2019-08-23 11:39:42 +00:00
```
{
"token":"4",
"values":{
"door":{
"value":1
}
}
}
```
2019-10-12 19:28:58 +00:00
### Answer (sensor)
2019-08-23 11:39:42 +00:00
```
{
}
```
2019-10-12 19:36:52 +00:00
## Contributions
//tu jebnę coś o pull requestach
2019-10-12 19:36:52 +00:00
## Authors
//tu jebnę autorów