app icon indicating copy to clipboard operation
app copied to clipboard

Adding tariffs to costcomparison app

Open delboy711 opened this issue 5 years ago • 1 comments

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

delboy711 avatar May 26 '19 15:05 delboy711

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

stuartpittaway avatar Apr 09 '20 07:04 stuartpittaway