Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Test and Release

# Run this job on all pushes and pull requests
# as well as tags with a semantic version
on:
push:
branches:
- "main"
tags:
# normal versions
- "v[0-9]+.[0-9]+.[0-9]+"
# pre-releases
- "v[0-9]+.[0-9]+.[0-9]+-**"
pull_request: {}

# Cancel previous PR/branch runs when a new commit is pushed
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
# Performs quick checks before the expensive test runs
check-and-lint:
if: contains(github.event.head_commit.message, '[skip ci]') == false

runs-on: ubuntu-latest

steps:
- uses: ioBroker/testing-action-check@v1
with:
node-version: "22.x"
type-checking: true
lint: true

# Runs adapter tests on all supported node versions and OSes
adapter-tests:
needs: [check-and-lint]
if: contains(github.event.head_commit.message, '[skip ci]') == false

runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ["22.x", "24.x"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: ioBroker/testing-action-adapter@v1
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
build: true

# Deploys the final package to npm on tag push
deploy:
needs: [check-and-lint, adapter-tests]

# Trigger this step only when a commit on any branch is tagged with a version number
if: |
contains(github.event.head_commit.message, '[skip ci]') == false &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')

runs-on: ubuntu-latest

# Write permissions are required to publish via npm trusted publishing and create Github releases
permissions:
id-token: write
contents: write

steps:
- uses: ioBroker/testing-action-deploy@v1
with:
node-version: "24.x"
build: true
github-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error"
},
"rules": {},
"env": {
"builtin": true
},
"ignorePatterns": ["build/**"]
}
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![NPM version](https://img.shields.io/npm/v/iobroker.teslemetry.svg)](https://www.npmjs.com/package/iobroker.teslemetry)
[![Downloads](https://img.shields.io/npm/dm/iobroker.teslemetry.svg)](https://www.npmjs.com/package/iobroker.teslemetry)
[![License](https://img.shields.io/npm/l/iobroker.teslemetry.svg)](https://github.com/Teslemetry/typescript-teslemetry/blob/main/LICENSE)
[![License](https://img.shields.io/npm/l/iobroker.teslemetry.svg)](https://github.com/Teslemetry/ioBroker.teslemetry/blob/main/LICENSE)

ioBroker adapter for controlling Tesla vehicles and energy sites via the Teslemetry API.

Expand Down Expand Up @@ -316,26 +316,23 @@ A: Streaming provides real-time updates as they happen. Polling checks for updat

## Support

- **Issues**: [GitHub Issues](https://github.com/Teslemetry/typescript-teslemetry/issues)
- **Issues**: [GitHub Issues](https://github.com/Teslemetry/ioBroker.teslemetry/issues)
- **Documentation**: [Teslemetry API Docs](https://teslemetry.com/docs)
- **Forum**: [ioBroker Forum](https://forum.iobroker.net)

## Development

This adapter is part of the [Teslemetry TypeScript monorepo](https://github.com/Teslemetry/typescript-teslemetry).

### Building

```bash
cd packages/iobroker.teslemetry
pnpm install
pnpm build
npm install
npm run build
```

### Testing

```bash
pnpm test
npm test
```

## Changelog
Expand Down
25 changes: 8 additions & 17 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@
"uk": "Оновлення залежностей",
"zh-cn": "依赖更新"
},
"0.2.4": {
"en": "Dependency updates",
"de": "Abhängigkeiten aktualisiert",
"ru": "Обновления зависимостей",
"pt": "Atualizações de dependências",
"nl": "Afhankelijkheden bijgewerkt",
"fr": "Mises à jour des dépendances",
"it": "Aggiornamenti delle dipendenze",
"es": "Actualizaciones de dependencias",
"pl": "Aktualizacje zależności",
"uk": "Оновлення залежностей",
"zh-cn": "依赖更新"
},
"0.2.3": {
"en": "Dependency updates",
"de": "Abhängigkeiten aktualisiert",
Expand Down Expand Up @@ -135,8 +122,8 @@
"platform": "Javascript/Node.js",
"icon": "teslemetry.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/Teslemetry/typescript-teslemetry/main/packages/iobroker.teslemetry/admin/teslemetry.png",
"readme": "https://github.com/Teslemetry/typescript-teslemetry/blob/main/packages/iobroker.teslemetry/README.md",
"extIcon": "https://raw.githubusercontent.com/Teslemetry/ioBroker.teslemetry/main/admin/teslemetry.png",
"readme": "https://github.com/Teslemetry/ioBroker.teslemetry/blob/main/README.md",
"loglevel": "info",
"mode": "daemon",
"type": "iot-systems",
Expand All @@ -162,8 +149,12 @@
"license": "Apache-2.0"
}
},
"protectedNative": ["accessToken"],
"encryptedNative": ["accessToken"],
"protectedNative": [
"accessToken"
],
"encryptedNative": [
"accessToken"
],
"native": {
"accessToken": "",
"region": "auto",
Expand Down
Loading
Loading