Help › Import from other clocks (CSV, JSON)

Import from other clocks (CSV, JSON)

A client's clock of another brand gives a CSV or JSON file? Make a mapping once (which column is the branch, the employee, the date, the time), then import its files here.

When a new client already has a time clock of another brand, that clock (or its program) can usually save its punches in a CSV file (a text file with columns, opens in Excel) or a JSON file. Import from other clocks reads that file and turns each line into a punch of PunchPlus, exactly as if it came from a PunchPlus clock: branch, card, date and time (and, if the clock has them, supervisor codes). The punches then go through Calculate hours like all the others.

You describe each brand of file once, in a mapping: which column holds the branch, the employee, the date and the time. After that, importing a file of that clock takes two clicks.

On this screen

ItemWhat it does
New mappingOpens the mapping screen for a new brand of clock (or a new client).
Import a fileChoose the Mapping and the File, then click Read the file. Nothing is imported yet: the next screen shows what was found.
The list of mappingsEach mapping with its kind (CSV or JSON), its Watched folder and the result of its Last import. Open changes it.
The PunchPlus standard fileThe columns of the file PunchPlus reads without any mapping, and an Example file to download.

The mapping of a clock file

1. The clock and its file

FieldWhat it does
Name of the mappingThe brand of clock, or the client. Needed to save.
Notes (optional)Anything to remember about this file.
Sample file of the clockA real file of that clock. Click Read the sample and guess the columns: PunchPlus reads it and proposes which column is what. The first 64 KB of the sample are kept with the mapping.
Kind of fileCSV / text or JSON. Found by itself from the sample.
SeparatorFor CSV: comma, semicolon, tab or ``. Find by itself looks at the first lines.
Lines to skip at the topFor CSV: lines of titles before the columns (for example a report header).
The first line has the names of the columnsUncheck it when the file starts with the punches; the columns are then called Column 1, Column 2…
Where the punches are (optional)For JSON: the path to the list of punches, for example data.punches. Empty: the first list found. JSON lines (one punch per line) are read too. Values inside objects get dotted names, for example device.site.
CharactersUTF-8 or Windows (ANSI). Find by itself works for almost every file (accents included).

2. The sample

The first lines of the file, column by column, so you can see what each column holds.

3. Which column is what

LineWhat to choose
BranchAlways the same branch (type its number) or In a column. When the column holds names instead of numbers, give them in the box next to it: Main Street=12; Airport=96.
EmployeeCard number (the card of the employee file), or Employee number (its card is found in the employee file). Leading zeros do not matter: 001001 is card 1001.
Date and timeOne column with the date and the time (for example 2026-09-24 08:02 or 2026-09-24T08:02:11-04:00), A date column and a time column, or A Unix timestamp (seconds since 1970) (milliseconds are recognized too).
FormatFind by itself, or the exact format of the date and of the time. The formats found are shown after a preview.
Time shiftHours added to every time. Leave 0 when the clock gives the local time; for a clock that gives the time in UTC, put the difference (for example -4 in summer in Quebec).
Lines to ignoreA column, and the values of the lines to leave out, separated by commas (for example a Punch Type column with TEST, BREAK).
Supervisor codes (optional)The column of the supervisor code number and the column of its value (HHMM). A line with a code becomes a supervisor code, the others are punches. See Supervisor codes.

In and out do not need a column: PunchPlus pairs the punches of the day in order, like the punches of its own clocks. A column like Punch Type (IN / OUT) can stay unused.

Important: a date like 03/04/2026 reads as well day first (3 April) as month first (March 4). When every date of the file fits both ways, PunchPlus takes month first (in English and Spanish) or day first (in French) and shows a warning: choose the date Format of the mapping to be sure.

4. Automatic import (optional)

Watched folder: a folder where the files of this clock are put (by its program, a shared folder, an FTP transfer…). Every 5 minutes, each .csv, .txt or .json file of that folder is imported with this mapping and moved to its imported subfolder, or to not imported when nothing in it could be read. The folder is on the computer that runs PunchPlus Web; online, the cron job of the web server does it. The result is in the journal of Data and backups and on the list of mappings.

The buttons

  • Preview converts the first 200 lines of the sample and shows each one: line, branch, card, employee, date, time, code, and ok or the reason it cannot be converted.
  • Save keeps the mapping.
  • Delete deletes the mapping (after a question). The punches already imported stay.

How to set up a new brand of clock

  1. Ask the client for a file of their clock covering a few days.
  2. In the menu, click Import from other clocks, then New mapping.
  3. Choose the file in Sample file of the clock and click Read the sample and guess the columns.
  4. Check every line of Which column is what and change what is wrong (for example the names of the stores).
  5. Click Preview. Every line should say ok; read the reasons of the others (see below).
  6. Click Save.

How to import a file

  1. In the menu, click Import from other clocks.
  2. Under Import a file, choose the Mapping and the File, then click Read the file.
  3. Check the screen of the file: Punches converted, Lines not converted with their reasons, the Dates and the Branches, and the list of the punches.
  4. Click Import these … punches. A punch already received (same branch, card, date and time) is never added twice, so importing the same file again does no harm.
  5. Then calculate the hours of those dates (the punches also show on the Home screen as new punches).

Download the converted file (PunchPlus standard) saves the punches as a PunchPlus standard file instead, for example to keep it or to send it to another computer.

Why a line is not converted

ReasonWhat to do
ignored (as asked)The line has a value of Lines to ignore. Nothing to do.
no branchThe branch column is empty, or holds a name not in the list of names to numbers. Add the name: Name=number.
no card or employee numberThe employee column is empty or is not a number. Check the column chosen.
employee not foundWith Employee number, no employee of that branch has this number (or the employee has no card). Add the employee in Employees.
date not understood / time not understoodChoose the Format of the date or of the time, or check the columns chosen.
date in the futureThe date is after tomorrow: usually a wrong format (day and month inverted).
Tip: a card that is not in the employee file is still imported, with a warning: the calculation rejects its punches until the card is added to an employee. Add the employee, then calculate again.

The PunchPlus standard file

A clock or a program that can write this CSV file needs no mapping (choose PunchPlus standard file under Mapping). The first line holds the names of the columns:

ColumnWhat it holds
branchBranch number
cardCard number of the employee (as in the employee file)
dateDate of the punch, YYYY-MM-DD
timeTime of the punch, HH:MM (24 hours)
codeSupervisor code (optional, blank for a punch)
valueValue of the supervisor code, HHMM (optional)

See also

This screen for the technical support

Print opens the print window with your default printer already chosen (a browser always asks before printing): choose "Save as PDF" there to get a file instead.

Changes not saved

You changed this record and did not save it.