Giter VIP home page Giter VIP logo

iddatalogger's People

Contributors

lari avatar robske110 avatar thiasb avatar tmeidinger avatar typehausschmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iddatalogger's Issues

It seems VW changed the login protocol

Hi!

I think VW changed the login protocoll.
After sending the emailadress, there is no "Form" provided.
The response starts like:
`

<script type="text/javascript">(window.NREUM||(NREUM={})).init={privacy:{cookies_enabled:false},ajax:{deny_list:[]}};(window.NREUM||(NREUM={})).loader_config={xpid:"VgMDVl5RARACVlhSDwgFVA==",licenseKey:"NRJS-ecd5929e8859410bbd9",applicationID:"22908922"};window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var i=e[n]={exports:{}};t[n][0].call(i.exports,function(e){var i=t[n][1][e];return r(i||e)},i,i.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var i=0;i0&&(p-=1)}),s.on("internal-error",function(t){o("ierr",[t,c.now(),!0])})}},{}],3:[function(t,e,n){var r=t("loader");r.disa` I will try to findout how it wokrs now but I'am not a java guy. Burkhard

CUPRA (Born) API

Would it be possible to extend this tool with support for the CUPRA Born? An account for testing on real data would be available.

Could not load graphs and other data

Hi,

I used the docker installation method and data fetching mostly seems to work. But the website does not display much data.

image

iddatalogger_app | 10:05:59.112129 [INFO] Fetching car status...
iddatalogger_app | 10:05:59.438787 [NOTICE] Could not find expected key 'zoneRearLeftEnabled' in carStatusData. Unexpected changes in older or newer car software can cause this!
iddatalogger_app | 10:05:59.438814 [NOTICE] Could not find expected key 'zoneRearRightEnabled' in carStatusData. Unexpected changes in older or newer car software can cause this!
iddatalogger_app | 10:05:59.438832 [INFO] Writing new data for timestamp 2021-06-25T10:05:44
iddatalogger_web | [Fri Jun 25 10:06:55.140602 2021] [php:warn] [pid 17] [client 172.23.0.1:35642] PHP Warning:  include(/var/www/html/idView/ChartJS/Graph.php): Failed to open stream: No such file or directory in /var/www/html/idView/idView.php on line 10
iddatalogger_web | [Fri Jun 25 10:06:55.140633 2021] [php:warn] [pid 17] [client 172.23.0.1:35642] PHP Warning:  include(): Failed opening '/var/www/html/idView/ChartJS/Graph.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/idView/idView.php on line 10
iddatalogger_web | [Fri Jun 25 10:06:55.140662 2021] [php:error] [pid 17] [client 172.23.0.1:35642] PHP Fatal error:  Uncaught Error: Class "Graph" not found in /var/www/html/idView/idView.php:70\nStack trace:\n#0 {main}\n  thrown in /var/www/html/idView/idView.php on line 70
iddatalogger_web | 172.23.0.1 - - [25/Jun/2021:10:06:55 +0000] "GET /idView/idView.php HTTP/1.0" 500 2671 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"

Thanks
Alex

IDDataLogger stopped working after a power outage

Hi,
15 days ago I was charging my ID at home and a power outage happened. From that moment IDDataLogger do not receive updates from my ID anymore. On IDDataLogger seems it is still in charge from that moment whit the same battery percentage.

I tried to reboot the raspberry where is running IDDataLogger, I also updated IDDataLogger and the software of raspbian but the issue persists.

My ID is reachable from the ID Connect app and from other apps that uses the API so the issue is with IDDataLogger.

How can I fix it?

Best regards

error in mysql import script

Hi,

tomorrow morning I tried to test the install/config script. It runs through successfully, but after starting, I got some errors.

Why?
the script db_mysql.sql contains errors:
CREATE TABLE IF NOT EXISTS users (
userid serial NOT NULL PRIMARY KEY,
username text UNIQUE NOT NULL,
hash text NOT NULL
);

-> username with type text can't be unique!
Please use varchar(20) or varchar(40) as type

Regards
drego

Support for ID.4 in USA?

Should this work for ID.4 vehicles in the USA (or other non-EMEA locations)? I'm not having much luck getting authentication to work with my myVW/car-net account, but upon looking it seems this may only work with weConnect? Any clarification would be much appreciated!

Apache issues while using the install script

