Giter Site home page Giter Site logo

a-n-u-b-i-s / surgesaver Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 5.96 MB

Save money. Save the planet.

Home Page: https://surgesaver.com

License: MIT License

HTML 39.04% JavaScript 29.47% CSS 31.49%
twilio twilio-api twilio-sms twilio-sms-api node nodejs aws aws-lambda aws-s3 aws-apigateway

surgesaver's Introduction

Contributors Stargazers Issues MIT License


SurgeSaver

Save money. Save the planet.

Explore the docs »
View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

Demand for electricity varies greatly throughout the day, and companies have responded by charging more for power during certain hours to disincentivize use. “Peaker plants” are inefficient power plants only used in these hours of peak consumption, and are the source of some of the country’s worst pollution. Most people aren’t aware of the hours when they should reduce consumption, and end up paying up to 10x as much per kWh for things like running their AC mid-day. With our application, users will be notified when surge pricing is likely to occur, and will be able to reduce energy use to both save money and help the environment by avoiding "peaker plants".

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Please install the following tools to contribute.

  • npm
  • sass
brew install node
brew install sass/sass/sass

Usage

Analytics Screen Shot

SurgeSaver tracks live and predictive Locational Marginal Pricing (LMP) across over 20 energy/power utilities in the Midwest and Mid Atlantic. We send text-alerts to users when price gouging is likely to occur within the next 24 hours, giving them the necessary information to make informed decisions regarding their power usage. In addition, the application compiles and displays informative visualizations of demand trends.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Anubis Watal - LinkedIn - email
Tessa Danehy - LinkedIn - email
Lukas Houpt - LinkedIn - email
Neil Kothari - LinkedIn - email

Project Link: https://github.com/a-n-u-b-i-s/SurgeSaver

surgesaver's People

Contributors

a-n-u-b-i-s avatar neilk787 avatar tdanehy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

neilk787 tdanehy

surgesaver's Issues

Exposed API token.

Currently, you can view your Twilio token within your index.js.

You should probably use something like the .env npm package. It allows you to put all your tokens in a process.env file, then you add that file to a git exclude.

you should also reset the token so that nobody can get it by looking at the git history.

Broken page

When attempting to load the web page, a 404 is sent. Regardless of this, you're still able to view the (majority) of the page.

The only problem is, it seems that the only part missing from the page is the actual feature that people came to it for.
Looking at console logs, it seems that the error is thrown on line 36 of graph.js.

Looking at the network, the original page 404'd, but then still sent the body + js scripts after.
Based on what the headers say, I believe it has something to do with a key you are using for aws, as when I try to load http://surgesaver.com.s3-website-us-east-1.amazonaws.com/index.html, it loads just fine.

Headers:
image
image

How to self host.

There was no documentation on how to run this project. Due to this, I had to kind of make it up on my own.

After a bit of fiddling around, I managed to figure out that I need to run the web\index.js file, but it throws errors when I try to run it.

The first error (ReferenceError: Vue is not defined at var fin = new Vue({) was fixed by adding var Vue = require('vue'); just above it.

The next error (ReferenceError: updateGraphZ is not defined at updateGraphZ(V.analyticsZipCode);) is something I have no clue how to fix. It seems that this is a function within the graph.js file.
After importing those functions with this hacky bit of code, it threw yet another error:

var fs = require("fs");

eval(fs.readFileSync('graph.js')+'');

After that, it was giving me ReferenceError: window is not defined at an unknown point. From what I can tell, you're trying to use a variable that doesn't exist. I saw references to window, but there were no assignments to it.

I would greatly appreciate if you could add documentation on how to host this.

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.