A modern, mobile-friendly web application to calculate electricity costs. Easily deployable via GitHub Pages.
- Wattage Input: Default value of 10W. Users can adjust to their needs.
- Electricity Price Input: Allows up to four decimal places with a default value of 0.3000 €/kWh. Saved locally in the browser.
- Daily Usage Time Input: Default value of 24 hours. Also saved locally in the browser.
- Real-Time Calculations: Automatically calculates and updates the following:
- Daily costs (in kWh and €)
- Monthly costs (in kWh and €)
- Yearly costs (in kWh and €)
- Reset Button: Resets wattage and daily usage time to default values while retaining the electricity price.
- Responsive Design: Optimized for both desktop and mobile devices.
-
Clone this repository:
git clone https://github.com/leneffets/power.git
-
Navigate to the project directory:
cd power
-
Deploy the app using GitHub Pages:
- Push the code to your GitHub repository.
- Enable GitHub Pages in the repository settings.
-
Access the app through the provided GitHub Pages link.
- Open the web app in your browser.
- Adjust the input values for wattage, electricity price, and daily usage time as needed.
- View the calculated costs in the output section.
- Use the reset button to restore wattage and usage time to default values.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to contribute or report issues to improve the app!