salat_mv

Crates.iosalat_mv
lib.rssalat_mv
version0.3.18
sourcesrc
created_at2023-01-22 00:50:07.656809
updated_at2023-03-20 18:08:12.225629
descriptionA tool to show prayer times in The Maldives
homepagehttps://github.com/Quicksilver151/SalatMV
repositoryhttps://github.com/Quicksilver151/SalatMV
max_upload_size
id764676
size566,288
Default Cube (Quicksilver151)

documentation

README

SalatMV

A cli version of the salat mv mobile app. Used to show prayer times in Maldives.

This program uses the db from the salatmv app

Screenshot_20230316_032642

~> salat_mv -ct

Salat_MV-cli
---------------------
Time   :  06:34:05 pm
---------------------

Fajr:   05:01 am
Sun:    06:15 am
Dhuhur: 12:24 pm
Asr:    03:44 pm
Magrib: 06:24 pm /------
Isha:   07:39 pm \-

Installation

Building From Source

All Platforms (Cargo) (Recommended)

  • Install Rust/Cargo on your system

  • Run cargo install salat_mv

Linux (with the shellscript)

  • Install Rust/Cargo on your system
  • Run git tag -l to get a list of tags
  • Run git checkout [version] to checkout to the latest tag (regular commits are not stable)
  • Run build_for_linux.sh
  • A file link should be available in ./target

All Platforms (manually)

  • Install Git to on your system

  • Install Rust/Cargo on your system

  • Clone this repository with git clone https://github.com/Quicksilver151/SalatMV.git

  • Open the folder inside a terminal

  • Run git tag -l to get a list of tags

  • Run git checkout [version name] to checkout to the latest tag. eg git checkout v0.3.6

  • Run cargo build --release

  • The executable file will be inside /target/release/

Usage

Run salat_mv --help to get the following list of commands:

SalatMV for cli

Usage: salat_mv [option]

Options:
    -h, --help       shows this help section
    -a, --active     keeps the program always running
    -n, --notify     enables notifications when using -a, edits notifications when not using -a (requires 'notify-send' command)
    -e, --edit       edit island index
    -c, --current    indicates the current time
    -t, --title      shows the title bar
    -r, --raw-data   outputs raw data in hours and minutes (incompatible with -A)
    -A, --array      outputs the data in an array (incompatible with -r, -c)
    -m, --minutes    outputs raw data in minutes
    -H, --hour       show time in 24 hour format
    
config contains island index
config is stored in ~/.config/salat_mv/

You can combine multiple flags like salat_mv -cantH (this will run it in always active mode with 24 Hour display while indicating the current time and showing a title bar)

Todo:

version 2.0.0

  • Tui mode

version 1.0.0

  • Notifications via notify-send

  • Add notification editing

  • Notification support for windows & mac

  • Add notification missed message

  • Change edit mode to be more usable

  • More visual feedback for --current flag

  • config storage

Commit count: 120

cargo fmt