sudo nano /etc/modprobe.d/raspi-blacklist.conf
# blacklist spi and i2c by default (many users don't need them) # blacklist spi-bcm2708 blacklist i2c-bcm2708
download paket SPI-Py untuk mengaktifkan komunikasi python via SPI
git clone https://github.com/lthiery/SPI-Pydan install
sudo python setup.py installjika perlu driver NFC reader type MFRC522 yang asli bisa ke web
https://github.com/mxgxw/MFRC522-python
install GPIO untuk Python (jika diperlukan,update nomor paket agar bisa mendownload paket terbaru)
wget https://pypi.python.org/packages/source/R/RPi.GPIO-0.5.4.tar.gz tar zxf RPi.GPIO-0.5.4.tar.gz cd RPi.GPIO-0.5.4 sudo python setup.py install
download program attendance
git clone https://github.com/Yimbo/attendanceCreate table in your MySQL Database and upload structure to that database from file mysql.sql.
Next update file mysql.py according to your settings (server, username, password and database name).
After this step you should be able to run the program:
sudo python attendance.py
gan, udah nyoba ini?
BalasHapusko ane nyoba ada yang error mulu. di "from attendance import onScreen" sama satu lagi "AttributeError: fileno".
bisa banru ga gan kenapa bisa begitu?
tambahkan tanda "#" seperti contoh di bawah
Hapus#mport onScreen
harus nya sih jalan,mungkin paket yg di install ga lengkap,