bio metric setup - ashish-greycube/help GitHub Wiki

Device: eTime Track Lite OS : windows 10

https://github.com/frappe/biometric-attendance-sync-tool


image


Run : C:\Program Files\auto_attendence_greycube\biometric-attendance-sync-tool-v1.0-win64\attendance-sync.exe


https://github.com/frappe/biometric-attendance-sync-tool/releases/ https://github.com/frappe/biometric-attendance-sync-tool/releases/download/v1.0/biometric-attendance-sync-tool-v1.0-win64.zip

Say it is downloaded to "C:\Program Files\auto_attendence_greycube\biometric-attendance-sync-tool-v1.0-win64" put empty local_config.py attendance-sync.exe <-- run once to fill up local_config empty logs folder

https://www.splinterware.com/download/ssfree.exe 2023-04-19_13-11

C:\Program Files\Python310\python.exe
-c "from erpnext_sync import main; main()"
C:\Program Files\auto_attendence_greycube\biometric-attendance-sync-tool-v1.0-win64

shift type to be defined and mentioned in config file

shift_type_device_mapping = [
    {'shift_type_name': 'Shift1', 'related_device_id': ['test_1','test_2']}
]

for hourly shift_type.process_auto_attendance_for_all_shifts to run and mark attendance, following fields should have value

image


Steps for windows server 2006

  • download python 3.6+ https://www.python.org/ftp/python/3.13.5/python-3.13.5-amd64.exe

  • install python https://utho.com/docs/windows/how-to-install-python-3-7-on-windows-server-2012-r2-2016-2019-2022-via-powershell C:\Users\Administrator\Downloads\python-3.13.5-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0

  • get repo Download zip on desktop from https://github.com/frappe/biometric-attendance-sync-tool

  • local path C:\Users\Administrator\Desktop\Attendance_GC\biometric-attendance-sync-tool-master

  • setup requirements cd biometric-attendance-sync-tool pip3 install -r requirements.txt

  • copy local_config.py

  • scheduler tool https://www.splinterware.com/download/ssfree.exe python3.exe -c "from erpnext_sync import main; main()"


  • local_config.py
# ERPNext related configs
ERPNEXT_API_KEY = 'XX'
ERPNEXT_API_SECRET = 'YY'
ERPNEXT_URL = 'https://erp.xx.com/'

ERPNEXT_VERSION = 14

# operational configs
PULL_FREQUENCY = 1 or 60 # in minutes
LOGS_DIRECTORY = 'logs' # logs of this script is stored in this directory
IMPORT_START_DATE = '20250702' or None # format: '20190501'

# Biometric device configs (all keys mandatory)
    #- device_id - must be unique, strictly alphanumerical chars only. no space allowed.
    #- ip - device IP Address
    #- punch_direction - 'IN'/'OUT'/'AUTO'/None
    #- clear_from_device_on_fetch: if set to true then attendance is deleted after fetch is successful.
    #(Caution: this feature can lead to data loss if used carelessly.)
devices = [{"device_id": 'main', "ip": "192.168.2.200", "punch_direction": None, "clear_from_device_on_fetch": False,'latitude':0.0000,'longitude':0.0000}]

# Configs updating sync timestamp in the Shift Type DocType
shift_type_device_mapping = [{"shift_type_name": "الوردية الرسمية", "related_device_id": [""]}]