Hi, I'm quite new to Github, so apologies up front if this is not the way to address these issues.
I'm trying to install this IDDatyalogger on a fresh configured Pi 1 model B (with 8Gb SD-card).
While running the script I see some error-like messages (Bold and Italic parts are shown in red):

invoke-rc.d: initscript apache2, action "start" failed.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-04-15 21:55:14 CEST; 214ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 10851 ExecStart=/usr/sbin/apachectl start (code=exited, status=132)

Apr 15 21:55:14 raspberrypi systemd[1]: Starting The Apache HTTP Server...
Apr 15 21:55:14 raspberrypi apachectl[10851]: Illegal instruction
Apr 15 21:55:14 raspberrypi apachectl[10851]: Action 'start' failed.
Apr 15 21:55:14 raspberrypi apachectl[10851]: The Apache error log may have more information.
Apr 15 21:55:14 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=132/n/a
Apr 15 21:55:14 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 15 21:55:14 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.

Further on it says:

pg_ctlcluster 11 main start

Ver Cluster Port Status Owner Data directory Log file
11 main 5432 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log

There is no question for username and password and entering 'cd IDDataLogger && ./start.sh' as suggested in the last line gives an error.

I hope there is something I can do to resolve this. If I can help by testing updated versions please let me know.
This is the full output: pi.docx

RPI Zero W Illegal instruction

Hi!

I tried to install IDDataLogger on a fresh install on Raspberry Pi Zero W with Debian Lite but i get an error when I try to run this command:
You can now enter ./start.sh, which will start the ID DataLogger.

I get an Illegal instruction

pi@Raspi-Server:~/IDDataLogger $ ./start.sh
Illegal instruction

The same issue happens if I try manual steps:
We'll need to tell it the database details and our VW account login information. We'll change into the directory of the program by executing cd IDDataLogger and then run the config wizard with ./config-wizard.sh --allow-insecure-http

When I enter ./config-wizard.sh --allow-insecure-http I get the same error Illegal instruction

pi@Raspi-Server:~/IDDataLogger $ ./config-wizard.sh --allow-insecure-http
Illegal instruction

Changed table definitions prevent start

I just pulled the latest commit. On starting start.sh I get this error message:

