You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This CLI application helps users make informed decisions about electricity usage—such as when to turn on a sauna or charge an electric vehicle—based on hourly electricity prices retrieved from the [Elpris API](https://www.elprisetjustnu.se/elpris-api). The program leverages the included ElpriserAPI.java file to fetch and process price data.
2
3
3
-
Add requirements here
4
+
### 🧭 Purpose
5
+
Electricity prices fluctuate significantly throughout the day. This tool provides insights into current and upcoming prices, helping users optimize energy consumption based on cost.
4
6
7
+
### ✅ Features
8
+
The application supports the following functionality:
9
+
10
+
### 📥 Download hourly electricity prices for:
11
+
12
+
The current day
13
+
14
+
The next day (if available)
15
+
16
+
📊 Calculate and display the mean price for the current 24-hour period.
17
+
18
+
📈 Identify and print the cheapest and most expensive hours:
19
+
20
+
If multiple hours share the same price, the earliest hour is selected.
21
+
22
+
### 🔌 Determine optimal charging windows for electric vehicles:
23
+
24
+
Durations supported: 2h, 4h, and 8h
25
+
26
+
Uses a Sliding Window algorithm to find the lowest total cost window.
27
+
28
+
### 🌍 Support for multiple price zones ("zon"):
29
+
30
+
Zone selection can be provided via:
31
+
32
+
Command-line argument
33
+
34
+
Interactive prompt
35
+
36
+
### ❓ Common Questions
37
+
Q: What does “prices for the current day and the next day” mean? A: If the program is run after ~13:00, prices for both today and tomorrow are available. Before 13:00, only today's prices are accessible.
38
+
39
+
Q: Can charging windows span across two days? A: Yes. Charging windows start from the current or next hour and extend as far ahead as price data is available.
40
+
41
+
Q: What if tomorrow’s data isn’t available? A: The program will gracefully fall back to showing only today’s prices.
42
+
43
+
Expected Command-Line Arguments:
44
+
45
+
* --zone SE1|SE2|SE3|SE4 (required)
46
+
* --date YYYY-MM-DD (optional, defaults to current date)
47
+
* --sorted (optional, to display prices in descending order)
48
+
* --charging 2h|4h|8h (optional, to find optimal charging windows)
0 commit comments