YaleOpenLab / opensolar

Opensolar is a platform powered by openx for funding smart solar infrastructure using the Stellar blockchain.
https://openx.solar
GNU General Public License v3.0
20 stars 9 forks source link

Accumulate electricity bill data from consumption data #14

Closed Varunram closed 4 years ago

Varunram commented 5 years ago

Right now, we have a placeholder function that returns a constant value in place of the real electricity bill. We must get this data with the help of oracles / data from the devices.

Varunram commented 4 years ago

an update on this - right now, the contract is set to $120 a month ie we implicitly assume that the electricity bill per month is $120. We should setup a website like tariffs.openx.solar where we can grab this data from organisations and people can calculate how much they owe the contract. The contract in turn can pull its values from the website for standardisation.

Varunram commented 4 years ago

this feature was merged in master for the openx-opensolar pilot