Application to read and manage data from temperature sensors. Application is purely internal, so no authorisation needed.
- Middle temperature from all sensors, in submitted days range
- Middle temperature for a particular sensor readings, in one-hour range
Can report to API, reports with POST method, json with following structure:
{
"reading": {
"sensor_uuid": "unique uuid of sensor",
"temperature": "decimal format, xxx.xxx, in fahrenheit"
}
}
Expects data to be read from it’s API, new sensors will be added manually via some basic form
Sensor expects request GET %sensor_ip%/data
Return is a csv - string:
reading_id
, temperature
in celsius in format xxx.x decimal
reading_id
is a sequence number, which increases each time when sensor reads temperature.
- Application is written in PHP 7.4
- Application uses Symfony 5.2 framework
- Application uses Doctrine ORM
- Application uses DDD approach
docker-compose up -d
composer install
symfony console doctrine:database:create
symfony console doctrine:migrations:migrate
symfony serve