Page:
Temperature endpoints
Pages
API SMHI
API TimeEdit
Accessibility Testing
Api documentation
Bat/Ps
Branch Creation
C# Coding Convention
CSS Coding Convention
Coding Conventions
Creating new databases
Dapper
Documentation for service endpoints
Documentation of useTemperature and mock sensor
Energy endpoints
Environment
Evaluation react-grid-layout
Evaluation Localization
Evaluation Password hashing
Evaluation Testing framework
Evaluation of Logging Frameworks
Formatter
Frontend model
Generic Diagram for Sensor data flow
Home
How to- Creating Databases in Docker
Implementing different Styles
Implementing new Mockup sensors
Implementing new Views
Installation script documentation
Installation
Issues
JSON Coding Convention
Jest Testing
Layout endpoints
Linux
Localization
Login endpoints
Mac
Middleware model
Mock API Ceation Guidelines
Mockup models
Model Tools and Standards
Parking endpoints
React/JavaScript Coding Convention
React
Reviews
Room booking endpoints
SQL Coding Convention
Scheduled Database tasks
Scripting Coding Convention
Secrets and .env
Server Access
Server-Deployment
Service/API models
System models
System requirements
Temperature endpoints
Testing API with Bruno
Testing Architecture
Testing frontend for Mobile devices
Testing frontend with Playwright
Testing methodology
Västtrafik API
Webpage Design
Windows
pg_cron and scheduled database jobs
xUnit Testing
No results
2
Temperature endpoints
Elinus Persson edited this page 2026-05-12 12:11:51 +00:00
Temperature endpoints
- /temperature/latest/{sensorId}
- /temperature/latest/
- /temperature/all/{sensorId}
- /temperature/sensors
- /temperature/{year}
- /temperature/{year}/{month}
GET /temperature/latest/{sensorId}
Path to endpoint
GET /temperature/latest/{sensorId}
Required values
- sensorId: temperature sensor id
Return values
Returns a JSON object containing temperature data:
- sensorId: temperature sensor id
- timestamp: temperature reading timestamp
- temperature: temperature value
When no error occurs
- Returns the latest temperature reading for the sensor
- Status: 200 OK
When error occurs
- Temperature data not found
- Status: 404 Not Found
Get /temperature/latest
Path to endpoint
GET /temperature/latest/
Required values
None
Return values
Returns a JSON array of objects of the latest temperature data for each unique sensor. Each item contains the following data:
- sensorId: temperature sensor id
- timestamp: temperature reading timestamp
- temperature: temperature value
When error occurs
- Temperature data not found
- Status: 404 Not Found
GET /temperature/all/{sensorId}
Path to endpoint
GET /temperature/all/{sensorId}
Required values
- sensorId: temperature sensor id
Return values
Returns a JSON array containing temperature data objects:
- sensorId: temperature sensor id
- timestamp: temperature reading timestamp
- temperature: temperature value
When no error occurs
- Returns all temperature readings for the sensor
- Status: 200 OK
When error occurs
- Temperature data not found
- Status: 404 Not Found
GET /temperature/sensors
Path to endpoint
GET /temperature/sensors
Required values
None
Return values
Returns a JSON array containing available temperature sensors.
When no error occurs
- Returns all available temperature sensors
- Status: 200 OK
When error occurs
- Sensor data not found
- Status: 404 Not Found
GET /temperature/{year}
Path to endpoint
GET /temperature/{year}
Required values
- year: year number
Return values
Returns a JSON object containing average temperature data:
- year: selected year
- averageTemperature: average temperature value
When no error occurs
- Returns average temperature data for the selected year
- Status: 200 OK
When error occurs
- Temperature data not found
- Status: 404 Not Found
GET /temperature/{year}/{month}
Path to endpoint
GET /temperature/{year}/{month}
Required values
- year: year number
- month: month number
Return values
Returns a JSON object containing average temperature data:
- year: selected year
- month: selected month
- averageTemperature: average temperature value
When no error occurs
- Returns average temperature data for the selected year and month
- Status: 200 OK
When error occurs
- Temperature data not found
- Status: 404 Not Found
1. Setup
2. Standards
- Coding Conventions
- Issues
- Branch creation
- Reviews
- Implementation Standards
- [WIP] Creating new databases
- Localization
3. Models and Diagrams
4. Testing
5. Documentation
- Documentation for service endpoints
- API documentation
- Webpage Design
- Secrets and .env
- Evaluations
- Installation and Rebuild script documentation
6. Guides and How-to's
7. Micro Service Mockup Api
- Guidelines Mircro Service Mockup
- Documentation of useTemperature/useTemperatureTimeSeries mockup sensor