PiTS stands for Pi Temperature Sensor. The goal is to have an application that runs on the pi and measures Sensors via the 1-wire protocol.
Attention: The sourcecode should be directly installed by the webserver's user to avoid access right issues. Alternativly see "2".
git clone https://github.com/pmaasz/PiTS.gitsudo chown www-data:www-data [Filename] -R
sudo chmod 2775 [Filename] -RFirst make sure composer is installed on the target device. Then run the following command in the docroot of this project:
composer installConfigure the config.json file in the config/ directory. Create a database with one table containing the fields id, temp1, temp2 and createDate. All fields should be of the type varchar 255.
Create the following directories to enable downloads and csv backups when the Database connection is not working:
- no more composer by adding an autoloader to the project
- setup service to detect the sensors
- different sensor support
- FileService
- MigrationService
- csv downloads