Go to file
alper 367a1c428e Implement Monitor API v1.1 changes
BREAKING CHANGES:
- IP endpoint changed: ip-pool -> servers&for_monitor=1
- BurnVote: removed 'reason' field, 'monitor_id' extracted from token
- Evidence format updated with checked_at ISO timestamp

NEW FEATURES:
- Heartbeat endpoint (POST gateway-sync&action=heartbeat)
- Rate limiting with retry logic (429 handling)
- 60-second heartbeat timer in main process

DEPRECATED:
- register() method - token now created via admin panel

Files changed:
- src/shared/types.ts - Updated PanelIpInfo, BurnVote, added HeartbeatStats
- src/main/services/PanelService.ts - Full API v1.1 implementation
- src/main/index.ts - Heartbeat timer, checks counter
- src/main/preload.ts - panelHeartbeat IPC
- src/renderer/types/electron.d.ts - Updated types
2025-12-01 01:30:00 +03:00
build-output Implement Monitor API v1.1 changes 2025-12-01 01:30:00 +03:00
src Implement Monitor API v1.1 changes 2025-12-01 01:30:00 +03:00
.gitignore Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
README.md Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
electron-builder.json Add persistent storage with portable mode support 2025-12-01 00:55:43 +03:00
index.html Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
package-lock.json Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
package.json Fix ES module error - use CommonJS for main process 2025-12-01 00:58:42 +03:00
postcss.config.js Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
tailwind.config.js Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
tsconfig.json Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
tsconfig.main.json Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00
vite.config.ts Initial commit: IP Monitor - Modern Windows Desktop Application 2025-12-01 00:44:04 +03:00

README.md

IP Monitor

Modern Windows masaüstü uygulaması - IP izleme, m3u8 kanal kontrolü ve bildirim sistemi.

Özellikler

🌐 IP Bilgileri

  • Public IP adresinizi otomatik tespit
  • Ülke, şehir ve ISP bilgilerini görüntüleme
  • ip-api.com ve ipify.org API entegrasyonu

📺 M3U8 Kanal Yönetimi

  • M3U8/M3U playlist URL'lerini içe aktarma
  • Kanal listesi görüntüleme ve gruplandırma
  • İzlemek istediğiniz kanalları seçme
  • Kanal logolarını ve metadata'sını gösterme

📊 Canlı İzleme

  • Seçili kanalların ping ve stream kontrolü
  • HTTP durum kodları takibi (404, 502, vb.)
  • Bağlantı hataları tespiti (ERR_CONNRESET, ECONNREFUSED)
  • Gerçek zamanlı durum güncellemeleri
  • Gecikme (latency) ölçümü

🔔 Bildirim Sistemi

  • Windows Toast: Yerel Windows bildirimleri
  • Telegram Bot: Telegram üzerinden anlık bildirim
  • Email (SMTP): E-posta ile hata raporları
  • Otomatik veya manuel bildirim seçeneği
  • Özelleştirilebilir bildirim kuralları

🔧 Panel Entegrasyonu

  • MONITOR_API_GUIDE uyumlu API entegrasyonu
  • IP listesi çekme (REST/SSE)
  • Burn vote gönderme
  • Health check raporlama

Kurulum

# Bağımlılıkları yükle
npm install

# Geliştirme modunda çalıştır
npm run dev

# Production build
npm run build

# Electron uygulaması oluştur
npm run build:electron

Gereksinimler

  • Node.js 18+
  • npm veya yarn
  • Windows 10/11 (64-bit)

Teknoloji Stack

  • Electron 28 - Desktop framework
  • React 18 - UI library
  • TypeScript - Type safety
  • Tailwind CSS - Styling
  • Framer Motion - Animations
  • Zustand - State management
  • Axios - HTTP client
  • electron-store - Settings persistence

Konfigürasyon

Telegram Bildirimleri

  1. @BotFather ile yeni bot oluşturun
  2. Bot token'ı alın
  3. Chat ID'nizi @userinfobot ile öğrenin
  4. Ayarlar sayfasından bilgileri girin

Email Bildirimleri

  1. SMTP sunucu bilgilerini girin (Gmail, Outlook, vb.)
  2. Gmail için App Password kullanmanız gerekebilir
  3. Test butonuyla bağlantıyı kontrol edin

Panel API

  1. Panel URL'sini girin
  2. Monitor ID tanımlayın
  3. Auth token'ı girin (panel'den alınır)

Lisans

MIT