Skip to content

HomeWeather is a SmarthHouse system to control SmarthHome devices

Notifications You must be signed in to change notification settings

marcvspt/homeweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HomeWeather

HomeWeather is a SmarthHouse system. In the webapp we can upload data from five sensors from a ESP8266 NodeMCU and make a request to get the data in other NodeMCU and controll diferent SmarthHome devices like windows, lights, fans, etc. In a localserver.

Download and Deploy

git clone https://github.com/marcvspt/homeweather
cd homeweather
docker-compose up -d

Configuration

Set database credentials

You should change the the database user and password in the Docker Compose file, these need to be the same as the config.php file. The root password doesn't must to be the same like the normal user.

Create the tables

We can create them in the phpMyAdmin service running in localhost:8080 importing the MySQL file in the homeweather database.

Domain and IP

If you want to access at the service with a domain or IP you must change the "localhost" with your IP or domain in these files:

If you are going to use SSL/TLS you must change the "http" for "https" as well.

Up the service in the startup and reboot (optional)

To run this service when the server start just copy the service file like root or with sudo in the system folder and enable the service:

sudo cp webapp.service /etc/systemd/system/
sudo systemctl enable webapp.service

RECOMENDATION: run once docker-compose up to create the php-apache image, volume, etc. And later do this.

ESP8266 NodeMCU code and configuration

Comming Soon!

Demo

Principal page frontend User's dashboard Sensor's data chars Sensor's data Sensor's API

About

HomeWeather is a SmarthHouse system to control SmarthHome devices

Topics

Resources

Stars

Watchers

Forks