Skip to content

Instantly share code, notes, and snippets.

View elden1337's full-sized avatar
🦀

Magnus Eldén elden1337

🦀
View GitHub Profile
@elden1337
elden1337 / peaqev_vs_all.py
Created July 19, 2023 20:16
Peaqev total costs vs other types of smart charging
prices = [0.34, 0.34, 0.32, 0.33, 0.36, 0.38, 0.5, 0.57, 0.58, 0.57, 0.56, 0.54, 0.52, 0.51, 0.51, 0.52, 0.54, 0.57, 0.59, 0.61, 0.61, 0.6, 0.58, 0.52]
allowed_peak = 3 #how much is set in peaqev
other_consumption = 1.2
charged_kwh = 200
charge_days = 20
max_total_charge = 11
peak_price = 36.25 #gothenburg
#---------------------------------------
per_diem = charged_kwh / charge_days
average_price_month = sum(prices) / len(prices)