Sensors: Radiation

This commit is contained in:
He4eT 2025-04-01 22:17:43 +02:00
commit 751d8f7c63
5 changed files with 121 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{
"kind": "collectionType",
"collectionName": "radiation_sensors",
"info": {
"singularName": "radiation-sensor",
"pluralName": "radiation-sensors",
"displayName": "Sensor: Radiation"
},
"options": {
"draftAndPublish": false
},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"alpha",
"beta",
"gamma",
"beta_gamma"
]
},
"value": {
"type": "decimal",
"required": true
},
"unit": {
"type": "enumeration",
"enum": [
"cpm",
"r/h",
"µSv/h",
"mSv/a",
"µSv/a"
],
"required": true
},
"dead_time": {
"type": "decimal"
},
"conversion_factor": {
"type": "decimal"
},
"location": {
"type": "string",
"required": true
},
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"lastchange": {
"type": "biginteger"
}
}
}

View file

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

View file

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

View file

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