Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tariffs to costcomparison app #89

Open
delboy711 opened this issue May 26, 2019 · 1 comment
Open

Adding tariffs to costcomparison app #89

delboy711 opened this issue May 26, 2019 · 1 comment

Comments

@delboy711
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants