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
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