SparEnergieJetzt
Version 2.0 of the SparEnergie configurator of the Energiesparathon
Install / Use
/learn @modugen/SparEnergieJetztREADME
SparEnergie.Jetzt Konfigurator
German: Hier liegt der vollständige source code des Sparenergie Konfigurators. Wir hoffen mit diesem Tool einen Beitrag zur Energiekrise zu leisten. Um die bestmöglichen Vorschläge zur Verfügung stellen zu können, haben wir uns entschieden den code öffentlich zu stellen, sodass weitere Beiträge möglich sind!
Contributing
We are encouraging contributions to this tool, since we are convinced that it can grow to help more and more people save energy in a meaningful way. This code was written in a 3 day company internal hackathon. Hence, don't expect architectural prowess ;) Any cleanups, restructuring and modularisation is welcome. Additionally there's a few bigger steps that would help the tool.
Next Steps
- Introduce UI and calculation tests and add Github Action with test suite
- Introduce Translations using react-i18next
- Add products (see below)
- Add additional configuration options
- Different heating types
- more house types
- ...
- Improve Cookie handling
Introducing new Products
- The calculations for each product are written in
/src/calc.ts - The products are listed in
src/pages/ResultPage/constants.ts - The logic of the calculation follows a similar pattern for all products. This is explained here: TBA.
Tooling
- react-snap for server-side prerendering
- zustand for the configurator store
- MUI for UI elements
- The app is deployed on each commit to
mainvia AWS Amplify.- Contact info@modugen.de if there's questions regarding this.
Development
This project was bootstrapped with Create React App.
Available Scripts
In the project directory, you can run:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
yarn build
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Changelog
- 2022-09-17: Use correct link for shower head (hansgrohe Crometta) and slightly update text
- 2022-09-19: Add cold shower as result
- 2022-09-19: Add link to slide deck with example calculations
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
