# GENERAL
The opening and closing of the curtain is controlled via http from my smart home (openHAB). Closed at night and open during the day.
____________________________________
# FUNCTION
Its a Raspberry Pi with a apache webserver and some php scripts witch starts the python skrips für controlling the motor and reconize the end stop switch.
____________________________________
# HOW TO
- Copy the *php scripts to /var/www/html/
- make a folder in home, call it "Raspi_MotorHAT" -> only if your User is "pi" otherwise change the php script
- copy all files from "Main" folder to "/home/pi/Raspi_MotorHAT"
- Write in /boot/config.txt -> dtparam=i2c_arm=on,i2c_arm_baudrate=1200000
- Install required Software and Updates
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install python-smbus i2c-tools python-dev -y
- for running python scripts over a php script you must add the following line in "/etc/sudoers" -> www-data ALL=(ALL) NOPASSWD:ALL
Interesting project! Tell me, what kind of mat is on the table, is it antistatic, self-healing ?