Skip to content

Commit

Permalink
Change Raspberry PI Plugin to monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelatti committed Oct 21, 2024
1 parent c3d21c5 commit 6ee71a6
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 4,983 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

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

File renamed without changes.
File renamed without changes
19 changes: 19 additions & 0 deletions plugins/raspberry-pi-gpio/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@tago-io/tcore-plugin-raspberry-pi-gpio",
"version": "0.5.0",
"private": false,
"main": "./src/index.ts",
"type": "module",
"tcore": {
"name": "Raspberry Pi",
"short_description": "Read and Activate GPIO Pins of Raspberry Pi",
"full_description": "./README.md",
"icon": "./assets/icon.png",
"types": ["action-type", "action-trigger", "service"],
"permissions": ["device", "device-data"]
},
"dependencies": {
"rpio": "2.4.2"
},
"devDependencies": {}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { ActionTypeModule, ActionTriggerModule, core, ServiceModule } from "@tago-io/tcore-sdk";
import {
ActionTriggerModule,
ActionTypeModule,
ServiceModule,
core,
} from "@tago-io/tcore-sdk";
import rpio from "rpio";

/**
Expand Down Expand Up @@ -67,7 +72,8 @@ const RaspberryActionTrigger = new ActionTriggerModule({
},
{
name: "Pooling time",
tooltip: "Select how often this pin will be read, value in milliseconds",
tooltip:
"Select how often this pin will be read, value in milliseconds",
placeholder: "Enter a value between 1 ms and 259200000 ms",
field: "time_read",
icon: "clock",
Expand All @@ -88,7 +94,8 @@ const RaspberryActionType = new ActionTypeModule({
{
name: "Send GPIO status to bucket",
field: "send_bucket_state",
tooltip: "Select if you want to save the logic level in the Bucket when action is triggered",
tooltip:
"Select if you want to save the logic level in the Bucket when action is triggered",
type: "boolean",
icon: "bucket",
},
Expand Down Expand Up @@ -160,7 +167,8 @@ const RaspberryService = new ServiceModule({
{
name: "Pin configuration",
icon: "cog",
tooltip: "Define which pins will be opened. Only the pins that were opened can be used later on.",
tooltip:
"Define which pins will be opened. Only the pins that were opened can be used later on.",
field: "topic",
required: true,
key: {
Expand Down Expand Up @@ -338,7 +346,7 @@ RaspberryActionTrigger.onTriggerChange = async (actionID, trigger) => {

interval = setInterval(
() => callback(actionID, trigger),
Math.max(Math.min(Number(trigger.time_read), 259200000), 1)
Math.max(Math.min(Number(trigger.time_read), 259200000), 1),
);
};

Expand Down
4 changes: 0 additions & 4 deletions standalone-plugins/raspberry-pi-gpio/.dockerignore

This file was deleted.

12 changes: 0 additions & 12 deletions standalone-plugins/raspberry-pi-gpio/.editorconfig

This file was deleted.

10 changes: 0 additions & 10 deletions standalone-plugins/raspberry-pi-gpio/.eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions standalone-plugins/raspberry-pi-gpio/.eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions standalone-plugins/raspberry-pi-gpio/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions standalone-plugins/raspberry-pi-gpio/.prettierrc

This file was deleted.

9 changes: 0 additions & 9 deletions standalone-plugins/raspberry-pi-gpio/.vscode/settings.json

This file was deleted.

16 changes: 0 additions & 16 deletions standalone-plugins/raspberry-pi-gpio/docker/Dockerfile.linux-arm64

This file was deleted.

16 changes: 0 additions & 16 deletions standalone-plugins/raspberry-pi-gpio/docker/Dockerfile.linux-armv7

This file was deleted.

26 changes: 0 additions & 26 deletions standalone-plugins/raspberry-pi-gpio/esbuild/build.js

This file was deleted.

Loading

0 comments on commit 6ee71a6

Please sign in to comment.