Python library for interfacing Raspberry pi with connected relays/Actuator in a non-blocking multiprocess threading manor
Reason this release was yanked:
unclean code
Project description
RPI Control Center
Raspberry Drivers and library setup
Update system
- cd
- sudo apt update
- sudo apt list --upgradeable
- sudo apt ugrade
- sudo apt autoremove
System libraries
- sudo apt-get install wiringpi
- wget https://project-downloads.drogon.net/wiringpi-latest.deb
- sudo dpkg -i wiringpi-latest.deb
- gpio -v
- sudo apt-get install libopenjp2-7 -y
- sudo apt-get install libatlas-base-dev -y
- sudo apt install libtiff -y
- sudo apt install libtiff5 -y
- sudo apt-get install -y i2c-tools
Install virtualenv
- sudo apt install python3-pip
- sudo pip3 install virtualenv
Create, activate virtualenv and install pip libraries
- virtualenv env
- source env/bin/activate
- pip install -r requirements.txt
Alternatively, Manually install pip libraries
- pip install RPi.GPIO
- pip install smbus
- pip install pillow
- pip install numpy
- pip install pandas
Hardware
- Raspberrypi 3B+
- waveshare 3 channel RPi Relay Board
Configuration and user control files
./relay_config.json
- this file will set status of the processes: PH up, PH Down, and PH Monitoring, this file can be modified directly but serves as a file that allows for user controls
./system/relay-control.service
- this file runs the relay-control script as a service file on linux OS
- systemctl enable ~/relay-control/system/relay-control.service
- systemctl start relay-control
./logs/*
- logs of the process as well as status operations
Issues
- MQTT communication for UI control
resolved
- Service file
- json files for api
- Logging over print statements (log files)
- Turn this into a class structure for replicability/ abstraction (objectify)
- Nonblocking starting functionality for module
- error handling
- add liscence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RPI-control-center-0.0.1.tar.gz
(18.9 kB
view hashes)
Built Distribution
Close
Hashes for RPI_control_center-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052c54959ba11c818330d4fcee37ef964d10c43ed8c27d5679c6a0b9bb7abb7d |
|
MD5 | 35c5225b583ff241a81d03c100609a78 |
|
BLAKE2b-256 | 14e2702a58e4b9decc5850d6f1c3afe616e19181061b8fd671b379b224797731 |