codeforboston / home-energy-analysis-tool

https://www.codeforboston.org/projects/
MIT License
7 stars 25 forks source link

Handle null temperature data #166

Open alanisaac opened 2 months ago

alanisaac commented 2 months ago

Figure out what to do here. cc: @plocket @thadk

AdamFinkle commented 2 weeks ago

For now, the rules engine team has chosen to throw an exception when any null temperature value is given. We expect this exception to occur only if the billing period ended in the past five days because open-meteo splits its weather data api into a 'historical' portion, which excludes the past five days, which it offers in a 'forecast' portion. The javascript could handle this exception by fetching the missing temperature data from the 'forecast' portion, combining it with the 'historical' data, and sending the combined data to the rules engine.