GithubHelp home page GithubHelp logo

miewliie / california_power_outage Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 792 KB

California power outage alert bot on Mastodon.

Home Page: https://mastodon.world/@california_power_outage

License: MIT License

Python 100.00%
bot mastodon-bot python mastodon

california_power_outage's Introduction

California Power Outages Bot

  • Toot about power outages in California.
    • Map of power outage.
    • Power Outage within current day and current hour.

Mastodon: https://mastodon.world/@california_power_outage

california_power_outage

Main flow

main.py

Tests

python -m unittest discover

Flowchart

flowchart LR
    A1[Start] --> A2(Request API)
    style A1 fill:#333,stroke:#d4d3cf,color:#fff,stroke-width:2px
    style A2 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A2 --> A3("Create Power 
    Outage Object")
    style A3 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A3-->A31("Only Power Outage 
    during this hour")
    style A31 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A31 --> A4{"Any Power 
    Outage?"}
    style A4 fill:#f2c199,stroke:#d4d3cf,color:#333,stroke-width:2px

    A4 --> |Yes| A10("Draw Power 
    Outage map")
    style A10 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A10 --> A12("Create status")
    style A12 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A12 --> A13(Tooting)
    style A13 fill:#faf1c5,stroke:#d4d3cf,color:#333,stroke-width:2px

    A13 --> A14[Finished]
    style A14 fill:#333,stroke:#d4d3cf,color:#fff,stroke-width:2px

    A4 --> |No| A6("Print: no 
    Power Outage")
    style A6 fill:#f7c5fa,stroke:#d4d3cf,color:#333,stroke-width:2px

    A6 --> A66[Exit] 
    style A66 fill:#333,stroke:#d4d3cf,color:#fff,stroke-width:2px


Loading

california_power_outage's People

Contributors

miewliie avatar

Stargazers

Tuan Duc Tran avatar  avatar Federico Zanetello avatar

Watchers

 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.