Giter Site home page Giter Site logo

ccil-kbw / robot Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 10.33 MB

mdroid: Masjid's droid

Home Page: https://ccil-kbw.github.io/

License: BSD 3-Clause "New" or "Revised" License

Go 98.52% Dockerfile 1.48%
bot discord automation masjid openbroadcastersoftware ummah openbroadcaster

robot's People

Contributors

serafdev avatar

Stargazers

 avatar

Watchers

 avatar

robot's Issues

Add PTZ Camera Frame Automation

Request as curl of the ptz camera:

curl 'http://192.168.1.253/cgi-bin/ptzctrl.cgi?ptzcmd&poscall&11' \
  -H 'Content-Type: application/x-www-form-urlencoded;charset=utf-8' \
  -H 'Cookie: CGISESSION=zeFdsRYOsksdEcWymqvAmVMJeQQqURuj' \
  --compressed \
  --insecure

Here we want to detect the Frame and set it properly based on the Event:

11: Chair under Imam for Khutbah Translations
12: Zoomed Out Imam + Iqama
13: Imam Khutbah
14: Zoomed Out everything

E.g: Khutbah Translation Time: 11, Khutbah Time: 13

Refactor for Robot to become a Monolith ๐Ÿ”

At the same time why not named it Masjid's Robot (or MasjidsRobot as slug)

Refactoring points:

  • 1 entrypoint with a bunch of features
  • Make it API based (+ generate a cli tool for flexibility while we work on some UI)

Improve MacOS packaging

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>EnvironmentVariables</key>
    <dict>
        <key></key>
        <string></string>
    </dict>
    <key>Label</key>
    <string>org.masjidsrobot.darsrec</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/darsrec</string>
    </array>
    <key>KeepAlive</key>
    <true/>
    <key>StandardOutPath</key>
    <string>/tmp/darsrec.out</string>
    <key>StandardErrorPath</key>
    <string>/tmp/darsrec.err</string>
</dict>
</plist>

Currently hardcoded the above in ~/Library/LaunchAgents/org.masjidsrobot.darsrec.plist

Should find a better way with an install.sh script to do this automatically

This ticket includes signing the binary with Apple's Developpers - not sure about the process for non-mac users, got to investigate inchaAllah

Iqama Sources

Create different Iqama Sources with a simple configuration from the User.

At the moment we use the API from https://iqama.ccil-kbw.com but other solutions can greatly simplify Administrative Tasks.

At the moment I am thinking about a Public Google Sheets that can simply be modified manually by the Administration, the Sheet would contain a page for each year (2023, 2024, 2025, etc) and reading the Iqama would simply use the URL for the Google Sheets.

When the Administration thinks that they need to change the Iqama they simply login to their Google account and modify the Sheet directly from there. All Iqama Apps can use that Sheet as Source of Truth and is not controlled by any Developer but solely by the Masjid's Administration.

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.