Git Product home page Git Product logo

enabiz-covid19-result-check's Introduction

enabiz-covid19-result-check

A simple script to check test results and post them when they are changed as a Slack message

Requirements

curl, pup and jq

Preparation

  1. Create a Slack bot
  2. Get cookies from E-Nabiz
    1. Login to the system
    2. Open the developer console of the browser
    3. Naviate to Tests
    4. Get the cookies of the Tests page request

Usage (MacOS)

Crontab can be useful to check results regularly.

  1. Create an environment file, named .env
    export SLACK_TOKEN="xoxb-123-456-abc..."
    export COOKIE="f5_cspm=..."
    export MENTION_USERNAME="username"
    
  2. Edit the current crontab
    $ crontab -e
  3. Add the check script to run for every 2 minutes
    */2 * * * * cd /tmp/covid19-test-result-check && (source .env && ./check.sh >> ./check.log 2>&1)
    

enabiz-covid19-result-check's People

Contributors

ouzman 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.