Giter Site home page Giter Site logo

olivierjm / powercut Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 7.0 1.42 MB

This is a little project to track Zesco Load shedding, used by over 15k visitors

Home Page: https://powercut.app

License: MIT License

JavaScript 7.17% TypeScript 88.35% HTML 1.98% CSS 2.50%

powercut's Introduction

Powercut

Easier way to track load shedding schedule in Zambia

Demo

https://powercut.app

Table of Contents

Overview

Recently in Zambia, we've experienced load shedding, currently at stage 1, resulting in 8 hours per day without electricity across various areas. It can be challenging to anticipate these power outages, making it difficult to plan ahead for activities such as ironing your clothes. This project is designed to provide clear visibility into the load shedding schedule, helping you understand and plan for these outages more easily.

How does it work

The tricky part of getting this to work was cleaning the data from zesco and making sure it is in a good shape to work with. So we get data from the pdf extract areas and schedules, clean it with different tools and make sure it is proper JSON. For better user experience we make it easy for users to find areas that are supported by offering them autocompletion, After we get the user's area we find the group they are in within a specific province and then we find the schedule for that Group and then we show all upcoming schedule for that Group.

Installation

Steps to install your project.

git clone https://github.com/olivierjm/powercut.git
cd powercut
yarn
yarn run dev

Schedule Updates

When ZESCO updates the loadshedding schedules you'll be required to run the following schedule-parse script to in order update the ./src/data/schedule.json file.

You can use the ./schedule-example.json to test how this script works.

yarn schedule-parse [filePath]

✨ Schedule successfully updated. Happy coding!

Features

  • Shows upcoming schedule for an area
  • Supports Lusaka, Copperbelt & North Western Province
  • Works offline
  • Installable on devices

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/amazing-feature)
  3. Commit your Changes (git commit -m 'Add some amazing-feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Note: Make sure all tests are passing and if you add new change add accompanying tests. (yarn test)

Code of Conduct

Please adhere to this project's code of conduct.

License

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

Contact

OlivierJM - [email protected]

Acknowledgments

  • Thanks to Zesco for making the schedule public

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.