[...] ON CONFLICT (pictureID) DO UPDATE SET carPicture = excluded.carPicture failed: SQLSTATE[42703]: Undefined column: 7 ERROR: column "pictureid" of relation "carpictures" does not exist LINE 1: INSERT INTO carPictures(
pictureID, carPicture) VALUES('defau... ^ [42703]" (EXCEPTION) in "/root/IDDataLogger/src/vwid/DatabaseConnection.php" at line 68

In my database the column has the name "id", not "pictureID".

MySkoda

Hi,

I've got IDDataLogger working with an ID.4. I'm trying now with a Skoda Enyaq but it doesn't work out of the box.

I suspect the problem being with weconnect references in LOGIN_BASE and in subsequent parsing:

LOGIN_BASE = "https://login.apps.emea.vwapps.io/authorize?nonce=asdfsadf3&redirect_uri=weconnect://authenticated"

When I use skodaid, myskoda, or skodaconnect in place of weconnect, the response I get is:

{"error":"invalid_request","error_description":"Mismatching redirection URI"}

The URLs below allow to login with the browser, but they don't provide the token, because that's not included in the response_type parameter we get from the server.

https://vwid.vwgroup.io/oidc/login-user?prompt=login&qualifier=vwid
https://skodaid.vwgroup.io/oidc/login-user?prompt=login&qualifier=skodaid

Any idea on what should we need to use as redirect_uri for Skoda?

Not authorized to execute API request

New Error for me

[CRITICAL] robske_110\vwid\api\exception\IDAuthorizationException: "Not authorized to execute API request 'https://www.volkswagen.de/app/authproxy/vw-de/tokens' (httpCode 401)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/API.php" at line 22

Did you have any ideas? Is the Api endpoint change or anything?
I didn't change anything since a few weeks. It was running until a few days.

Here is my log output from the docker container

[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: ID Data Logger
 This program allows you to log data about your Volkswagen ID vehicle. It includes a webpage for seeing current status and history graphs.
-----------------------------------------------------------
 Add-on version: 0.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.5  (aarch64 / odroid-c2)
 Home Assistant Core: 2021.10.3
 Home Assistant Supervisor: 2021.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:38:50] DEBUG: Requested API resource: http://supervisor/services/mysql
[17:38:50] DEBUG: Request method: GET
[17:38:50] DEBUG: Request data: {}
[17:38:50] DEBUG: API HTTP Response code: 200
[17:38:50] DEBUG: API Response: {"result": "ok", "data": {"host": "core-mariadb", "port": 3306, "username": "service", "password": "xxxx", "addon": "core_mariadb"}}
[17:38:51] INFO: No ID View is set, enter without Password
port 
[17:38:51] INFO: Port is set to 
Loading InteractiveWizard...
Loading ConfigWizard...
[17:38:52] INFO: write configfile
{
    "username": "[email protected]",
    "password": "xxxxx",
    "vin": null,
    "base-updaterate": 600,
    "increased-updaterate": 60,
    "db": {
        "host": "core-mariadb",
        "dbname": "iddatalogger",
        "user": "xxxx",
        "password": "xxxx",
        "driver": "mysql"
    },
    "carpic": {
        "viewDirection": "front",
        "angle": "right",
        "flip": true
    },
    "timezone": "Europe\/Berlin",
    "logging": {
        "debug-enable": false,
        "curl-verbose": false,
        "file-enable": false,
        "log-dir": null
    }
[17:38:52] INFO: Starting IDDataLogger...
}Loading Logger...
17:38:52.794162 [INFO] Starting ID DataLogger Version v0.0.6-InDev (e3800353a36c6fa7090eecb3b7fd9804dff1a886)...
Loading Main...
17:38:52.802164 [INFO] Reading config...
17:38:52.802683 [INFO] Connecting to db...
Loading DatabaseConnection...
Loading QueryCreationHelper...
Loading DBmigrator...
Loading CurlWrapper...
Loading API...
Loading CarPictureHandler...
17:38:52.885980 [INFO] Fetching carPicture (this will take a while...)
Loading WebsiteAPI...
Loading LoginInformation...
Loading HTTPUtils...
Loading Form...
Loading IDAPIException...
Loading IDAuthorizationException...
Loading ErrorUtils...
17:38:55.268032 [CRITICAL] robske_110\vwid\api\exception\IDAuthorizationException: "Not authorized to execute API request 'https://www.volkswagen.de/app/authproxy/vw-de/tokens' (httpCode 401)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/API.php" at line 22
17:38:55.268389 [WARNING] Failed to automatically fetch the carPicture! You can substitute data/carPic.png manually.
Loading CarStatusWrittenUpdateReceiver...
Loading ChargeSessionHandler...
17:38:55.289156 [INFO] Building past charge sessions from 2021-10-08 10:31:53...
Loading CarStatusFetcher...
17:38:55.293654 [INFO] Logging in...
Loading MobileAppAPI...
Loading IDLoginException...
17:38:56.614301 [CRITICAL] robske_110\vwid\api\exception\IDLoginException: "Unable to login. Check login information (password)! See FAQ if issue persists. (Could not find location header)" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/api/MobileAppAPI.php" at line 71
17:38:56.614572 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
17:38:56.614649 [INFO] Shutting down...
17:38:56.614695 [CRITICAL] Forcibly shutting down while starting!
[cmd] /bin/bash exited 0

Use of docker version

Hello,
I tried to use the docker version on windows with WSL2 or on rpi3 but I always have the same issue on the app container.
The app container never start with this message :
iddatalogger_app | /bin/sh: 1: /usr/src/IDDataLogger/docker/docker-start.sh: not found

the web and db are up but the db is not initialised so I cannot login in the web interface.

I just created a .env in the dockerfolder
[email protected] IDDATALOGGER_PASSWORD=xxx IDDATALOGGER_IDVIEW_USERNAME=yyy IDDATALOGGER_IDVIEW_PASSWORD=localpwd IDDATALOGGER_WEB_PORT=8081

I didn't change anything in the docker-compose.yml

After some tries, I also try to create a config/config.json but dont know what to setup.
I didn't find a way to access the app container in cli to see if all the files are copies but I have no error during the build :
=> [internal] load build definition from Dockerfile-app 0.1s => => transferring dockerfile: 558B 0.0s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/php:8.0-apache 0.0s => CACHED [1/3] FROM docker.io/library/php:8.0-apache 0.0s => [internal] load build context 0.1s => => transferring context: 5.04MB 0.1s => [2/3] RUN apt-get update && apt-get install -y libpng-dev zl 27.8s => [3/3] COPY . /usr/src/IDDataLogger 0.1s => exporting to image 0.3s => => exporting layers 0.2s => => writing image sha256:0553683978f7e1484b0c362ba157b85bde3ad37d267f7ac7b6c7366 0.0s => => naming to docker.io/library/docker_app

Any idea on the missing config for docker?

Suggestion: version information in Backend and Frontend

It would be helpful if the backend and frontend script would display the current version.

So one can know if there is a new release or if your update/restart was successful.

Backend script: when starting
Frontend: small, in a corner

file_get_contents_error

I got the following by loading the car picture:
...
29bd8fbf339a655ab463b7d09f3b4b39591ead80.png): Failed to open stream: operation failed in private/src/vwid/CarPictureHandler.php on line 47
PHP Warning: imagecreatefrompng(): "private/src/vwid/../../data/carPic.png" is not a valid PNG file in private/src/vwid/CarPictureHandler.php on line 49
Loading ErrorUtils...
06:54:41.543199 [CRITICAL] TypeError: "imagealphablending(): Argument #1 ($image) must be of type GdImage, bool given" (EXCEPTION) in "private/src/vwid/CarPictureHandler.php" at line 50
06:54:41.543357 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
06:54:41.543428 [INFO] Shutting down...
06:54:41.543487 [CRITICAL] Forcibly shutting down while starting!

