34 Commits

Author SHA1 Message Date
Your Name
5a5d94ce7a Add GT06 protocol support on port 5023
- Added GT06_PORT configuration to CloudronManifest.json
- GT06 protocol now available on port 5023 (standard port)
- Enables support for GT06 GPS tracker devices
- Tested and verified port connectivity
2025-08-13 20:37:05 -06:00
Package Updates
2746b36286 Update package version to 1.18.0 2025-07-08 07:33:04 +00:00
Johannes Zellner
ab8ad38b85 Fixup test 2025-07-08 09:21:42 +02:00
Renovate Bot
d5db8f1c55 chore(deps): update dependency traccar/traccar to v6.8.1
| datasource      | package         | from  | to    |
| --------------- | --------------- | ----- | ----- |
| github-releases | traccar/traccar | 6.7.3 | 6.8.1 |
2025-07-08 07:03:44 +00:00
Package Updates
bc2d1c99d1 Update package version to 1.17.3 2025-06-15 11:10:49 +00:00
Renovate Bot
2381760ce1 chore(deps): update dependency traccar/traccar to v6.7.3
| datasource      | package         | from  | to    |
| --------------- | --------------- | ----- | ----- |
| github-releases | traccar/traccar | 6.7.2 | 6.7.3 |
2025-06-15 10:12:47 +00:00
Package Updates
680522aaaf Update package version to 1.17.2 2025-06-13 14:04:28 +00:00
Elias Hackradt
60cf2dcf03 (fix) 13921 add native app url to the manifest 2025-06-13 13:20:00 +02:00
Girish Ramakrishnan
ab6bd4043f Update documentation url 2025-06-05 10:22:49 +02:00
Package Updates
794650a646 Update package version to 1.17.1 2025-06-02 06:30:21 +00:00
Renovate Bot
f038bf5d67 chore(deps): update dependency traccar/traccar to v6.7.2
| datasource      | package         | from  | to    |
| --------------- | --------------- | ----- | ----- |
| github-releases | traccar/traccar | 6.7.1 | 6.7.2 |
2025-06-02 05:20:51 +00:00
Package Updates
0c10d06b47 Update package version to 1.17.0 2025-05-27 09:26:41 +00:00
Vladimir D
056b8e6e42 OIDC config fixed 2025-05-27 13:12:48 +04:00
Vladimir D
56d4cee9c8 tests updated 2025-05-27 12:30:17 +04:00
Renovate Bot
3432246e5e chore(deps): update dependency traccar/traccar to v6.7.1
| datasource      | package         | from | to    |
| --------------- | --------------- | ---- | ----- |
| github-releases | traccar/traccar | 6.6  | 6.7.1 |
2025-05-24 05:21:15 +00:00
Package Updates
86e97c91fe Update package version to 1.16.0 2025-04-01 15:48:05 +00:00
Girish Ramakrishnan
70e1890001 Update base image to 5.0.0 2025-04-01 17:32:33 +02:00
Package Updates
bdb97eda2f Update package version to 1.15.0 2025-01-12 08:36:48 +00:00
Renovate Bot
0da60dccf0 chore(deps): update dependency traccar/traccar to v6.6
| datasource      | package         | from | to  |
| --------------- | --------------- | ---- | --- |
| github-releases | traccar/traccar | 6.5  | 6.6 |
2025-01-12 06:21:07 +00:00
Vladimir D
94ea75bfdb "CLOUDRON_OIDC_PROVIDER_NAME is not supported" comment added
checklist added
2024-12-26 16:20:18 +04:00
Renovate Bot
4653d689d8 chore(deps): update dependency traccar/traccar to v6.5
| datasource      | package         | from | to  |
| --------------- | --------------- | ---- | --- |
| github-releases | traccar/traccar | 6.4  | 6.5 |
2024-11-11 08:29:52 +00:00
Girish Ramakrishnan
822e7fae94 Update renovate 2024-11-11 08:28:06 +00:00
Johannes Zellner
aa44cf613d Has no patch version 2024-11-10 20:45:05 +01:00
Johannes Zellner
f084b95d66 Downgrade for ci 2024-11-10 20:42:19 +01:00
Johannes Zellner
30203a4fae Prepare for ci 2024-11-10 20:42:07 +01:00
Girish Ramakrishnan
363b3bcbfe Update renovate.json5 2024-11-04 17:09:53 +00:00
Girish Ramakrishnan
cf6e0aa31e Add renovate.json5 2024-11-04 17:02:48 +00:00
Johannes Zellner
8fdae7271a Bump version 2024-09-18 13:47:27 +02:00
Johannes Zellner
a37c8c398f Make tests language independent 2024-09-18 13:40:48 +02:00
Johannes Zellner
365763a684 Update test deps 2024-09-18 11:12:51 +02:00
Johannes Zellner
6ec68a57e5 Update to 6.5 2024-09-18 11:12:34 +02:00
Girish Ramakrishnan
8d35c6b967 Version 1.13.0 2024-08-10 10:17:09 +02:00
Girish Ramakrishnan
c9ed0c7342 Update test packages 2024-08-10 10:02:48 +02:00
Girish Ramakrishnan
eb246a1d9b Update Traccar to 6.4 2024-08-10 09:49:20 +02:00
10 changed files with 886 additions and 530 deletions

