This fork of CodeTimer-Mobile adds barcode scanning functionality to quickly configure the app with your Kimai2 server using QR codes generated by the Kimai Mobile Setup plugin.
- QR Code Scanner: Scan QR codes from the Kimai Mobile Setup plugin to automatically configure server URL and API token
- Camera Support: Added camera permissions for Android devices
- One-Click Setup: No more manual typing - just scan and save!
- Kimai2 Server with the Kimai Mobile Setup Bundle plugin installed
- This plugin is required to generate QR codes for mobile setup
- Install from: cloudrizon/kimai-mobile-setup-bundle
- Without this plugin, you can still use the app by manually entering server URL and API token
- Mobile device with camera support (Android)
- API Token generated from your Kimai user profile
- Log in to your Kimai2 instance (e.g., https://time.aristotleaccounting.ca)
- Navigate to your user profile settings
- Go to the "Mobile Setup" or "API Token" section
- Create a new API token (if you haven't already)
- A QR code will be displayed containing your server URL, email, and API token
- Open the CodeTimer Mobile app
- Navigate to Settings (gear icon)
- Click the "Scan QR Code" button (green button with QR code icon)
- Allow camera permissions when prompted
- Point your camera at the QR code displayed on your Kimai server
- The app will automatically fill in:
- Server URL (host)
- API Token
- Click "Save" to store the settings
Once configured, you can immediately start tracking your time entries!
The QR code generated by the Kimai Mobile Setup plugin contains JSON data with the following structure:
{
"serverURL": "https://your-kimai-instance.com",
"userEmail": "your-email@example.com",
"apiToken": "your-api-token-here"
}npm install
cordova platform add androidcordova build androidcordova run android- www/setting.html - Added "Scan QR Code" button to settings page
- www/js/setting.js - Implemented
scanQRCode()function with barcode scanner integration - config.xml - Added camera permissions for Android platform
- package.json - Added
phonegap-plugin-barcodescannerdependency
- phonegap-plugin-barcodescanner (v8.1.0) - Cross-platform barcode/QR code scanner
The scanner is configured with the following options:
- QR_CODE format only
- Front camera disabled (uses back camera)
- Flip camera button enabled
- Torch/flashlight button enabled
- Portrait orientation
- Custom prompt message
- Make sure you're running on a physical device (not browser)
- Camera permissions must be granted
- Ensure you're scanning a QR code from the Kimai Mobile Setup plugin
- The QR code must contain valid JSON with
serverURLandapiTokenfields
- The QR code may be damaged or not from a valid Kimai Mobile Setup plugin
- Try regenerating the QR code on your Kimai server
- Check that camera permissions are granted in Android settings
- Verify your device has a working camera
This is a local fork of the CodeTimer-Mobile project with barcode scanning enhancements.
Apache-2.0 (same as original CodeTimer-Mobile project)
- Original CodeTimer-Mobile by Martin Lačný - Owly
- QR Code Scanner Feature implementation for Aristotle Accounting
- cloudrizon - Creator of the Kimai Mobile Setup Bundle plugin, which this scanner integrates with
- phonegap-plugin-barcodescanner (v8.1.0) by PhoneGap team