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.
git clone https://github.com/marcvspt/homeweather
cd homeweather
docker-compose up -d
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.
We can create them in the phpMyAdmin service running in localhost:8080 importing the MySQL file in the homeweather database.
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.
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.
Comming Soon!