reason:
certificate error

is it possible to fetch the error and skip the procedure, if an error occurs?

regards
dregs

Creating a new user at installation does not work

At installation answering Y when asked wether to create a new user for the web interface it does not prompt for either username nor for password.
The script responds with: Perfect! Server will not continue starting...

feature request: default value N for generate API Keys

I think it would be easier, if the following two questions will be answered by N with default

Do you want to generate an API key? (Y,N)
[Y]: N
We can now setup a user for the IDView (website with statistics about the car)
Do you want to create an user? (Y,N)
[Y]: N

Error - Division by zero

Hello, since my last charging i get following error.
The data logger has stopped working now with the following error.

07:36:20.530269 [INFO] Started charging at 2021-10-11 07:13:46
07:36:20.530580 [INFO] Unplugged car at 2021-10-11 07:14:32
07:36:20.530781 [INFO] Charge session:
range: start: 71km end: 83km
duration: 0h
SOC: start: 15% end: 15% target: 90%
chargeEnergy:0kWh cE_soc_calc0kWh
POWER: avg: 10kW min: 10kW max: 10kW
Loading ErrorUtils...
07:36:20.533215 [CRITICAL] DivisionByZeroError: "Division by zero" (EXCEPTION) in "/home/pi/IDDataLogger/src/vwid/chargesession/ChargeSession.php" at line 130
07:36:20.533599 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
07:36:20.533749 [INFO] Shutting down...
07:36:20.533857 [CRITICAL] Forcibly shutting down while starting!

Formatting of time

Hi,

in the iOS widget the time needs to be changed. Also some info of that is what would be helpful.

For me it shows:

