The domotica client is designed to run on a Raspberry Pi, Arduino or any other lightweight micro computer configured with an Apache webserver. The domotica client works together with the domotica server and the domotica app. If configured correctly the domotica client will report itself to the server directly after is goes only. It also updates itself whenever new releases are pushed to the master branch. The client is designed in such way that it restarts itself when it hangs or has stopped working.
An overview of how the client communicates with the server is shown in the diagram below. For now the client communicates with the server through a mysql database. In the future this will be an API.
More info: https://roland.kierkels.net/2019/02/selfmade-domotica-system/
- PHP >= 7.2.0
- Apache2 or higher
- Crontab
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- JSON PHP Extension
- PCNTL extension for Async operations
- Git for auto-updating
- Composer for auto-updating
crontab -e
# Add the following line to your crontab
* * * * * php /path/to/project/artisan schedule:run >> /dev/null 2>&1
*/5 * * * * php /path/to/project/artisan client:update >> /dev/null 2>&1
*/5 * * * * php /path/to/project/artisan client:run >> /dev/null 2>&1
cp .env-example .env
# Add the correct information to your .env file
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
This application is open-source software licensed under the MIT license.