• Stars
    star
    182
  • Rank 211,154 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple tool for syncing Biometric Attendance data with your ERPNext server

Biometric Attendance Sync Tool (For ERPNext)

Python Scripts to poll your biometric attendance system (BAS) for logs and sync with your ERPNext instance

Table of Contents

Pre-requisites

  • Python 3.6+

Usage

There's two ways you can use this tool. If accessing the CLI is a bit of a pain for you, the GUI has a simple form to guide you through the process.

Under /releases, for a particular release download the biometric-attendance-sync-tool-[version]-[distribution].zip and unzip it's contents. Now from the location of the unzipped files, you can go ahead with the CLI or GUI method.

GUI

Run the attendance-sync file from the folder; This should setup all it's dependencies automatically and start the GUI.

CLI

The erpnext_sync.py file is the "backbone" of this project. Apart from Windows (which has its own wrapper erpnext_sync_win.py), this file can be directly used to set up the sync tool. Further information provided in the /Wiki.

Setup Specifications (For CLI)

  1. Setup dependencies

    cd biometric-attendance-sync-tool
      && python3 -m venv venv
      && source venv/bin/activate
      && pip install -r requirements.txt
    
  2. Setup local_config.py

    Make a copy of and rename local_config.py.template file. Learn More

  3. Run this script using python3 erpnext_sync.py

UNIX

There's a Wiki for this.

Windows

Installing as a Windows service

  1. Install pywin32 using pip install pywin32
  2. Got to this repository's Directory
  3. Install the windows service using python erpnext_sync_win.py install
  4. Done

Update the installed windows service

python erpnext_sync_win.py update

Stop the windows service

net stop ERPNextBiometricPushService

To see the status of the service

mmc Services.msc

Setting up config

  • You need to make a copy of local_config.py.template file and rename it to local_config.py
  • Please fill in the relevant sections in this file as per the comments in it.
  • Below are the delineation of the keys contained in local_config.py:
    • ERPNext connection configs:
      • ERPNEXT_API_KEY: The API Key of the ERPNext User

      • ERPNEXT_API_SECRET: The API Secret of the ERPNext User

        Please refer to this link to learn how to generate API key and secret for a user in ERPNext. The ERPNext User who's API key and secret is used, needs to have at least the following permissions:

        1. Create Permissions for 'Employee Checkin' DocType.
        2. Write Permissions for 'Shift Type' DocType.
      • ERPNEXT_URL: The web address at which you would access your ERPNext. eg:'https://yourcompany.erpnext.com', 'https://erp.yourcompany.com'

      • ERPNEXT_VERSION: The base version of your ERPNext app. eg: 12, 13, 14

    • This script's operational configs:
      • PULL_FREQUENCY: The time in minutes after which a pull for punches from the biometric device and push to ERPNext is attempted again.
      • LOGS_DIRECTORY: The Directory in which the logs related to this script's whereabouts are stored.

        Hint: For most cases you can leave the above two keys unchanged.

      • IMPORT_START_DATE: The date after which the punches are pushed to ERPNext. Expected Format: YYYYMMDD.

        For some cases you would have a lot of old punches in the biometric device. But, you would want to only import punches after certain date. You could set this key appropriately. Also, you can leave this as None if this case does not apply to you.

TODO: fill this section with more info to help Non-Technical Individuals.

To build executable file for GUI

Linux and Windows:

  1. Activate virtual environment.

  2. Navigate to the repository folder (where gui.py located) by

    cd biometric-attendance-sync-tool
    
  3. Run the following commands:

    pip install pyinstaller
    
    python -m PyInstaller --name="attendance-sync" --windowed --onefile gui.py
    
  4. The executable file attendance-sync created inside dist/ folder.

Resources

License

This project is licensed under GNU General Public License v3.0

More Repositories

1

erpnext

Free and Open Source Enterprise Resource Planning (ERP)
Python
21,163
star
2

