Python2/3 library for NRF24L01+ Transceivers
- enable SPI in raspi-config
- sudo apt-get install python3-dev -y
- wget https://github.com/Gadgetoid/py-spidev/archive/master.zip
- unzip master.zip
- rm master.zip
- cd ./py-spidev-master
- sudo python3 setup.py install
- mkdir /home/pi/NRF24L01
- sudo apt-get install git -y
- cd /home/pi/NRF24L01
- git clone https://github.com/Syrex-o/lib_nrf24
- cd ./lib_nrf24/
- cp lib_nrf24.py /home/pi/NRF24L01/
- sudo apt-get install python3-rpi.gpio -y
- sudo nano /etc/rc.local
- python3 /home/pi/NRF24L01/receiveSwitch.py &
- sudo mv /home/pi/NRF24L01 /opt/fhem
- sudo nano /etc/sudoers
- fhem ALL=(ALL) NOPASSWD: ALL