prayer-times-id

Menjadwalkan reminder waktu shalat (Indonesia) ke OpenClaw System Event berdasarkan lokasi, lengkap dengan quote harian Islami dan status Ramadan otomatis.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "prayer-times-id" with this command: npx skills add zckyachmd/prayer-times-id

prayer-times-id

Skill ini menjalankan engine Node.js untuk:

  1. mengambil jadwal shalat harian dari AlAdhan API,
  2. menentukan status Ramadan (otomatis/manual),
  3. membuat one-shot cron job OpenClaw untuk setiap waktu shalat yang belum lewat,
  4. mengirim pesan reminder berformat rapi dengan quote harian.

Struktur File

  • engine.js — engine utama penjadwalan reminder.
  • prayer_config.json — konfigurasi lokasi + pengaturan perhitungan.
  • quotes_id.json — kumpulan quote Islami berbahasa Indonesia.

Dependensi

  • Node.js 18+ (disarankan 20+)
  • OpenClaw CLI tersedia di PATH (openclaw)
  • Akses internet ke:
    • https://api.aladhan.com/v1/timings
    • https://api.aladhan.com/v1/gToH

Konfigurasi

Edit prayer_config.json:

{
  "location": {
    "name": "Cimahi",
    "latitude": -6.8722,
    "longitude": 107.5427,
    "expires": "2026-03-02"
  },
  "settings": {
    "auto_ramadan": true,
    "manual_override": null,
    "method": 11,
    "timezone": "Asia/Jakarta"
  },
  "sources": {
    "quotes_enabled": true,
    "current_day_source": "local"
  }
}

Keterangan penting:

  • location.name: label lokasi yang tampil di pesan.
  • latitude / longitude: koordinat lokasi.
  • settings.method: metode kalkulasi AlAdhan.
  • settings.timezone: timezone IANA (contoh Asia/Jakarta).
  • settings.auto_ramadan: deteksi Ramadan otomatis dari tanggal Hijriah.
  • settings.manual_override: true/false untuk override status Ramadan; null untuk otomatis.

Cara Menjalankan

Dari folder skill:

node engine.js --dry-run
  • Tidak menulis cron job, hanya simulasi output JSON.
node engine.js
  • Menambahkan cron one-shot ke OpenClaw untuk waktu shalat hari ini yang belum lewat.

Output

Engine mengeluarkan JSON ringkas, contoh:

  • status: hasil eksekusi
  • dryRun: mode simulasi atau real
  • location, timezone, ramadan
  • registered: jumlah job yang berhasil dijadwalkan
  • jobs[]: detail job per waktu shalat

Keamanan & Kepatuhan

  • Tidak ada hardcoded secret/token/api key.
  • Tidak ada hardcoded private/public IP.
  • Eksekusi CLI memakai execFileSync (tanpa shell command interpolation) untuk meminimalkan risiko command injection.
  • Penjadwalan job memakai openclaw cron add --at ... --system-event ... secara langsung (tanpa nested command / shell-style job string).
  • Input konfigurasi divalidasi (nama lokasi, koordinat, metode).
  • Input user location.name sekarang disanitasi untuk keamanan (hanya alphanumeric, spasi, dan -).
  • Request API dibatasi timeout (AbortSignal.timeout) agar tidak hang.

Catatan Operasional

  • Engine hanya menjadwalkan reminder hari berjalan; jalankan ulang harian (mis. via scheduler induk) untuk generate jadwal hari berikutnya.
  • Engine hanya menggunakan mode modern OpenClaw Cron (--at + --system-event) dan tidak lagi menyediakan fallback legacy berbasis --job 'at ...'.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Windows TTS Notification

Push text notifications to Windows Azure TTS service for audio broadcast via Bluetooth speakers. Perfect for family reminders, alarms, and announcements.

Registry SourceRecently Updated
2370Profile unavailable
General

Let Me Know

Notify the user before starting any long-running task and keep them updated. Use when a task will take noticeable time (>2-3 minutes). Send a start message, schedule a 5‑minute heartbeat update, and send a completion message immediately when done.

Registry SourceRecently Updated
1.9K0Profile unavailable
General

Health Reminder

Health reminder assistant - medication reminders, water intake tracking, activity prompts

Registry SourceRecently Updated
4790Profile unavailable
General

Workday Reminder

工作日下班提醒技能。提供工作日下班时间(默认 17:30)的定时提醒、倒计时查询和提醒管理功能。当用户提到"下班提醒"、"下班倒计时"、"还有多久下班"、"设置下班时间"等相关需求时触发。支持工作日和周末区分提醒。

Registry SourceRecently Updated
1340Profile unavailable