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
| Item | What it does |
|---|---|
| New mapping | Opens the mapping screen for a new brand of clock (or a new client). |
| Import a file | Choose the Mapping and the File, then click Read the file. Nothing is imported yet: the next screen shows what was found. |
| The list of mappings | Each mapping with its kind (CSV or JSON), its Watched folder and the result of its Last import. Open changes it. |
| The PunchPlus standard file | The 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
| Field | What it does | |
|---|---|---|
| Name of the mapping | The brand of clock, or the client. Needed to save. | |
| Notes (optional) | Anything to remember about this file. | |
| Sample file of the clock | A 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 file | CSV / text or JSON. Found by itself from the sample. | |
| Separator | For CSV: comma, semicolon, tab or ` | `. Find by itself looks at the first lines. |
| Lines to skip at the top | For CSV: lines of titles before the columns (for example a report header). | |
| The first line has the names of the columns | Uncheck 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. | |
| Characters | UTF-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
| Line | What to choose |
|---|---|
| Branch | Always 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. |
| Employee | Card 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 time | One 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). |
| Format | Find by itself, or the exact format of the date and of the time. The formats found are shown after a preview. |
| Time shift | Hours 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 ignore | A 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.
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
- Ask the client for a file of their clock covering a few days.
- In the menu, click Import from other clocks, then New mapping.
- Choose the file in Sample file of the clock and click Read the sample and guess the columns.
- Check every line of Which column is what and change what is wrong (for example the names of the stores).
- Click Preview. Every line should say ok; read the reasons of the others (see below).
- Click Save.
How to import a file
- In the menu, click Import from other clocks.
- Under Import a file, choose the Mapping and the File, then click Read the file.
- 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.
- 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.
- 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
| Reason | What to do |
|---|---|
| ignored (as asked) | The line has a value of Lines to ignore. Nothing to do. |
| no branch | The 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 number | The employee column is empty or is not a number. Check the column chosen. |
| employee not found | With 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 understood | Choose the Format of the date or of the time, or check the columns chosen. |
| date in the future | The date is after tomorrow: usually a wrong format (day and month inverted). |
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:
| Column | What it holds |
|---|---|
branch | Branch number |
card | Card number of the employee (as in the employee file) |
date | Date of the punch, YYYY-MM-DD |
time | Time of the punch, HH:MM (24 hours) |
code | Supervisor code (optional, blank for a punch) |
value | Value of the supervisor code, HHMM (optional) |