charts

Simple, responsive, modern SVG Charts with zero dependencies
JavaScript
14,902
star
3

frappe

Low code web framework for real world applications, in Python and Javascript
Python
7,103
star
4

gantt

Open Source Javascript Gantt
JavaScript
4,558
star
5

books

Free Accounting Software
TypeScript
2,904
star
6

frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
Python
1,452
star
7

bench

CLI to manage Multi-tenant deployments for Frappe apps
Python
1,390
star
8

hrms

Open Source HR and Payroll Software
Python
1,360
star
9

datatable

The Missing Javascript Datatable for the Web
JavaScript
996
star
10

lms

Easy to Use, 100% Open Source Learning Management System
JavaScript
908
star
11

helpdesk

Modern, Streamlined, Free and Open Source Customer Service Software
Vue
536
star
12

builder

Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
Vue
422
star
13

insights

Open source analytics / business intelligence tool (BI)
Vue
381
star
14

drive

100% open source file storage, sharing, and collaboration
Vue
284
star
15

gameplan

Delightful, open-source, work communication tool for remote teams
Python
281
star
16

health

Open Source Health Information System
Python
267
star
17

frappejs

Node + Electron + Vue based metadata web framework (inspired by Frappe)
JavaScript
263
star
18

press

Full service cloud hosting for the Frappe stack - powers Frappe Cloud
Python
246
star
19

crm

Well designed, open source CRM
Vue
246
star
20

frappe-ui

A set of components and utilities for rapid UI development
Vue
241
star
21

mobile

Mobile App for Frappe built on Flutter
Dart
228
star
22

wiki

Free and Open Source Wiki built on top of Frappe
Python
219
star
23

print_designer

Visual print designer for Frappe / ERPNext
JavaScript
214
star
24

education

Open source education / school management system
Python
147
star
25

helm

Helm Chart Repository for Frappe/ERPNext
Python
136
star
26

frappe-client

Python library to use Frappe API
Python
108
star
27

chat

Modern Chat App for Frappe
JavaScript
104
star
28

ecommerce_integrations

Ecommerce integrations for ERPNext
Python
102
star
29

webshop

Open Source eCommerce Platform
Python
90
star
30

lending

Open Source Lending software
Python
77
star
31

changemakers

Beneficiary Management Platform, built on Frappe Framework.
Vue
72
star
32

payments

A payments app for frappe
Python
72
star
33

erpnext-shipping

A Shipping Integration for ERPNext
Python
71
star
34

bench_manager

Frappe app for managing bench
Python
68
star
35

cordova-wrapper

Mobile App Container (Cordova) for Frappé/ERPNext
CSS
64
star
36

erpnext_documentation

[DEPRECATED] ERPNext User Documentation. Please don't raise new contributions here.
HTML
63
star
37

agent

Works with https://github.com/frappe/press
Python
62
star
38

twilio-integration

Twilio integration for ERPNext
Python
56
star
39

waba_integration

WhatsApp Bussiness Cloud API integration for Frappe
Python
53
star
40

frappe_io

Website for Frappe
JavaScript
52
star
41

video

Node.js based library for automated video creation
JavaScript
52
star
42

intellisense

VSCode Extension and Language Server for Frappe Framework
Python
50
star
43

erpnext_com

erpnext.com website
HTML
49
star
44

nextcloud-integration

Frappe App for NextCloud Integration
Python
48
star
45

pesa

A JS money lib whose precision goes up to 11 (and beyond).
TypeScript
45
star
46

frappe_docs

[DEPRECATED] Frappe Framework Documentation. Please don't raise new contributions here.
Python
44
star
47

schools

Merged with frappe/erpnext - this repo is deprecated
HTML
43
star
48

agriculture

Agriculture Domain for ERPNext
Python
41
star
49

non_profit

Non Profit module for Frappe/ERPNext
Python
40
star
50

semgrep-rules