View File

@@ -129,3 +129,57 @@
* Avoid duplicated tasks with horizontal scaling
* Add a users column to the device list
* Clear attribute on null computation result
[1.13.0]
* Update traccar to 6.4
* [Full changelog](https://www.traccar.org/blog/traccar-6-4/)
* critical fix for device freezing issue
[1.14.0]
* Update traccar to 6.5
* [Full changelog](https://www.traccar.org/blog/traccar-6-5/)
* Handling processing errors to fix freezing devices
* Option to use linked driver as the current driver
* Support multiple alarms in a single position
* Improve web app loading experience
* Google Maps fallback option with no API key
* Wialon position forwarding option
* Fix map attribution control
[1.15.0]
* Update traccar to 6.6
* [Full Changelog](https://www.traccar.org/blog/traccar-6-6/)
* Managers can now send announcements
* Fixes for multiline SMS notifications
* Early and late computed attributes
* Improvements to user session security
* Support for custom navigation links
* Enhanced speed color scheme
* Collapsible settings and reports drawer
* Improved device card UI
[1.16.0]
* Update base image to 5.0.0
[1.17.0]
* Update traccar to 6.7.1
* [Full Changelog](https://www.traccar.org/blog/traccar-6-7.1/)
* Breaking change: Updated database schema to version 12
* Feature: Added support for new GPS device models
* Feature: Improved geofencing accuracy
* Bugfix: Fixed issue with device disconnection
* Bugfix: Resolved memory leak in server module
* Bugfix: Corrected timezone handling in reports
[1.17.1]
* Update traccar to 6.7.2
[1.17.2]
* fix OpenID login from mobile apps
[1.17.3]
* Update traccar to 6.7.3
[1.18.0]
* Update traccar to 6.8.1

View File

@@ -5,9 +5,9 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG.md",
"tagline": "Modern GPS Tracking Platform",
"version": "1.12.0",
"upstreamVersion": "6.3",
"minBoxVersion": "7.1.0",
"version": "1.18.0",
"upstreamVersion": "6.8.1",
"minBoxVersion": "8.1.0",
"memoryLimit": 1073741824,
"healthCheckPath": "/",
"httpPort": 8082,
@@ -20,12 +20,21 @@
}
},
"addons": {
"sendmail": { "supportsDisplayName": false },
"sendmail": {
"supportsDisplayName": false
},
"localstorage": {},
"mysql": {},
"oidc": { "loginRedirectUri": "/api/session/openid/callback" }
"oidc": {
"loginRedirectUri": "/api/session/openid/callback, org.traccar.manager:/api/session/openid/callback"
}
},
"optionalSso": true,
"checklist": {
"change-default-password": {
"message": "Change the admin email and password credentials"
}
},
"manifestVersion": 2,
"tcpPorts": {
"OSMAND_PORT": {
@@ -63,6 +72,12 @@
"description": "Port over which Teltonika clients can connect",
"defaultValue": 5027,
"containerPort": 5027
},
"GT06_PORT": {
"title": "GT06 Protocol Port",
"description": "Port over which GT06 clients can connect",
"defaultValue": 5023,
"containerPort": 5023
}
},
"website": "https://www.traccar.org",
@@ -70,7 +85,10 @@
"contactEmail": "support@cloudron.io",
"icon": "file://logo.png",
"tags": [
"gps", "tracking", "seek", "fleet"
"gps",
"tracking",
"seek",
"fleet"
],
"mediaLinks": [
"https://screenshots.cloudron.io/org.traccar.cloudronapp/web.png",
@@ -78,6 +96,5 @@
"https://screenshots.cloudron.io/org.traccar.cloudronapp/command_new.png"
],
"forumUrl": "https://forum.cloudron.io/category/146/traccar",
"documentationUrl": "https://docs.cloudron.io/apps/traccar"
"documentationUrl": "https://docs.cloudron.io/packages/traccar"
}

View File

@@ -1,11 +1,12 @@
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
RUN mkdir -p /app/code
WORKDIR /app/code
ARG VERSION=6.3
# renovate: datasource=github-releases depName=traccar/traccar versioning=regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>\d+)?$ extractVersion=^v(?<version>.+)$
ARG TRACCAR_VERSION=6.8.1
RUN wget https://github.com/traccar/traccar/releases/download/v${VERSION}/traccar-linux-64-${VERSION}.zip -O traccar.zip && \
RUN wget https://github.com/traccar/traccar/releases/download/v${TRACCAR_VERSION}/traccar-linux-64-${TRACCAR_VERSION}.zip -O traccar.zip && \
unzip traccar.zip && \
./traccar.run --target /app/code/ --noexec && \
rm README.txt traccar.zip traccar.run

View File

@@ -3,8 +3,6 @@ This app is pre-setup with an admin account. The initial credentials are:
**Username**: admin@cloudron.local<br/>
**Password**: admin<br/>
Please change the admin email and password credentials immediately.
<sso>
By default, Cloudron users have regular users permissions. Permissions can be updated on the user profile page in the admin back-end.
</sso>

4
renovate.json5 Normal file
View File

@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>devops/renovator//default.renovate.json5"]
}

