emoncms / app

Emoncms App module: application specific dashboards: includes myelectric, mysolarpv, myheatpump and solar + wind app.
GNU Affero General Public License v3.0
27 stars 71 forks source link

Adding tariffs to costcomparison app #89

Open delboy711 opened 5 years ago

delboy711 commented 5 years ago

The Cost Comparison app is nice, but it does not have many tariffs, and they are not up to date. It would be nice if the user could add their own tariffs in a different file to rates.js that did not get overwritten with a new release of emoncms.

I added a line to costcomparison.php after line 18 <script type="text/javascript" src="<?php echo $path; echo $appdir; ?>userrates.js?v=<?php echo $v; ?>"></script>

Tariffs in the file userrates.js get merged with the default tariffs

stuartpittaway commented 4 years ago

@TrystanLea did you find a website with an api to get rates?