Semgrep rules specific to Frappe Framework
Python
39
star
51

hospitality

Hospitality app for ERPNext to manage hotels & restaurants.
Python
37
star
52

mail

Python
37
star
53

meeting

Prepare agenda, invite users and record minutes of a meeting
HTML
34
star
54

frappe_theme

Theme for Frappe sites
JavaScript
33
star
55

design

🎨 Elements and source files of design resources used in products of frappe technologies
HTML
32
star
56

fonts

30
star
57

translator

Translation Portal for Frappe
Python
27
star
58

event_streaming

Event Streaming for frappe
Python
27
star
59

erpnext_price_estimation

JavaScript
26
star
60

simple-bootstrap-editor

Simple Bootstrap themed HTML5 WYSIWYG editor
JavaScript
24
star
61

erpnext_shopify

[Deprecated] Shopify connector for ERPNext
Python
22
star
62

storage_integration

Python
21
star
63

hub

Python
21
star
64

mail_agent

Python
19
star
65

vidya

Open Source, Open Data Chat Bot
Python
18
star
66

data-gov-in

A better visualisation of data.gov.in
Python
18
star
67

paypal_integration

Paypal API Integrations
HTML
17
star
68

email_delivery_service

Python
17
star
69

panoptic

Frappe App for Project Panoptic
HTML
17
star
70

assets

Asset Management app for ERPNext
Python
17
star
71

erpnext_ui_tests

This repository contains Integration tests for ERPNext features written in Cypress. These tests are run on GitHub Actions via cron every day.
JavaScript
16
star
72

library_management

Library Management App
Python
14
star
73

shopping_cart

Online Shopping Cart integrated with ERPNext
Python
14
star
74

razorpay_integration

Rajorpay integration with Frappe/ERPNext
Python
13
star
75

mobile-accounting

Accounting app for mobile with frappejs-accounting as backend
TypeScript
12
star
76

erpnext_gst_compliance

Manage GST Compliance for ERPNext
Python
12
star
77

chart_of_accounts_builder

Python
12
star
78

odoo_to_erpnext

Migrate your Odoo database to ERPNext
Python
12
star
79

manual_erpnext_com

Abandoned. Moved to: https://github.com/frappe/erpnext/tree/develop/erpnext/docs
HTML
11
star
80

exotel_integration

Exotel Integration for ERPNext
Python
11
star
81

frappejs-cli

Command Line Interface (CLI) for FrappeJS
JavaScript
11
star
82

iff

Membership automation for the Internet Freedom Foundation ❤️
Python
11
star
83

ui

A "batteries included" front-end framework for ones with deadlines.
JavaScript
11
star
84

erpnext-vm

Configuration for the Build Server that generates ERPNext VMs and Vagrant Box
Python
10
star
85

poll

Online Polling App
Python
9
star
86

frappekt

Kotlin
9
star
87

preview_generator

Generates preview image for HTML
Python
9
star
88

frappejs-accounting

Mono repo for frappejs and accounting
8
star
89

books-website

Website for Frappe Books
Vue
7
star
90

frappe.io

New Frappe.io
Vue
7
star
91

erpnext_vagrant

Vagrantfile and Bootstrap for creating a dev environment for ERPNext
Shell
7
star
92

frappe-ui-rn

frappe-ui-rn
TypeScript
7
star
93

ijr

India Justice Report ranks 18 large and 7 small states according to their capacity to deliver justice to all
HTML
7
star
94

erpnext_ksa

Python
7
star
95

insights_docs

Frappe Insights Documentation
Shell
6
star
96

community_erpnext_com

community.erpnext.com [discontinued]
HTML
6
star
97

tagger

A simple Flask app to automatically label GitHub PRs.
Python
6
star
98

frappe-pr-bot

Your friendly neighborhood bot
JavaScript
6
star
99

taxjar_integration

Python
6
star
100

books_docs

Frappe Books documentation
Shell
6
star