37 Commits

Author SHA1 Message Date
Dominique Lasserre
fe9c8ecbbb
Update startup instructions. Closes #201 (#202) 2024-11-16 20:35:09 +01:00
Dominique Lasserre
2f5f844018
Migrate from Flask to FastAPI (#163)
* Migrate from Flask to FastAPI

 * FastAPI migration:
    - Use pydantic model classes as input parameters to the
      data/calculation classes.
    - Interface field names changed to constructor parameter names (for
      simplicity only during transition, should be updated in a followup
      PR).
    - Add basic interface requirements (e.g. some values > 0, etc.).
 * Update tests for new data format.
 * Python requirement down to 3.9 (TypeGuard no longer needed)
 * Makefile: Add helpful targets (e.g. development server with reload)

* Move API doc from README to pydantic model classes (swagger)

 * Link to swagger.io with own openapi.yml.
 * Commit openapi.json and check with pytest for changes so the
   documentation is always up-to-date.

* Streamline docker

* FastAPI: Run startup action on dev server

 * Fix config for /strompreis, endpoint still broken however.

* test_openapi: Compare against docs/.../openapi.json

* Move fastapi to server/ submodule

 * See #187 for new repository structure.
2024-11-15 22:27:25 +01:00
Chris
057f86d580
Json configuration (#141)
* Add json config
* Adjust code to new config

---------

Co-authored-by: Chris <git@nootch.de>
2024-11-11 21:38:13 +01:00
Chris
df202db242
Add settings and extension recommendations (#139)
- Added recommended settings for the Pylance and Pyright extensions
- Enabled pytest and debugging support in configuration
- Reformatted code with Prettier
---------
Co-authored-by: Chris <git@nootch.de>
2024-11-10 23:00:16 +01:00
Normann
6b545c501d Update README.md
clarify the None/Null/NaN values of the output.
2024-10-09 17:03:05 +02:00
BerndCzech
2882ca44d1 refactor: remove README-DE.md 2024-10-09 17:02:16 +02:00
Normann
8d50168904 README.md Python req. pushed to 3.10 2024-10-08 07:53:07 +02:00
fortrieb
a1c071c1a8 Heat pump: Tests, Translation, Docstrings, Relocation (#89)
* Add first unit test for heatpump COP calculation

* Translate to english,

add type hints, improve unit tests.

* Run pre-commit

* Apply suggestions from code review

Co-authored-by: Michael Osthege <michael.osthege@outlook.com>

* Remove conftest file

---------

Co-authored-by: Michael Osthege <michael.osthege@outlook.com>
2024-10-06 01:06:08 +02:00
Michael Osthege
411a843faf Add contribution guide and issue templates 2024-10-04 11:51:10 +02:00
Michael Osthege
d987437b01 Manual edits to remove remaining code style errors 2024-10-03 17:28:49 +02:00
Michael Osthege
a4d178d250 Apply isort and ruff code style 2024-10-03 17:28:49 +02:00
Fortrieb
7531932c8f Add english translation for readme.
Moving german readme to READEME-DE.md. Add sensible gitignore defaults for most operating systems, VS code and Python.
2024-09-30 08:02:40 +02:00
drbacke
c7f725adb8 Update README.md
TODOs entfernt und als Issues.
2024-09-16 16:20:07 +02:00
Daniel Molkentin
e97dc440e6 Mitmachen-Sektion mit Anlaufstellen in die README.dm eingefügt 2024-09-16 09:25:40 +02:00
Daniel Molkentin
c91d29db55 feat: add documentation, enable makefile driven usage
This introduces a One-Stop-Shop Makefile.

Also brings back tensorflow as dependency, it is still needed
2024-09-13 08:01:25 +02:00
Daniel Molkentin
244a343735 feat: Detailliertere README 2024-09-10 19:42:35 +02:00
drbacke
d05f650547 Update README.md 2024-09-06 09:56:36 +02:00
drbacke
771c88fefc Update README.md 2024-09-06 07:05:04 +02:00
Bla Bla
a3c340e019 Gesamtlast_simple 2024-09-05 14:26:26 +02:00
drbacke
b7d18cd7f3 Update README.md 2024-09-04 08:43:07 +02:00
drbacke
9f30486d4b Update README.md 2024-09-04 08:42:45 +02:00
drbacke
0d683a7bdd Update README.md 2024-08-02 14:04:37 +02:00
drbacke
806a952dcf Update README.md 2024-07-30 18:19:03 +02:00
drbacke
522e628049 Update README.md 2024-07-30 13:39:27 +02:00
drbacke
3a108a39b3 Update README.md 2024-07-30 13:35:53 +02:00
drbacke
32f7632ded Update README.md 2024-07-30 13:31:57 +02:00
Bla Bla
2605460a99 48 Stunden Predcition & Optimierung
Ein paar Zeitfunktionen korrigiert (24h / 48h)
Strompreis Cache stündlich leeren
Strompreis bei nur 24h Daten, wird verdoppelt (Prognose fehlt noch)
2024-05-08 09:58:41 +02:00
Bla Bla
3126fafea9 AC Charge TODO
# Please enter the commit message for your changes. Lines starting
2024-04-28 10:28:34 +02:00
drbacke
359349b7dd Update README.md 2024-04-17 17:56:17 +02:00
Bla Bla
da10817bdc PV API eingefügPV API eingefügtt # Please enter the commit message for
your changes. Lines starting #
with '#' will be ignored, and an empty message aborts the commit.  # #
On branch main # Your branch is up to date with 'origin/main'.
2024-04-17 15:35:43 +02:00
Bla Bla
be59c14262 Flask Server 2024-03-29 08:27:39 +01:00
drbacke
ccadc0b273 Update README.md 2024-03-25 14:43:13 +01:00
drbacke
baa1e3a1dc Update README.md 2024-03-09 09:28:29 +01:00
drbacke
5ab8f391da Update README.md 2024-03-09 09:27:17 +01:00
drbacke
851b7f8399 Update README.md 2024-03-03 18:28:24 +01:00
drbacke
83bfc10fe6 Update README.md 2024-03-03 18:26:30 +01:00
drbacke
e69b6249ba Create README.md 2024-03-03 18:23:29 +01:00