From 92c58dce572c15611408b4ff594bf8d8f3875382 Mon Sep 17 00:00:00 2001 From: n Date: Fri, 4 Oct 2024 00:00:28 +0200 Subject: [PATCH 1/2] add markdownlint to CI --- .forgejo/workflows/lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 6c20a39..e55bca7 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -12,6 +12,11 @@ jobs: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v4 + - name: Lint Markdown files + uses: actions/markdownlint-cli2-action@v17 + with: + globs: | + **/*.md - name: Create Python virtualenv run: | mkdir -p .cache -- 2.40.1 From 994d3829f7bf24f47ef06ffa257c8a85fcaba5c8 Mon Sep 17 00:00:00 2001 From: n Date: Fri, 4 Oct 2024 00:03:01 +0200 Subject: [PATCH 2/2] markdownlint fixes --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9038e74..7084dee 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ # pacer2influxdb -export [Pacer](https://play.google.com/store/apps/details?id=cc.pacer.androidapp) data to [InfluxDB](https://www.influxdata.com/products/influxdb-overview/) +export [Pacer](https://play.google.com/store/apps/details?id=cc.pacer.androidapp) +data to [InfluxDB](https://www.influxdata.com/products/influxdb-overview/) - * requires Python 3, `influxdb-python` and `sqlite-python` - * original code from https://github.com/korjavin/sqlite2influxdb and https://github.com/influxdata/influxdb-python - * sqlite database is `/data/data/cc.pacer.androidapp/databases/MDData.db` on an Android device, may need root privileges to get it - * collects steps, distance, active time and calories - * for now InfluxDB database needs to be created first - * incremental feed: just insert missing points - * [Grafana](https://grafana.com/) dashboard export in json format is included, adjust datasource name +* requires Python 3, `influxdb-python` and `sqlite-python` +* original code from [https://github.com/korjavin/sqlite2influxdb](https://github.com/korjavin/sqlite2influxdb) +and [https://github.com/influxdata/influxdb-python](https://github.com/influxdata/influxdb-python) +* sqlite database is `/data/data/cc.pacer.androidapp/databases/MDData.db` on an +Android device, may need root privileges to get it +* collects steps, distance, active time and calories +* for now InfluxDB database needs to be created first +* incremental feed: just insert missing points +* [Grafana](https://grafana.com/) dashboard export in json format is included, +adjust datasource name -- 2.40.1