How ko3ak81/currencywatcher works
CurrencyWatcher monitors configured ILS/THB rates, logs each successful reading, compares it with alert thresholds, and dispatches notifications. The principal workflow starts immediately and repeats on a configured interval; the optional Express server also exposes configuration, log, and manual-check routes. Rate-history analysis is a separate capability. The sampled source shows the monitoring and server wiring; notification destinations and scraping are documented, while the static page’s behavior is not established by the excerpts.
Main entry points: app.js Rate fetch and retry · server.js Express routes · exchange_rate_log.csv Rate history · config.json Rate configuration
Components 18
Rate monitoring
- Monitoring scheduler
app.js - Rate fetch and retry
app.js - Rate configuration
config.json - Threshold check
app.js
Web controls
- Static page
public/index.html - Express routes
server.js
Alerts and history
- CSV logger
app.js - Rate history
exchange_rate_log.csv - Trend analysis
app.js - Channel dispatch
app.js - Pushover sender
app.js - Email sender
app.js - Slack sender
app.js
Other components
- Google Finance
- Pushover API
- Email service
- Slack API
- Web user
Connections 19
- Monitoring scheduler → Rate fetch and retry: starts and schedules
app.js - Rate fetch and retry → Rate configuration: reads settings
app.js - Rate fetch and retry → Google Finance: scrapes rate
README.md - Rate fetch and retry → Threshold check: checks rate
app.js - Rate fetch and retry → CSV logger: logs rate
app.js - CSV logger → Rate history: appends readings
app.js - Trend analysis → Rate history: reads history
app.js - Threshold check → Channel dispatch: dispatches alerts
app.js - Channel dispatch → Pushover sender: selects channel
app.js - Channel dispatch → Email sender: selects channel
app.js - Channel dispatch → Slack sender: selects channel
app.js - Pushover sender → Pushover API: posts notification
app.js - Email sender → Email service: sends email
app.js - Slack sender → Slack API: posts message
app.js - Web user → Express routes: uses routes
- Express routes → Static page: serves files
server.js - Express routes → Rate configuration: reads and writes
server.js - Express routes → Rate history: reads logs
server.js - Express routes → Rate fetch and retry: triggers check
server.js