Commit Graph
943 Commits
Author SHA1 Message Date
Adrian Kumpf be751ee804 1.19.3 v1.19.3 2020-05-03 13:37:49 +02:00
Dulanic fdc6543e3d Correct gap in efficency.json for mi only. (#672)
* Update efficiency.json

Updated distance to convert_km(distance, '$length_unit') to correct gap in original SQL which wasnt converting the distance and only the min distance.

* Update efficiency.json

Removed convert from filter
2020-05-03 12:36:09 +02:00
Adrian Kumpf b6f061536a Drop unused indexes
Addresses #669
2020-05-02 16:08:37 +02:00
Adrian Kumpf 390e362a09 Update CHANGELOG 2020-05-02 14:12:11 +02:00
Adrian Kumpf aadfd916d0 Explicitly match on expected states 2020-05-02 13:53:49 +02:00
Adrian Kumpf 7389836c32 Update js dependencies 2020-05-02 13:42:37 +02:00
Adrian Kumpf f29cdc0766 Update issue templates 2020-05-02 13:42:37 +02:00
Adrian Kumpf dec2c1e88b Pre-install Grafana plugins 2020-05-02 13:42:37 +02:00
dependabot-preview[bot] d5fa0ef52a Bump phoenix_html from 2.14.1 to 2.14.2
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/phoenixframework/phoenix_html/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v2.14.1...v2.14.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-02 11:35:01 +00:00
DulanicandAdrian Kumpf 1e34b9e92d Updated charging stats to show charging map (#666)
* Update charging-stats.json

Address https://github.com/adriankumpf/teslamate/issues/476 by adding world map of charges. Will need to add world map plugin also, addressing in different change.

* Update Dockerfile

Add worldmap panel plugin for update to dashboard.

* Update charging-stats.json

Updated initial zoom to a lower level zoom to get more local snapshots around main areas.

* Update charging-stats.json

update default zoom

* Update charging-stats.json

Enabled mouse wheel scroll due to default zoom being further out.

* Update Dockerfile

Replaced worldmappanel /w panodata modified world map panel.

* Update charging-stats.json

Changed to use panodata world map as will default zoom to data set. Updated query to build off kwh added vs # of charges and adjusted pct to be pct of max kwh vs % of total.

* Update charging-stats.json

Adjusted alignment

* Update installation guide with grafana-worldmap-panel

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-05-02 13:11:35 +02:00
dyxyl 2765ae81f3 Add option HTTP_BINDING_ADDRESS to control the bound IP address (#665)
* Add option HTTP_BINDING_ADDRESS to control the IP address where the web interface is exposed.

* Fix doc typo.

* Keep mix format quiet with some empty lines.
2020-05-02 12:34:52 +02:00
Dulanic b52e9c61fc Add column header for reduced range (#662)
Addresses https://github.com/adriankumpf/teslamate/issues/636
2020-05-02 12:15:59 +02:00
DONGBUM, KIM d3e3121b52 Korean translation improvement (#663)
* File add (From EN translation)

* Add translation

* Add translation

* Add error msg translation

* Add error translation

* Update default.po

* Korean translation improvement

* Add translation
2020-05-02 12:15:15 +02:00
Adrian Kumpf ebb423060b Improve error message for an invalid tokens table
Fixes #657
2020-04-29 01:00:01 +02:00
dependabot-preview[bot] a1a617cd74 Bump ecto_sql from 3.4.2 to 3.4.3
Bumps [ecto_sql](https://github.com/elixir-ecto/ecto_sql) from 3.4.2 to 3.4.3.
- [Release notes](https://github.com/elixir-ecto/ecto_sql/releases)
- [Changelog](https://github.com/elixir-ecto/ecto_sql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-ecto/ecto_sql/compare/v3.4.2...v3.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 07:13:48 +00:00
Adrian Kumpf 190dde7928 Fix firmware version comparison
Addresses #648
2020-04-27 14:57:12 +02:00
Adrian Kumpf 7878f2d4d6 Bump docusaurus to v2.0.0-alpha.51 2020-04-27 14:09:48 +02:00
Adrian Kumpf ed01c579a1 Test coverage after success
… so that coveralls failures don't fail the build.
2020-04-27 14:01:54 +02:00
occultsound 4b5ca4b977 Improve Chinese (Traditional) translation accuracy (#650)
* Update default.po

* Update default.po
2020-04-27 13:59:43 +02:00
edward4hglandAdrian Kumpf 04251b9b23 Improve Chinese (Simplified) translation accuracy (#649)
* Add Chinese(Simplified) translation

* Use locale "zh_Hans"

* Improve translation accuracy

Improve translation accuracy

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-27 13:59:09 +02:00
wooter c3db02ecbb Charging indicator tweak (#651)
Charging piechart indicator: yellow from 81%, red from 91%.
2020-04-27 13:58:20 +02:00
Adrian Kumpf 28e43424de Tweak Dockerfile 2020-04-26 13:16:12 +02:00
Adrian Kumpf a49c50fbbb 1.19.2 v1.19.2 2020-04-26 10:00:44 +02:00
Adrian Kumpf f234283baf Update docs 2020-04-26 10:00:44 +02:00
Adrian Kumpf 4dbaa1e096 Fix capitalization 2020-04-25 23:28:21 +02:00
Adrian Kumpf d2cfa6f769 Sort languages properly 2020-04-25 23:16:04 +02:00
wooter b39a7e6d15 Add Dutch translation (#647) 2020-04-25 23:10:46 +02:00
Dulanic d6eaa6d4f5 Correction for recent case statement (#646)
Corrected division for gwh in newly added case statement.
2020-04-25 23:06:55 +02:00
Adrian Kumpf 6dc03fdb21 Update traefik docs 2020-04-25 22:23:23 +02:00
Adrian Kumpf 2d08545396 Do not publish unknown values
Addresses #639
2020-04-25 12:50:45 +02:00
Adrian Kumpf 00d704a42a Bump Grafana to 6.7.3 2020-04-25 12:49:16 +02:00
Dulanic d364783305 Update charging-stats.json (#642)
* Update charging-stats.json

Updated to address https://github.com/adriankumpf/teslamate/issues/528#

Added case statement to adjust to show kWh at non decimal level and MWh at the 3 decimal point level. Cannot address directly within grafana so used case statement. Removed grafana sorting so can be sorted properly in SQL since not a direct # now for grafana to sort.

* Update charging-stats.json

Fixed mWh to MWh

Fixes #528
2020-04-25 12:47:58 +02:00
Tobias LindbergandAdrian Kumpf 2735dc94b9 Fix French translation (#638)
Fixes #635 

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-25 12:40:20 +02:00
Adrian Kumpf b670d2a472 Display the number of and median time between updates
Closes #617
2020-04-23 13:47:38 +02:00
Dulanic eae5104a5c Update updates.json (#632)
* Update updates.json

Added duration and time since last update as requested in adriankumpf#617

* Update updates.json

Corrected space
2020-04-23 13:18:18 +02:00
Adrian Kumpf d0ebf310ac Consolidate Travis environments 2020-04-23 13:00:39 +02:00
Adrian Kumpf 155a135d51 Upgrade to phoenix 1.5 2020-04-23 12:51:15 +02:00
occultsoundandAdrian Kumpf 0f228677ba Add Chinese (Traditional) translation (#633)
* Create default.po

* Create errors.po

* Update errors.po

* Update errors.po

* Update errors.po

* Update errors.po

* Use locale "zh_Hant"

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-23 12:32:49 +02:00
edward4hglandAdrian Kumpf ce3464759e Add Chinese(Simplified) translation (#625)
* Add Chinese(Simplified) translation

* Use locale "zh_Hans"

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-23 11:54:35 +02:00
Adrian Kumpf 42f7b60d3a 1.19.1 v1.19.1 2020-04-20 15:15:35 +02:00
DONGBUM, KIM f2b74a8f78 Add Korean translation (#614)
* File add (From EN translation)

* Add translation

* Add translation

* Add error msg translation

* Add error translation
2020-04-20 15:10:47 +02:00
Tobias LindbergandAdrian Kumpf e1609d5423 Fixing a few things in the docs.. (#611)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish

* fix #524 of adriankumpf/teslamate

* adding translation for geo-fence in swedish

* fixing translation of charge limit in swedish

* fixiing translation of mileage in swedish

* Fix typos

* adding swedish translations

* adjustment of swedish translation suggested by Thomas Hennig

* MQTT_HOST default should be 127.0.0.1 for screen, as in systemd

* adding drop_cap to traefik example, which all other guides have

* removing quotation marks around ports for portainer

* adjusting volumes for portainer to match other guides

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-04-20 15:03:55 +02:00
Adrian Kumpf b761b4f0c8 Fix disappearing map tiles 2020-04-20 15:01:00 +02:00
dependabot-preview[bot] f24e0acc7a Bump phoenix_live_view from 0.12.0 to 0.12.1
Bumps [phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/phoenixframework/phoenix_live_view/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_live_view/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_view/compare/v0.12.0...v0.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 12:55:31 +00:00
Adrian Kumpf fe93023612 1.19.0 v1.19.0 2020-04-19 19:06:43 +02:00
Adrian Kumpf 8fa6a9a719 Update CHANGELOG 2020-04-19 15:20:23 +02:00
Adrian Kumpf 5fdf76cee2 Update package-lock.json 2020-04-19 15:20:23 +02:00
Adrian Kumpf 4804aeb767 Reduce the amount of data sent to the client when driving 2020-04-19 15:20:23 +02:00
Dirkjan Bussink d6d662b304 Add Python to build phase. (#607)
Without adding Python, it's showing a big warning message when running
`node-gyp`:

```
> fsevents@1.2.12 install /opt/app/assets/node_modules/watchpack/node_modules/fsevents
> node-gyp rebuild

gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
gyp ERR! stack     at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
gyp ERR! stack     at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
gyp ERR! stack     at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
gyp ERR! stack     at exithandler (child_process.js:302:5)
gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:314:5)
gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
gyp ERR! stack     at onErrorNT (internal/child_process.js:456:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:81:21)
gyp ERR! System Linux 4.19.76-linuxkit
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/app/assets/node_modules/watchpack/node_modules/fsevents
gyp ERR! node -v v12.15.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
```

Adding python to the build container fixes this error.
2020-04-19 15:11:05 +02:00
Dirkjan Bussink 7dd65edf67 Add tini to Dockerfile and use it as entrypoint (#606)
This change adds [tini](https://github.com/krallin/tini) as the init
process for the Teslamate Docker container. The reason for this is that
currently the container runs with zombie processes.

This means the current process with PID=1 in the container doesn't reap
children properly and given the output I get while fixing this, child
processes are dying accidentally.

There's also an option to work around this with docker-compose since
compose file version 3.7, which allows passing `--init` for the docker
container. I'm currently using that to work around the zombie processes,
but adding tini fixes this independent of how people run this container.
2020-04-19 14:59:57 +02:00