View File

@@ -55,11 +55,14 @@ xmlstarlet ed --inplace --update '//properties/entry[@key="web.url"]' -v "${CLOU
# OIDC
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
# update config file (to be removed on the next release)
sed -e 's/^.*openid.issuerUrl.*$//g' -i /app/data/traccar.xml
echo "=> Ensure OIDC settings"
# CLOUDRON_OIDC_PROVIDER_NAME is not supported
xmlstarlet ed --inplace \
--update '//properties/entry[@key="openid.clientId"]' -v "${CLOUDRON_OIDC_CLIENT_ID}" \
--update '//properties/entry[@key="openid.clientSecret"]' -v "${CLOUDRON_OIDC_CLIENT_SECRET}" \
--update '//properties/entry[@key="openid.issuerUrl"]' -v "${CLOUDRON_OIDC_ISSUER}" \
--update '//properties/entry[@key="openid.authUrl"]' -v "${CLOUDRON_OIDC_AUTH_ENDPOINT}" \
--update '//properties/entry[@key="openid.tokenUrl"]' -v "${CLOUDRON_OIDC_TOKEN_ENDPOINT}" \
--update '//properties/entry[@key="openid.userInfoUrl"]' -v "${CLOUDRON_OIDC_PROFILE_ENDPOINT}" \

1252
test/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,10 +10,10 @@
"license": "ISC",
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^10.7.0",
"selenium-webdriver": "^4.23.0"
"mocha": "^11.7.1",
"selenium-webdriver": "^4.34.0"
},
"dependencies": {
"chromedriver": "^127.0.0"
"chromedriver": "^138.0.1"
}
}

View File

