Commit Graph

12 Commits

Author SHA1 Message Date
Paul van Tilburg 04e28a33c3
Add a /version API endpoint
* Introduce the `VersionInfo` struct, build from the vergen environment
  variables
* Add the `version` handler to construct and return the version info
* Update the README
2023-01-29 15:29:32 +01:00
Paul van Tilburg ca116351db
Implement error catchers for all requests (closes: #5)
* Introduce an error JSON output
* Return error JSON output if the status data is not there (yet)
* Introduce a default catcher to return error JSON output in all other
  unsupported/unhandled cases
* Update the documentation
2023-01-16 21:08:03 +01:00
Paul van Tilburg 536b1564b9
Also set the state class in HA sensors example 2023-01-13 23:22:41 +01:00
Paul van Tilburg 745edea875
Clarify config necessary for exposing container port
If Rocket is not configured to listen on 0.0.0.0:8000, exposing port
8000 on the inside to a chosen port (2399 by default), will not work.
2023-01-13 11:57:24 +01:00
Paul van Tilburg f6a3820961
Fix typo in Docker commands 2023-01-11 21:59:47 +01:00
Paul van Tilburg 5733a6440c
Fix (example) port in HA example 2023-01-11 21:58:33 +01:00
Paul van Tilburg 1c2fc62805
Add documentation for how to use with Home Assistant 2023-01-10 17:13:52 +01:00
Paul van Tilburg 4bdaa3bdac
Switch the example port to 2399 2023-01-10 17:00:20 +01:00
Paul van Tilburg a0cb3dccae
Document the Docker support 2023-01-10 16:29:32 +01:00
Paul van Tilburg 0e7d339682
Update documentation and example 2023-01-10 15:49:11 +01:00
Paul van Tilburg 3690647c76 Add service-specific configuration
Switch to a section/table for the service to make it easier.
2023-01-09 21:25:35 +01:00
Paul van Tilburg 5bf7f5d8de Initial import into Git
This project is based on [Autarco
Scraper](https://git.luon.net/paul/autarco-scraper) but will support
multiple services, not just My Autarco.
2023-01-08 15:39:14 +01:00