chargingtool

Version, currently master branch1 version
  • master branchlatestSep 10, 2026

github.com/lrutten/chargingtool

CLI tool for build a charging station website

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  chargingtool:
    github: lrutten/chargingtool
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.21.0
License
MIT
Author
lrutten
Target
  • chargingtool from src/chargingtool.cr

Dependencies

Runtime Dependencies

README

chargingtool

Tool to show charging stations in a web app.

Dependencies

  • mkdocs
  • osmium
  • Crystal language tools

Getting started

Compilation

The compilation is easy:

make build

Run a demo

These are the steps to test the tool.

  • Download some *.pbf files
download-pbf.sh
  • Filter on Ionity charging stations
filter-ionity.sh

This results in a number of .xml files which can be inspected.

The next step is building the website.

mkdir test
cd test
chargingtool --init

This is the result:

.
├── project.yml
├── site
│   ├── Makefile
│   ├── docs
│   │   └── index.md
│   ├── mkdocs.yml
│   └── overrides
│       └── main.html
└── src

Move the .xml files to the src map.

Now convert the .xml into .md which end up in the site/docs map. Each country gets its own directory. The overrides/main.html file has extra Leaflet code in order to show the map with red bullets for each charging station.

Now run the site:

cd site
make run