This is a boilerplate plugin.
- Create a new plugin over the OpenHaus backend HTTP API
- Mount the plugin source code folder into the backend
- run
npm install
Add plugin item via HTTP API:
[PUT] http://{{HOST}}:{{PORT}}/api/plugins/
{
"name":"Plugin Boilerplate",
"version":1,
"intents":[
"devices",
"endpoints",
"plugins",
"rooms",
"ssdp",
"store",
"users",
"vault"
],
"uuid": "00000000-0000-0000-0000-000000000000"
}
Mount the source code into the backend plugins folder
sudo mount --bind ~/projects/OpenHaus/plugins/plugin-boilerplate/ ~/projects/OpenHaus/backend/plugins/00000000-0000-0000-0000-000000000000/