Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robske110/iddatalogger
A DataLogger for Volkwagen ID vehicles. Includes an iOS Widget. Works with VW ID.3 and ID.4 vehicles.
https://github.com/robske110/iddatalogger
datalogger electric-vehicles ios-widget volkswagen volkswagen-weconnect
Last synced: about 2 months ago
JSON representation
A DataLogger for Volkwagen ID vehicles. Includes an iOS Widget. Works with VW ID.3 and ID.4 vehicles.
- Host: GitHub
- URL: https://github.com/robske110/iddatalogger
- Owner: robske110
- License: gpl-3.0
- Created: 2021-02-24T19:22:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T17:34:33.000Z (11 months ago)
- Last Synced: 2024-10-10T23:25:01.201Z (2 months ago)
- Topics: datalogger, electric-vehicles, ios-widget, volkswagen, volkswagen-weconnect
- Language: PHP
- Homepage:
- Size: 2.98 MB
- Stars: 90
- Watchers: 19
- Forks: 13
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IDDataLogger
Welcome to IDDataLogger, a data logger for Volkswagen ID vehicles.
Features include:
- A website displaying current status, history graphs and previous charging sessions.
- An [iOS widget](https://github.com/robske110/IDDataLogger/blob/master/docs/ioswidget.md) (using Scriptable)
- [A Better Route Planner live data integration](https://github.com/robske110/IDDataLogger/wiki/ABRP-integration)
- An easy-to-use API for integration with other systems. If you are interested see [here](https://github.com/robske110/IDDataLogger/wiki/API-reference).
## Setup
### Setup for beginners
You have never set up something similar? Don't worry, the [beginners guide](docs/beginnerguide.md) guides you through every step you need to take.
Common problems and answers to frequently asked questions can be found [here](https://github.com/robske110/IDDataLogger/wiki/FAQ-and-frequent-problems).
Should you have any remaining questions or issues please see [getting help](https://github.com/robske110/IDDataLogger/wiki/Getting-help).### Setup for advanced users
You can install this software using docker with the instructions [here](docs/docker.md).
Alternatively continue with the instructions below for installing on a system directly:#### Prerequisites
- PHP 8 cli with pdo-pgsql (or pdo-mysql), curl, gd, pcntl and dom
- A webserver serving .php files (PHP 8 with pdo-pgsql (or pdo-mysql))
- (strongly recommended) HTTPS enabled server with certificate
- A PostgreSQL server (Any version from 9 and up should work, although testing has only been done on 11 and up)
- alternatively MySQL / MariaDB is supported, but PostgreSQL is recommended.#### Overview of the setup process
Looking at the automated install script for debian [install.sh](docs/install.sh) alongside the following instructions
might be helpful. (Instructions for using it can be found [here](docs/beginnerguide.md#installing-using-the-install-script))Clone this repository.
`git clone https://github.com/robske110/IDDataLogger.git --recursive`
Create a database (and a user) in your PostgreSQL (or other) server for this project and fill in the details into
`config/config.example.json` and `.env.example.` We'll need these files later.
You can do this using the config setup wizard by running the `config-wizard.sh` script, or manually.
Note: for a detailed description of the possible config values visit [config.md](docs/config.md).After creating the config.json from config.example.json run `./start.sh`.
The necessary tables in the database will be automatically created.
After a successful connection to the db, the setup wizard will help you create an API key for the widget and a user for
the website. You can create additional API keys or add additional users at any time using `./start.sh --wizard`.All files in the `public` directory of this repository must now be placed somewhere in the webroot.
It is recommended to place them in the second level (not directly in webroot).Then copy the `.env` file (created from `.env.example`) outside the webroot with the db credentials set in it.
Note:
`env.php` looks for a `.env` file two folders up from its location.
(If you put the contents of the public folder in `/path/to/webroot/vwid/` it will look in `/path/to/.env`)
If you place the files deeper inside the webroot, please consider editing env.php and configuring the correct path in
the first line. It is strongly recommended keeping the .env file out of the webroot.You can alternatively set the environment variables through your webserver. (Or anything else that populates php's `$_ENV`)
You now need to set up your system to automatically start `start.sh` on system start. Using systemd is recommended.
You can now visit idView.php or use the iOS widget after [setting it up](docs/ioswidget.md)!
#### Updating
To update the software at a later data execute `git pull && git submodule update` in the repository directory and
replace the files in the webroot with the new contents of the `public` folder. Make sure to restart the php process.
(The one started by `start.sh`)## Contributing
Contributions are always welcome! You can help to improve the documentation, fix bugs in the code or add new features.
Improving the beginners guide and documentation are currently something I would love to have help with.
Feel free to open a PR!### A big 'Thank you!' to the following contributors
- @drego83 - Invaluable help with general testing and MySQL support
## Disclaimer
This project is not endorsed by Volkswagen in any way, shape or form. This project is to be used entirely at your own risk.
All brands and trademarks belong to their respective owners.Copyright (C) 2021 robske_110
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.