Git Product home page Git Product logo

predictive-maintenance's Introduction

Predictive Maintenance for Water Utilities

Setup

First, make sure you have installed the Google Cloud SDK.

Then, you will need to create a new Google Cloud project.

PROJECT_ID=your-project-id
gcloud projects create $PROJECT_ID

Once you have a project, you will also need to create a Cloud Storage bucket.

BUCKET_NAME=your-bucket-name
gsutil mb gs://$BUCKET_NAME

Generating data

Please follow the data-generator.ipynb interactive notebook. This notebook will go through all the steps and explanations on how to create the datasets, upload them to BigQuery, and train the BigQuery ML model.

Running the app

Once you have the data, you can now run the applications

To run the app, you have two options: to run it on Google Cloud, or to run it locally.

Running locally is only recommended for development and testing. It won't be available to anyone outside your own local computer, and it won't run very fast.

It is recommended to run on Google Cloud once you are happy with your results. It will run globally and accessible to anyone on the Internet.

Option A: Deploying to App Engine

Deploying will take a couple minutes, but after that the application will autoscale to match the current load of the application.

# Deploy the servr with the BigQuery integration.
bash server/deploy.sh

# Deploy the Angular web application.
bash webapp/deploy.sh

Option B: Running locally

You will need to run the server and the web application on different terminals.

#===--- Terminal A ---===#

# Create and activate a virtual environment.
python3 -m virtualenv env
source env/bin/activate

# Install dependencies.
pip install -U -r requirements.txt

# Run the server locally.
python server/main.py

Now that the server is running, you can now run the web application on another terminal.

#===--- Terminal B ---===#

# Serve the web application.
cd webapp
ng serve

Once everything is running, you can browse to the app at localhost.

http://localhost:5000

predictive-maintenance's People

Stargazers

Ryan avatar PassiveTech avatar

Watchers

James Cloos avatar David Cavazos avatar

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.