Sensor: People Now Present

This commit is contained in:
He4eT 2025-04-02 00:51:13 +02:00
commit 8798126dc4
7 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{
"kind": "collectionType",
"collectionName": "people_now_present_sensors",
"info": {
"singularName": "people-now-present-sensor",
"pluralName": "people-now-present-sensors",
"displayName": "Sensor: People Now Present",
"description": ""
},
"options": {
"draftAndPublish": true
},
"attributes": {
"value": {
"type": "integer",
"required": true
},
"location": {
"type": "string",
"required": true
},
"name": {
"type": "string"
},
"names": {
"type": "component",
"repeatable": true,
"component": "location.person"
},
"description": {
"type": "text"
},
"lastchange": {
"type": "biginteger"
}
}
}

View file

@ -0,0 +1,7 @@
/**
* people-now-present-sensor controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::people-now-present-sensor.people-now-present-sensor');

View file

@ -0,0 +1,7 @@
/**
* people-now-present-sensor router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::people-now-present-sensor.people-now-present-sensor');

View file

@ -0,0 +1,7 @@
/**
* people-now-present-sensor service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::people-now-present-sensor.people-now-present-sensor');