Sign inSign up

knrt10/attendence

By knrt10

Updated over 7 years ago

Check your hibiscus attendence from your terminal

Image
0

894

knrt10/attendence repository overview

Steps to check attendence first time

  • Pull the image docker pull knrt10/attendence

  • Copy the code below and fill the blank string with your collegeID in uid and your hibiscus password in pwd

#!/bin/bash

content=$(curl -s -X POST
http://14.139.198.171/api/hibi/attendence
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{ "uid": "", "pwd":"" }' | jq '.Notices[]')

sub=$(jq -r '.sub' <<< "${content}" ) GREEN=$(echo -en '\001\033[00;32m\002') attendance=$(jq -r '.attendance' <<< "${content}" )

paste <(printf %s "$sub") <(printf %s "${GREEN}$attendance") | column -s $'\t' -t

After this follow below steps

  • now run the image docker run -it --name attendence knrt10/attendence

  • now copy the code copied after your fill the uid and pwd and follow step cat >> attendence.sh and then paste the code and press ctrl + d

  • run chmod 777 attendence.sh && ./attendence.sh to check attendence

  • exit by typing exit

  • Finally commit your changes docker commit attendence knrt10/attendence

Checking attendence next time

  • docker run -it --rm knrt10/attendence
  • ./attendence.sh

Tag summary

Content type

Image

Digest

Size

54.5 MB

Last updated

over 7 years ago

docker pull knrt10/attendence