cirillojon/Andromeda

Verify/Improve/Fix Solar Calculations

Offen

#214 geöffnet am 19.06.2024

 (0 Kommentare) (0 Reaktionen) (4 zugewiesene Personen)TypeScript (0 Forks)auto 404
frontend: formhelp wantedhigh priorityquestion

Repository-Metriken

Stars
 (2 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

All calculations are currently done here: https://github.com/cirillojon/Andromeda/blob/version/1.0.0/frontend/src/components/Onboarding/Form/SolarCalculations.ts

one question I have: given a hardcoded energyCostPerKwh // and assuming the formula for monthlyKwhEnergyConsumption is monthlyAverageEnergyBill / energyCostPerKwh // given that the user inputs their monthly bill, we already have the info we need right? can we remove this from the form and get the value for solar_electric_bill_kwh from the solarCalculation function?

I am sure other formulas need to be adjusted as well.

I used this as reference: https://github.com/googlemaps-samples/js-solar-potential/blob/main/src/routes/sections/SolarPotentialSection.svelte

(this is where the calculations are made for the google solar api demo)

demo link: https://solar-potential-kypkjw5jmq-uc.a.run.app/

Contributor Guide