Skip to content

Commit

Permalink
build: remove smartthings
Browse files Browse the repository at this point in the history
If people want this back, we will implement internally. The other
library is not getting updating and seems to be closed-source. I
rather fix this vulnerbilities then keep it around if no one is using.
  • Loading branch information
jef committed May 27, 2021
1 parent 2e5b07c commit da635f4
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 166 deletions.
9 changes: 0 additions & 9 deletions docs/reference/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,6 @@ API Documentation: [pushover.net/api](https://pushover.net/api)
| `SLACK_CHANNEL` | Channel for posting |
| `SLACK_TOKEN` | API token |

## SmartThings

Generate token at [account.smartthings.com/tokens](https://account.smartthings.com/tokens).

| Environment variable | Description |
|:---:|---|
| `SMARTTHINGS_TOKEN` | Access token |
| `SMARTTHINGS_SWITCH_LABEL` | Switch Label of switch to activate|

## Telegram

| Environment variable | Description |
Expand Down
2 changes: 0 additions & 2 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ SHOW_ONLY_MODELS=
SHOW_ONLY_SERIES=
SLACK_CHANNEL=
SLACK_TOKEN=
SMARTTHINGS_TOKEN=
SMARTTHINGS_SWITCH_LABEL=
SMTP_ADDRESS=
SMTP_PORT=
STORES=
Expand Down
142 changes: 35 additions & 107 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
},
"homepage": "https://github.com/jef/streetmerchant#readme",
"dependencies": {
"@bridgerakol/samsung-smart-api": "^2.8.1",
"@doridian/puppeteer-page-proxy": "^1.2.11",
"@jef/pushbullet": "^2.4.3",
"@parse/node-apn": "^4.1.1",
Expand Down
4 changes: 0 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,6 @@ const notifications = {
channel: envOrString(process.env.SLACK_CHANNEL),
token: envOrString(process.env.SLACK_TOKEN),
},
smartthings: {
token: envOrString(process.env.SMARTTHINGS_TOKEN),
device: envOrString(process.env.SMARTTHINGS_SWITCH_LABEL),
},
soundPlayer: envOrString(process.env.SOUND_PLAYER),
telegram: {
accessToken: envOrString(process.env.TELEGRAM_ACCESS_TOKEN),
Expand Down
2 changes: 0 additions & 2 deletions src/messaging/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {sendTweet} from './twitter';
import {sendTwilioMessage} from './twilio';
import {sendTwitchMessage} from './twitch';
import {updateRedis} from './redis';
import {activateSmartthingsSwitch} from './smartthings';
import {sendStreamLabsAlert} from './streamlabs';
import {sendFreeMobileAlert} from './freemobile';
import {DMPayload} from '.';
Expand All @@ -31,7 +30,6 @@ export function sendNotification(link: Link, store: Store) {
sendSms(link, store);
sendApns(link, store);
// Non-priority
activateSmartthingsSwitch();
adjustPhilipsHueLights();
sendGotifyNotification(link, store);
sendMqttMessage(link, store);
Expand Down
41 changes: 0 additions & 41 deletions src/messaging/smartthings.ts

This file was deleted.

0 comments on commit da635f4

Please sign in to comment.