@@ -1,10 +1,6 @@
#!/usr/bin/env node
/* jshint esversion: 8 */
/* global describe */
/* global before */
/* global after */
/* global it */
/* global it, xit, describe, before, after, afterEach */
'use strict';
@@ -12,6 +8,7 @@ require('chromedriver');
const execSync = require('child_process').execSync,
expect = require('expect.js'),
fs = require('fs'),
path = require('path'),
{ Builder, By, Key, until } = require('selenium-webdriver'),
{ Options } = require('selenium-webdriver/chrome');
@@ -24,7 +21,7 @@ if (!process.env.USERNAME || !process.env.EMAIL || !process.env.PASSWORD) {
describe('Application life cycle test', function () {
this.timeout(0);
const LOCATION = 'test';
const LOCATION = process.env.LOCATION || 'test';
const TEST_TIMEOUT = 20000;
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
const DEVICE_NAME = 'FancyDevice';
@@ -39,16 +36,27 @@ describe('Application life cycle test', function () {
let athenticated_by_oidc = false;
before(function () {
const options = new Options().windowSize({ width: 1280, height: 1024 });
if (process.env.HEADLESS) options.addArguments('headless');
browser = new Builder().forBrowser('chrome').setChromeOptions(options).build();
const chromeOptions = new Options().windowSize({ width: 1280, height: 1024 });
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
});
after(function () {
browser.quit();
});
afterEach(async function () {
if (!process.env.CI || !app) return;
const currentUrl = await browser.getCurrentUrl();
if (!currentUrl.includes(app.domain)) return;
expect(this.currentTest.title).to.be.a('string');
const screenshotData = await browser.takeScreenshot();
fs.writeFileSync(`./screenshots/${new Date().getTime()}-${this.currentTest.title.replaceAll(' ', '_')}.png`, screenshotData, 'base64');
});
async function waitForElement(elem) {
await browser.wait(until.elementLocated(elem), TEST_TIMEOUT);
await browser.wait(until.elementIsVisible(browser.findElement(elem)), TEST_TIMEOUT);
@@ -71,7 +79,7 @@ describe('Application life cycle test', function () {
await waitForElement(By.xpath('//span[text()="Account"]'));
}
async function loginOIDC(username, password) {
async function loginOIDC(username, password, alreadyAuthenticated = true) {
browser.manage().deleteAllCookies();
await browser.get(`https://${app.fqdn}/login`);
await browser.sleep(2000);
@@ -80,15 +88,11 @@ describe('Application life cycle test', function () {
await browser.findElement(By.xpath('//button[contains(., "Login with OpenID")]')).click();
await browser.sleep(2000);
if (!athenticated_by_oidc) {
await waitForElement(By.xpath('//input[@name="username"]'));
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
await browser.sleep(2000);
await browser.findElement(By.xpath('//button[@type="submit" and contains(text(), "Sign in")]')).click();
await browser.sleep(2000);
athenticated_by_oidc = true;
if (!alreadyAuthenticated) {
await waitForElement(By.id('inputUsername'));
await browser.findElement(By.id('inputUsername')).sendKeys(username);
await browser.findElement(By.id('inputPassword')).sendKeys(password);
await browser.findElement(By.id('loginSubmitButton')).click();
}
await browser.sleep(3000);
@@ -107,9 +111,9 @@ describe('Application life cycle test', function () {
async function addDevice() {
await browser.get(`https://${app.fqdn}/settings/device`);
await waitForElement(By.id(':r3:'));
await browser.findElement(By.id(':r3:')).sendKeys(DEVICE_NAME);
await browser.findElement(By.id(':r4:')).sendKeys(DEVICE_IDENTIFIER);
await waitForElement(By.xpath('(//input[contains(@id, "«r")])[1]'));
await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[1]')).sendKeys(DEVICE_NAME);
await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[2]')).sendKeys(DEVICE_IDENTIFIER);
await browser.findElement(By.xpath('//button[text()="Save"]')).click();
await waitForElement(By.xpath(`//span[text()="${DEVICE_NAME}"]`));
}
@@ -144,7 +148,7 @@ describe('Application life cycle test', function () {
it('device exists', deviceExists);
it('can logout', logout);
it('can login as normal user via OIDC', loginOIDC.bind(null, process.env.USERNAME, process.env.PASSWORD));
it('can login as normal user via OIDC', loginOIDC.bind(null, process.env.USERNAME, process.env.PASSWORD, false));
it('can logout', logout);
it('can restart app', function () { execSync(`cloudron restart --app ${app.id}`); });

View File

@@ -27,7 +27,6 @@
<entry key='openid.clientId'>##CLOUDRON_OIDC_CLIENT_ID##</entry>
<entry key='openid.clientSecret'>##CLOUDRON_OIDC_CLIENT_SECRET##</entry>
<entry key='openid.issuerUrl'>##CLOUDRON_OIDC_ISSUER##</entry>
<entry key='openid.authUrl'>##CLOUDRON_OIDC_AUTH_ENDPOINT##</entry>
<entry key='openid.tokenUrl'>##CLOUDRON_OIDC_TOKEN_ENDPOINT##</entry>
<entry key='openid.userInfoUrl'>##CLOUDRON_OIDC_PROFILE_ENDPOINT##</entry>