Giter VIP home page Giter VIP logo

energy's People

Contributors

andrewlew1s avatar dox avatar scat0324 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

scat0324

energy's Issues

Customise Colours of graphs

Hi, our Comms Team would like the CO₂ graph on the home page to be in more contrasting colours. Is it possible to make this a customisation in the settings file?

SRI on scripts

Our vulnerability scanner flags the import of scripts from third party sites as a medium risk, and recommends SRI https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity to mitigate it. It provides the following hashes for use in the integrity attribute:

https://cdn.jsdelivr.net/npm/flatpickr
sha256-AkQap91tDcS4YyQaZY2VV34UhSCxu2bDEIgXXXuf5Hg=

https://unpkg.com/[email protected]/dist/leaflet.js
sha256-yDc0eil8GjWFKqN1OSzHSVCiuGghTosZCcRje4tj7iQ=

https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.js
sha256-UzffRueYhyZDw8Cj39UCnnggvBfa1fPcDQ0auvCbvCc=

No interpolation

Our administrator has been asked by management to provide a monthly report showing the usage compared to the same month in the previous year. However, for October 2021 the readings were taken a few days late in early November 2021 so there are no readings for that month. It seems in this case the reported usage for that month is zero!

Can anything be done to interpolate the results and give usage evened out across the requested reporting period?

Display CO₂ in tonnes

The graph of CO₂ shows tonnes on the vertical axis. Our Comms team request that the headline figures for CO₂ are also displayed in tonnes. Could this be an option? Thanks!

XSS exploits

Our routine vulnerability scanning was able to insert its own arbitrary code into the form with id="termUpdate"
I think $_SERVER['REQUEST_URI'] needs input sanitization, perhaps with filter_input() - but I'm a bit out of my depth now!

overlay previous year on graph

Please can the CO₂ graph show a second (perhaps thinner/dotted) line with the previous year's readings, for comparison?

SQL injections

Our routine network vulnerability scanning has run for the first time against our install and identified quite a few "high" risk vulnerabilities involving SQL injection. The vulnerability scanning service recommends use of "Prepared Statements" as best practive to prevent SQL injections, but input sanitization on variables might be a quick fix [perhaps filter_var()/filter_var_array() ]
The scans identified the following variables as open to SQL injection attacks:

/export.php [query.filter]
/index.php [payload.date_from]
/index.php [payload.date_to]
/index.php [payload.locations%5B%5D]
/index.php [payload.nodes%5B%5D]
/index.php [query.locationUID]
/index.php [query.nodeUID]

Map -> Add location gives mostly blank page

The map page is working, but 'add location' just gives a blank page with just the header bar. Looking at page source shows nothing inside the body tag except the header structure.
The map part of 'add node' works, but clicking only adds a marker to the map, it doesn't do anything to the mandatory location field (if it was supposed to?)

Changing unit costs

How much work would it take to be able to record the cost of each energy type along with readings (defaulting to the last figure entered) and having the cost graphs calculated based on usage_since_last_reading*cost for each reading, rather than a single value which affects past and present data?
With the rapidly rising energy costs, even if this year's usage graph is much the same as last, the costs will likely be much higher, which might be a useful metric to see?

Missing config

Could you put a template config.php in, to show what variables should be defined?

New Nodes Error

After creating a new node the following screen appears once you have clicked on the new node to edit it. This error does not affect pre-existing nodes.

This occurred after the latest git pull I performed on 06/03/2023.

Utility Website Error

Best,
EP

m(3) to kWh

Could kWh be added to gas readings?
=m3*(calorific value)*1.02264)/3.6 = kWh

Cubic metres (m3) used x calorific value (usually 40.0) x Correction factor (1.02264) ÷ kWh conversion factor (3.6) = kWh

Y axis labels cropped

Hi - we've got some big numbers on our graphs and they're being cropped from display on the Y axis:
image
Is there a way to fix this?

Percentage confusion

The headline CO₂ Emissions graph shows "Total for the last 12 months across all utilities" and then a percentage. It is not clear to us what this is showing - can we get this clarified, and perhaps improve the wording?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.