Skip to content

Commit

Permalink
Create Tessie
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jun 14, 2024
1 parent bde546e commit bba2466
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"pluginAlias": "Teslemetry",
"pluginType": "platform",
"singular": false,
"headerDisplay": "Requires an active subscription to Teslemetry. Please login and create an access token at teslemetry.com",
"headerDisplay": "Requires an active subscription to Tessie. Please login and create an access token at https://my.tessie.com/settings/api",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Teslemetry"
"default": "Tessie"
},
"accessToken": {
"title": "Access Token",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"private": false,
"displayName": "Teslemetry",
"name": "homebridge-teslemetry",
"displayName": "Tessie",
"name": "homebridge-tessie",
"version": "0.0.1",
"description": "A short description about what your plugin does.",
"description": "Homebridge integration for Tessie.",
"license": "Apache-2.0",
"type": "module",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { PLATFORM_NAME, PLUGIN_NAME } from "./settings.js";
import { VehicleAccessory, VehicleContext } from "./vehicle.js";

import { Teslemetry } from "tesla-fleet-api";
import { Tessie } from "tesla-fleet-api";

/**
* HomebridgePlatform
Expand All @@ -21,7 +21,7 @@ import { Teslemetry } from "tesla-fleet-api";
export class TeslaFleetApiPlatform implements DynamicPlatformPlugin {
public readonly Service: typeof Service;
public readonly Characteristic: typeof Characteristic;
public readonly TeslaFleetApi: Teslemetry;
public readonly TeslaFleetApi: Tessie;

// this is used to track restored cached accessories
public readonly accessories: PlatformAccessory<VehicleContext>[] = [];
Expand All @@ -34,7 +34,7 @@ export class TeslaFleetApiPlatform implements DynamicPlatformPlugin {
this.Service = api.hap.Service;
this.Characteristic = api.hap.Characteristic;

this.TeslaFleetApi = new Teslemetry(this.config.accessToken);
this.TeslaFleetApi = new Tessie(this.config.accessToken);

this.log.debug("Finished initializing platform:", this.config.accessToken);

Expand Down
4 changes: 2 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
*/
export const PLATFORM_NAME = "Teslemetry";
export const PLATFORM_NAME = "Tessie";

/**
* This must match the name of your plugin as defined the package.json
*/
export const PLUGIN_NAME = "homebridge-teslemetry";
export const PLUGIN_NAME = "homebridge-tessie";

export const REFRESH_INTERVAL = 30000;

0 comments on commit bba2466

Please sign in to comment.