Florian Brede
fcdc8fa509
FIX: incorrect null checks can lock up the worker
2021-09-13 02:04:41 +02:00
Florian Brede
5005a444d5
Merge pull request #5 from lover-of-memes/dockerfile
...
dockerfile & bunzip2 check fix
2021-09-13 02:04:11 +02:00
Scott Conway
f86db032b8
`bunzip2 --version` exits with a non-zero status on latest build of
...
Alpine Linux
2021-09-08 19:48:41 -04:00
Scott Conway
bab4be2437
added dockerfile
2021-09-08 19:48:24 -04:00
AdamSBlack
c5aa180c9a
old changes + base for admin actions
2021-08-14 23:11:32 +01:00
Adam Black
72ca4b12cd
Merge branch 'florianbrede-ayet:main' into main
2021-07-27 22:11:41 +01:00
Florian Brede
8f15bf56ba
TODO: added drive preview with videojs
2021-06-10 01:17:37 +02:00
Florian Brede
de33ebf6d7
FIX: overwrite existing rlog files (in case the previous parsing failed, this would fail again because bunzip2 exits non 0 without "-f")
2021-06-08 13:02:23 +02:00
Florian Brede
ff96091cee
FIX: rewritten dashboard calls to return more plausible responses and show the username
2021-06-08 13:02:23 +02:00
Florian Brede
2e9ed8aa4c
Update README.md
2021-06-05 16:07:53 +02:00
Florian Brede
ebdaa2e738
FIX: another fix for the dashboard statistics (minutes)
2021-06-05 05:11:43 +02:00
Florian Brede
562d932827
FIX: fixes for dashboard statistics
2021-06-05 04:56:00 +02:00
Florian Brede
b14f7bc083
TODO: implemented api calls for the dashboard statistics, registration feedback, account status
2021-06-05 04:36:50 +02:00
Florian Brede
a3c6c1955f
FIX: added sqlite concurrency protections to prepare threaded execution of worker.js
2021-06-04 05:03:50 +02:00
Florian Brede
f6dfe782bf
TODO: added welcomeMessage to overview, added some statistics
2021-06-04 05:02:03 +02:00
Adam Black
5280f339f4
Merge branch 'florianbrede-ayet:main' into main
2021-05-31 19:03:34 +01:00
Florian Brede
9bd1259f66
FIX: fixed the gps distance validation (now assumes > 250km/h is corrupt), some cleanup / reduced logging
2021-05-30 03:56:48 +02:00
Florian Brede
dd2b7cae35
TODO: set maximum segments per batch to 15 (from initially 50) to reduce the per-batch duration for slower devices.
2021-05-30 03:20:34 +02:00
Florian Brede
cd133d5e9f
FIX: correctly check if metadata is defined
2021-05-30 03:19:12 +02:00
Florian Brede
7b6472dd20
DATABASE MIGRATION:
...
ALTER TABLE 'drives' ADD COLUMN 'metadata' TEXT;
-----
TO UPDATE EXISTING DRIVES:
UPDATE drive_segments SET upload_complete=0, is_processed=0 WHERE id IN (SELECT MIN(id) FROM "drive_segments" GROUP BY drive_identifier, dongle_id)
2021-05-30 03:08:02 +02:00
Florian Brede
61f2f8ecd5
TODO: added vehicle parameters & general device / openpilot / drive information
2021-05-30 03:06:27 +02:00
Florian Brede
094e9c2790
FIX:
...
- uploads and device registration for openpilot 0.7.x devices
- possible security exploit (directory not protected with token for boot/crash logs)
2021-05-30 03:04:50 +02:00
Florian Brede
08051fb86f
FIX: correctly parse dates and ignore exceptions for boot & crash logs
2021-05-30 01:11:59 +02:00
Florian Brede
065f05e6ea
FIX: worker missing crashlog path / unable to delete old logs.
2021-05-30 01:11:23 +02:00
Florian Brede
e83f2b2481
TODO: updated cabana to persist dbcs for routes and added an option to pass custom dbcs through the retropilot configuration
2021-05-30 01:10:07 +02:00
Adam Black
2ec6e7650f
Wrote test for /retropilot/0/useradmin
...
Converted a few more routes to return json
New config option: flag: { useUserAdminApi: BOOLEAN } this will load the userAdminApi routes into the express app.
2021-05-25 20:36:35 +01:00
Adam Black
6028036aa4
API to register users
...
Amended table: Accounts
* verified - int - default: 0
* email_verify_token - text
2021-05-23 19:36:16 +01:00
Adam Black
33b630e893
moving mail logic into controller
2021-05-23 15:40:55 +01:00
Adam Black
0ef1b2a940
Merge branch 'main' of https://github.com/florianbrede-ayet/retropilot-server into main
2021-05-23 14:33:22 +01:00
Florian Brede
6ebe94e8a5
FIX: removed discarded sendmail import
2021-05-23 03:11:27 +02:00
Florian Brede
7dffbaf270
FIX: missing import for execSync
2021-05-23 03:08:16 +02:00
Florian Brede
a933eadb6e
Update README.md
2021-05-23 02:34:33 +02:00
Florian Brede
d0c65b1259
TODO: directly bundled a compiled & fixed version of cabana in .../cabana/
2021-05-23 02:28:33 +02:00
Florian Brede
a5871a9783
TODO: replaced sendmail by nodemailer to allow using a proper & authenticated smtp endpoint.
2021-05-23 02:18:11 +02:00
Florian Brede
b9cf8e26d9
Merge pull request #3 from AdamSBlack/main
...
Continuation, routes now in /routes and /controllers more fleshed out + tests
2021-05-23 01:21:24 +02:00
Adam Black
7cc8eca375
Merge branch 'florianbrede-ayet:main' into main
2021-05-22 22:24:37 +01:00
Adam Black
44905c2c2c
cleaned up server.js requires, renabled console logs
2021-05-22 20:45:32 +01:00
Adam Black
24ffb60fe7
Update test name
2021-05-22 20:42:56 +01:00
Adam Black
d6cfb43532
clear down console logging, new test, silence sendmail
2021-05-22 20:36:44 +01:00
Adam Black
0d49d5ce6c
Added tests
2021-05-22 17:33:28 +01:00
Florian Brede
dbe5ac7cde
Update README.md
2021-05-22 04:22:33 +02:00
Florian Brede
1edbaf6395
FIX: the worker was regularly hanging because the "wasm-bz2" library comma uses does not correctly handle corrupt files (the stream stalls despite not having all bytes read). we now use the native bunzip2 which both gives better performance and reliable error handling
2021-05-22 03:44:03 +02:00
Adam Black
2f3c094ca3
__dirname > __basedir
2021-05-21 23:29:36 +01:00
Adam Black
68ed642fcc
removed import from worker.js, will switch everything over to import in future commit
2021-05-21 23:21:06 +01:00
Adam Black
47784d1d34
split api & useradmin into their own routes
2021-05-21 23:17:11 +01:00
Adam Black
64d942ddbb
Readded userping
2021-05-21 22:40:00 +01:00
Adam Black
ca745ca470
Removed functions from server.js and put them in their own controllers. Updated .gitignore to ignore dbs/configs/.idea files
2021-05-21 22:32:55 +01:00
Florian Brede
a5fbb94162
FIX: typo in jwt token validation
2021-05-21 17:41:38 +02:00
Florian Brede
972e6719e9
FIX: JWT validation can return null as well
2021-05-21 02:58:06 +02:00
Florian Brede
c507c6166a
Merge pull request #2 from AdamSBlack/main
...
Foundations to split DB bits into models, linted and cleaned up a few bits
2021-05-21 01:43:30 +02:00