how to integrate essl biometric device data to attendence system through php - php

I want to get the punch in and out time from biometric device and store it in another attendence product database (mysql)

download the SDK from zkteco site. and go through the sdk sample programs and documents.
If you are already familiar with the zk program then, You have to read all the users from one device (using ReadAllUserID to buffer the data into device's memory and then GetAllUserInfo) then call SetUserInfo for every user id with another device.
If you are like to do it over http please check http://zkteco.tech/application/biometric-web-api.html for api details.

Related

How to connect ZKTeco attendance to google sheet or online php server

I don't have any idea of it how can i get attendance data directly to google sheet from ZKTeco attendance device. I searched many way to connect to php server but there is no clear information, how can I get access to the device attendance log. There also no HTTP request from the device also. So can any share there experience and how can I solve that issue ? I am using ZKTeco K40 and F18
You need to develop a program that calls the ZKTeco web API and have an available server that post your users' data.
After you have the data available in JSON, you can use the URL Fetch Service you can call in Apps Script within your Google Sheets to display the information in a spreadsheet in this way
var response = UrlFetchApp.fetch(url)
var content = response.getContentText()
var json = JSON.parse(content)

Is there any possible way to use firebase database only for real time messaging and store the data on own server

I am trying to build a chat app using android, firebase, php and MySQL but I can't afford to store all the messages on firebase database yet. So, I like to use it just for real time chatting while two users are interacting each other and then delete all the chat log on the firebase and store it on my own database, so that I can show the messages from the previous conversations to the users.
So the problem is that how will I be able to show the previous messages to the user. Here are the logic I can figure out
1) I will upload all the old messages to the firebase database when two users start to interact each other and show all the old and new conversation in the recyclerview android.
But this could become trouble when thousands of users start to interact each other at the same time as we need to upload bulk amount of data to the firebase.
2) Get all the old conversations from my own server and create new node on firebase database then show all of them together again in a recycler view.
But it will be very painful to show the old and new messages in a single recyclerview from two different data sources and can't do realtime sync.
Is there any possible way I could have done and I would be much appreciated if you guys started discussing about this topic.
P.S : I will use firebase pay service later when I can afford.

Possible to track location via android mobile gps using Google API?

I have developed fleet management using PHP. Here i plan to track vehicle in real-time and store the locations in my database.
My question is: Possible to track location via android mobile gps using Google API?
If it is possible please give me a way to create this.
Thanks in advance...!
PHP, which is a server-side language, can't query the device's location, instead the client application should get GPS location coordinates via Android's API and send it to the PHP server (for example via a POST request), then the server can handle the data and store it into the database.

AS3/Air iOS and Android data sync data to/from multiple devices to remote DB

I am about to undertake the development of an app that requires sycning of data from the local device to an online DB...and back.
I am building something that will allow users to create events and invite users to those events. Users will also be able to chat and receive in app notifications. I would like to store the information in local storage that the user creates and push this information to an online DB when there is internet available. Then if there are any waiting events or notifications for that user, they can retrieve them when online also.
My concern is about the merging of data and the fact the local storage PK's will not be the same as the online PK's.
For example, user1 and user2 both just installed the app. They both create an event and invite each other to the event. Once they are both online their devices try to push the data to the online DB however there is a conflict with the PK used.
My question is: Can someone give me some guidance about how best to handle a situation like this? The app will be built using AS3 and Air and only for iOS and Android. There will be a MySQL remote DB with a PHP backend.
Any help is appreciated.
You could also send a time stamp of when it was sent to use with your PHP, where the request that got there last has an event sent back to notify the user (probably best with a push notification) that there has already been an event made.
Also not sure if you know already, but you can use NetConnection status to get a sense of when they connect to the internet.
localNc = new NetConnection();
localNc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
function netStatus(event:NetStatusEvent):void{
trace(event.info.code);
}

PHP and Android GCM push notification - How to store users

I have my Android client application that wait for a push message from the GCM Google server... on the server side, my web must store the registration ID of the device, in order to send the push notification to this specific device (calling the GCM Service with a specific PHP class).
The question is, how can I refresh the registration Id of the device every time It is registreted on the Google GCM servers? How can I associate to each users on the web app to a specific registration Id of the android app?
You can use PHpmyadmin tool to creat the data base and use the php script to open,store registration Id and close the db.

Categories