Git Product home page Git Product logo

abukamel / salah-status-updater Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 874 KB

Chrome extension to update user status on slack to reflect praying status and set do not disturb mode after Muslim Azan until prayer ends restoring back last status, Dnd and snooze settings

Home Page: https://chrome.google.com/webstore/detail/angcnehdmhhhceijompnlichhojnkdco

License: Other

JavaScript 66.46% HTML 5.16% TypeScript 28.37%

salah-status-updater's Introduction

Salah Status Updater for Slack

This is an ejected create-react-app project.

How to try in local browser

npm run build # then upload the output in `build` dir to your extensions

How it works

It get's your current location from local browser API and get's your timezone info from timezone db API.

You connect to a Slack team/s oauth2 API using chrome browser identity.

Every six hours it updates your location and timezone info.

Using provided timezone info and location coordination it uses prayer times library to set your five Salah times when installed/started and creates internal app alarms that are triggered at Salah time to wake up the app to go and change your Slack status and snoozing, Dnd settings creating another alarm right after setting the status to replace it with your last status and settings before salah based on the prayers idle default or updated times through extension preferences/options.

At minute one of every day "00:01" it run an alarm to create alarms for the days 5 prays to not miss any.

Features

  • Connects to Slack using oauth2 and any personal data are stored in your local browser only.
  • Updates your status at every Muslim Salah considering idle times you set yourself.
  • Remembers your last status and settings before Salah to not cause you un welcomed notifications after Salah if you were on snooze or dnd mode.

salah-status-updater's People

Contributors

abukamel avatar

Stargazers

 avatar Ammar Alakkad avatar

Watchers

James Cloos avatar  avatar

salah-status-updater's Issues

Enhancements

use data-id
convert storage to class and inject the dependency
use redux
remove idea files
use typescript let var = ()=>{} if function don't need arguments
if function bound need arguments use arrow function on the event
you don't need if condition for number of teams
don't use ternary operator for map() as it returns empty array and is OK for render functoin in react
remove unneeded null types
Check getderivedstatefromprops

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.