10K (I suppose that is the charging speed?)
1:29.1290500000 (Formatting wrong; is the the remaining tim till fill charge?
007h (Formatting and also not sure what is shows; see screenshots, it shows 35h in one screenshot and two hours later it shows 007h)

Best regards

Simon

(BTW, great project, also managed to replace the default red icon with a custom one meanwhile)
IMG_8378b
IMG_8375

Unable to fetch carPic.png

First of all: Many thanks for this great tool !
Almost everything is working fine.
Only one issue left:
I can't get online pictures from my ID.3 (Pro) Business (model 2021)
When I access the "garage" at volkswagen.de, my car is added, but also there are no pictures.
I guess that is the main reason ?
But perhaps you can provide tips on how to get the pictures active ?
(When i put another picture as carPic.png, is displays in the logger and also in the iOS Widget)
screenshot_67

ABRP Integration

I've created a patch to integrate A Better Route Planner into your source. So I added an ABRP CarStatusUpdateReceiver that also receives the data you fetch, and then feeds it to ABRP via a get request. I've done my best to follow your method of working, adding a section to the readme, etc.

I hope you can consider applying the patch.
abrp.txt

IDDataLogger stopped working [Dec23]

the logger stopped working. Has the API changed? Here are my logs.

2023-12-19T09:49:18.012042+01:00 iddatalogger[1724736]: Loading Logger...
2023-12-19T09:49:18.022203+01:00 iddatalogger[1724736]: #033[97m09:49:18.220710 #033[0m#033[96m[INFO] Starting ID DataLogger Version v0.0.6-InDev (da5a8f8096dbca4994804911905b54e52ae407a1-dirty)...#033[0m
2023-12-19T09:49:18.022701+01:00 iddatalogger[1724736]: Loading Main...
2023-12-19T09:49:18.022786+01:00 iddatalogger[1724736]: #033[97m09:49:18.227500 #033[0m#033[96m[INFO] Reading config...#033[0m
2023-12-19T09:49:18.022919+01:00 iddatalogger[1724736]: #033[97m09:49:18.228570 #033[0m#033[96m[INFO] Connecting to db...#033[0m
2023-12-19T09:49:18.023143+01:00 iddatalogger[1724736]: Loading DatabaseConnection...
2023-12-19T09:49:18.033008+01:00 iddatalogger[1724736]: Loading QueryCreationHelper...
2023-12-19T09:49:18.035961+01:00 iddatalogger[1724736]: Loading DBmigrator...
2023-12-19T09:49:18.037181+01:00 iddatalogger[1724736]: Loading CurlWrapper...
2023-12-19T09:49:18.037235+01:00 iddatalogger[1724736]: Loading API...
2023-12-19T09:49:18.037517+01:00 iddatalogger[1724736]: Loading CarPictureHandler...
2023-12-19T09:49:18.068780+01:00 iddatalogger[1724736]: Loading CarStatusWrittenUpdateReceiver...
2023-12-19T09:49:18.068879+01:00 iddatalogger[1724736]: Loading ChargeSessionHandler...
2023-12-19T09:49:18.070317+01:00 iddatalogger[1724736]: #033[97m09:49:18.702490 #033[0m#033[96m[INFO] Building past charge sessions from 2023-12-13 12:08:30...#033[0m
2023-12-19T09:49:18.071787+01:00 iddatalogger[1724736]: Loading CarStatusFetcher...
2023-12-19T09:49:18.071824+01:00 iddatalogger[1724736]: #033[97m09:49:18.717670 #033[0m#033[96m[INFO] Logging in...#033[0m
2023-12-19T09:49:18.071859+01:00 iddatalogger[1724736]: Loading LoginInformation...
2023-12-19T09:49:18.072715+01:00 iddatalogger[1724736]: Loading MobileAppAPI...
2023-12-19T09:49:18.072745+01:00 iddatalogger[1724736]: Loading HTTPUtils...
2023-12-19T09:49:18.298151+01:00 iddatalogger[1724736]: Loading Form...
2023-12-19T09:49:18.862969+01:00 iddatalogger[1724736]: Loading CurlError...
2023-12-19T09:49:18.887147+01:00 systemd[1]: Stopping iddatalogger.service - ID DataLogger php backend...
2023-12-19T09:49:19.431921+01:00 iddatalogger[1724736]: Loading CarStatusUpdateReceiver...
2023-12-19T09:49:19.431983+01:00 iddatalogger[1724736]: Loading CarStatusWriter...
2023-12-19T09:49:19.432002+01:00 iddatalogger[1724736]: #033[97m09:49:19.431514 #033[0m#033[96m[INFO] Done. Startup took 1.4226930141449s#033[0m
2023-12-19T09:49:19.432049+01:00 iddatalogger[1724736]: #033[97m09:49:19.431550 #033[0m#033[96m[INFO] Ready!#033[0m
2023-12-19T09:49:19.432065+01:00 iddatalogger[1724736]: #033[97m09:49:19.431567 #033[0m#033[96m[INFO] Fetching car status...#033[0m
2023-12-19T09:49:19.458124+01:00 iddatalogger[1724736]: #033[97m09:49:19.457928 #033[0m#033[93m[NOTICE] Could not find expected key 'batteryStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458271+01:00 iddatalogger[1724736]: #033[97m09:49:19.458040 #033[0m#033[93m[NOTICE] Could not find expected key 'chargingStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458303+01:00 iddatalogger[1724736]: #033[97m09:49:19.458054 #033[0m#033[93m[NOTICE] Could not find expected key 'chargingSettingsTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458337+01:00 iddatalogger[1724736]: #033[97m09:49:19.458067 #033[0m#033[93m[NOTICE] Could not find expected key 'plugStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458387+01:00 iddatalogger[1724736]: #033[97m09:49:19.458078 #033[0m#033[93m[NOTICE] Could not find expected key 'climatisationStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458427+01:00 iddatalogger[1724736]: #033[97m09:49:19.458089 #033[0m#033[93m[NOTICE] Could not find expected key 'climatisationSettingsTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458459+01:00 iddatalogger[1724736]: #033[97m09:49:19.458101 #033[0m#033[93m[NOTICE] Could not find expected key 'windowHeatingStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.458816+01:00 iddatalogger[1724736]: PHP Warning:  Undefined array key "chargeState" in /home/thias/IDDataLogger/src/vwid/CarStatusFetcher.php on line 95
2023-12-19T09:49:19.458872+01:00 iddatalogger[1724736]: PHP Warning:  Undefined array key "chargeState" in /home/thias/IDDataLogger/src/vwid/CarStatusFetcher.php on line 96
2023-12-19T09:49:19.459134+01:00 iddatalogger[1724736]: #033[97m09:49:19.459077 #033[0m#033[93m[NOTICE] Could not find expected key 'batteryStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.459461+01:00 iddatalogger[1724736]: #033[97m09:49:19.459213 #033[0m#033[93m[NOTICE] Could not find expected key 'chargingStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.459548+01:00 iddatalogger[1724736]: #033[97m09:49:19.459352 #033[0m#033[93m[NOTICE] Could not find expected key 'chargingSettingsTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.459683+01:00 iddatalogger[1724736]: #033[97m09:49:19.459367 #033[0m#033[93m[NOTICE] Could not find expected key 'plugStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.459753+01:00 iddatalogger[1724736]: #033[97m09:49:19.459379 #033[0m#033[93m[NOTICE] Could not find expected key 'climatisationStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.459787+01:00 iddatalogger[1724736]: #033[97m09:49:19.459390 #033[0m#033[93m[NOTICE] Could not find expected key 'climatisationSettingsTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.460072+01:00 iddatalogger[1724736]: #033[97m09:49:19.459968 #033[0m#033[93m[NOTICE] Could not find expected key 'windowHeatingStatusTimestamp' in carStatusData. Unexpected changes in older or newer car software can cause this!#033[0m
2023-12-19T09:49:19.460794+01:00 iddatalogger[1724736]: Loading ErrorUtils...
2023-12-19T09:49:19.461160+01:00 iddatalogger[1724736]: #033[97m09:49:19.461089 #033[0m#033[31m[CRITICAL] RuntimeException: "Data does not contain any timestamps, unable to write to db!" (EXCEPTION) in "/home/thias/IDDataLogger/src/vwid/CarStatusWriter.php" at line 104#033[0m
2023-12-19T09:49:19.461213+01:00 iddatalogger[1724736]: #033[97m09:49:19.461178 #033[0m#033[96m[INFO] Shutting down...#033[0m

Error at 'Finishing set up' during manual installation

Just got my new RPi4 and I'm now going through the manual installation. Most of it works well and now I'm at:

Finishing set up

Make sure to be in the IDDataLogger directory. If you installed using the install script you will need to enter cd ./IDDataLogger. If you come from the manual installation you should already be at the correct location.

You can now enter ./start.sh, which will start the ID DataLogger. It will now ask you if you want to generate an API key. If you want to use the iOS widget you will need to answer with Y. For more information on setting up the iOS widget using the API key see Setting up the iOS Widget. After that it will ask you if you want to create an user. This user is used to log into the website. Make sure to choose a strong and long password. It is recommended to store this in a password manager. Note that you can create additional API keys or add additional users at any time using ./start.sh --wizard.

After creating the API key and the user you should see Done. Ready! Fetching car status... and Writing new data for timestamp.

At this last point I get error messages. The terminal shows at the point of entering the username and password:

Enter the username for the new user: A_USERNAME
Now enter the password for the new user: A_PASSWORD
Loading QueryCreationHelper...
Successfully created the user! Please remember the username and password!
Perfect! Server will now continue starting...
Loading CurlWrapper...
Loading API...
Loading CarPictureHandler...
21:31:01.275602 [INFO] Fetching carPicture (this will take a while...)
Loading WebsiteAPI...
Loading LoginInformation...
Loading HTTPUtils...
Loading Form...
Loading ErrorUtils...
21:31:02.941800 [CRITICAL] TypeError: "robske_110\webutils\Form::__construct(): Argument #1 ($ele) must be of type DOMElement, null given, called in /home/pi/IDDataLogger/src/vwid/api/WebsiteAPI.php on line 44" (EXCEPTION) in "/home/pi/IDDataLogger/src/webutils/Form.php" at line 11
21:31:02.946350 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
21:31:02.948480 [INFO] Shutting down...
21:31:02.950400 [CRITICAL] Forcibly shutting down while starting!
pi@raspberrypi:~/IDDataLogger $

Any clue what goes wrong?
Thanks again.

Docker how to on raspberry buster

Hi!

I have problems running the IDDataLogger directly on my pi (login stuck without any message). So I'm trying the docker version.
In your manual: After creating the .env file the last command to execute is "docker compose up".
I dont know how it works on other systems, on my raspberry it hast to be "docker-compose up".
I never used docker and it took a while to find this out.
Finaly I got following errors:
W: GPG error: http://security.debian.org/debian-security bullseye-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.debian.org/debian-security bullseye-security InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian bullseye InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian bullseye InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian bullseye-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian bullseye-updates InRelease' is not signed.

I am running buster on my pi.
Best regards,
Burkhard

Get issus with Docker and Mysql (MariaDB 10.5)

HI

Have setup docker env. when I try to start iddatalogger_app - it crashing and restartes again and again.

From the logges I get this :

2021-08-05 17:42:00 stdout �[97m17:42:00.404992 �[0m�[31m[CRITICAL] RuntimeException: "Failed to connect to db (check db connection params): could not find driver [0]" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/db/DatabaseConnection.php" at line 77�[0m
2021-08-05 17:42:00 stdout Loading ErrorUtils...
2021-08-05 17:42:00 stdout NULL
2021-08-05 17:42:00 stdout �[97m17:42:00.404364 �[0m[DEBUG] errorInfo:�[0m
2021-08-05 17:42:00 stdout Loading DatabaseConnection...
2021-08-05 17:42:00 stdout �[97m17:42:00.404020 �[0m�[96m[INFO] Connecting to db...�[0m
2021-08-05 17:42:00 stdout �[97m17:42:00.403917 �[0m�[96m[INFO] Reading config...�[0m
2021-08-05 17:42:00 stdout Loading Main...
2021-08-05 17:42:00 stdout �[97m17:42:00.403256 �[0m�[96m[INFO] Starting ID DataLogger Version v0.0.6-InDev...�[0m

i'm using: DB_DRIVER=mysql and host= 192.168.1.238:3307.

Any suggestions on what can be wrong?

thanks

/Per

ID Software 3.0 feature support

Hi,
will this project ever get support for the upcoming features of ID Software 3.0+. I'd love to see parking location, total distance driven, driving sessions and car lock status integrated - at least to have it stored it in the database.
Best,
M.

Crash when processing charge session with 0% start-SOC

Hello,

after I had a charge session that started at 0% SOC, the docker container "app" is stuck in a crash-restart-loop. Problem seems to be a div-by-0 in some debug-output in ChargeSession.php. Error-log is attached below.
After I commented out the line in my local copy of the current version, everything seems to work again.

Best regards,
Tobias

iddatalogger_app | 09:42:58.704851 [INFO] Charge session:
iddatalogger_app | range: start: 0km end: 379km
iddatalogger_app | duration: 5.8h
iddatalogger_app | SOC: start: 0% end: 100% target: 80%
iddatalogger_app | chargeEnergy:57.76kWh cE_soc_calc58kWh
iddatalogger_app | POWER: avg: 10kW min: 10kW max: 10.5kW
iddatalogger_app | Loading ErrorUtils...
iddatalogger_app | 09:42:58.705529 [CRITICAL] DivisionByZeroError: "Division by zero" (EXCEPTION) in "/usr/src/IDDataLogger/src/vwid/chargesession/ChargeSession.php" at line 137
iddatalogger_app | 09:42:58.705631 [EMERGENCY] CRASHED WHILE STARTING; TRYING TO SHUTDOWN SAFELY
iddatalogger_app | 09:42:58.705657 [INFO] Shutting down...
iddatalogger_app | 09:42:58.705672 [CRITICAL] Forcibly shutting down while starting!

MySql scheme incorrect.

Hi,

You can't make a text field Unique (= key) without giving the key length. (authKey)

12:18:32.443773 [CRITICAL] PDOException: "SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'authKey' used in key specification without a key length" (42000) in "[snip]Main.php" at line 82

And the service file could possible not only sheck for postgress but alternatively for mysql.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.