gkennaugh / city

City management of energy, renewables, bicycle rental and other city provided utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues GNU License LinkedIn


Logo

City Manager

Dashboard to manage renewable energy, public wifi, renewables, bicycle rental and more for a city.
Explore the docs »

View Live Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

Dashboard with several pages to manage the following in a city. The city for this example if Mexico City.

Page 1 has a map to show Energy Demand for each region of the city.

Page 2 has a map to manage potential power shortages and which parts of the city would be without sufficient energy supply. The slider can be moved to experiment with different power generation.

Page 3 shows demand for today and historically for the Mexico city metro.

Page 4 with a map showing live bicycle sharing stations and their capacity including bikes available.

Page 5 with a map showing the renewable energy providers in the city.

Page 6 shows the wifi stations in the city, showing live demand/capacity.

(back to top)

Built With

  • Plotly
  • Bootstrap

The advantage of using plotly is everything from the front-end to the back-end is built using python. No need to learn javascript and seamlessly put online with https://pythonanywhere.com (free account to get you going). Pythonanywhere has most python packages installed on their own side so you just need to put your .py file and it should run straight away.

(back to top)

Getting Started

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

Prerequisites

Install Python (better to use Anaconda https://www.anaconda.com/)

Installation

  1. Clone the repo

    git clone https://github.com/gkennaugh/city.git
  2. Install required packages from requirements.txt

    pip install -r requirements.txt
  3. Download the two largest files from here and store in the same directory as the other files: https://gkennaugh12.eu.pythonanywhere.com/static/merged_stations.csv

  4. Run python app.py in a new Anaconda Command Prompt (can take one minute to fully run first time)

    python app.py

    Open the app in your local browser at http://localhost:8061

N.B. You can use my api key to begin with but please get your own free key here https://www.mapbox.com/

(back to top)

Usage

City management dashboard for modern cities with public services such as bicycle rental, wifi towers, public transport and energy demand/shortfall from local renewable sources.

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • [-] Map info (location of several city public services)
  • [-] Graphs
  • [-] Alert notices

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

(back to top)

Contributing

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

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  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

(back to top)

License

Distributed under the GNU General Public License v3.0. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @twitter_handle) - info@oriondvd.co.uk

Project Link: https://github.com/gkennaugh/city

(back to top)

Acknowledgments

(back to top)

About

City management of energy, renewables, bicycle rental and other city provided utilities

License:GNU General Public License v3.0