https://github.com/nakov/temperatureserver
Very simple IoT server for colleting temperatures
https://github.com/nakov/temperatureserver
Last synced: about 2 months ago
JSON representation
Very simple IoT server for colleting temperatures
- Host: GitHub
- URL: https://github.com/nakov/temperatureserver
- Owner: nakov
- Created: 2022-02-01T13:23:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-01T14:35:25.000Z (over 4 years ago)
- Last Synced: 2025-01-09T11:24:03.304Z (over 1 year ago)
- Language: CSS
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Temperature Server
Very simple IoT server for educational purposes.
- Collects temperatures through HTTP POST endpoint.
- Visualizes all collected temperatures, with auto-refresh once per second.
- No authentication, no database -> everyone can write, data is lost at server restart.
- Provides a simple API to view / add temperatures.
## Live Demo
View temperatures Web user interface: https://temperature-server.nakov.repl.co

API endpoint to view the last added temperature:
```
GET https://temperature-server.nakov.repl.co/api/temperatures/last
```

API endpoint to add (collect) new temperature measurement:
```
POST /api/temperatures/add HTTP/1.1
Host: temperature-server.nakov.repl.co
Content-Type: application/x-www-form-urlencoded
Content-Length: 4
t=25
```
