This is a PlayStation Network (PSN) Monitoring Service that:
- Fetches live PSN outage data from the PlayStation API
- Detects service disruptions and affected devices
- Sends email alerts using SMTP when an outage is detected
- Runs as a background systemd service on Linux
- Stores logs for debugging and analysis
git clone https://github.com/sachdev27/psn-monitor.git
cd psn-monitorchmod +x setup_and_run.sh
./setup_and_run.shThis script will:
- Create a Python Virtual Environment (
venv/) - Install dependencies from
requirements.txt - Setup and start the PSN monitoring service
Edit the config.json file to update email credentials and API settings:
{
"psn_api_url": "https://status.playstation.com/data/statuses/region/SCEE.json",
"smtp_server": "smtp.gmail.com",
"smtp_port": 587,
"email_sender": "[email protected]",
"email_password": "your_app_password",
"email_receiver": "[email protected]",
"retry_delay": 10,
"max_retries": 5,
"check_interval": 3600
}๐น email_password โ Use a Google App Password ๐น check_interval โ Set time interval (in seconds) for checking PSN status
This project runs as a systemd service on Linux.
sudo systemctl status psn_monitorsudo systemctl restart psn_monitorsudo systemctl stop psn_monitorsudo systemctl enable psn_monitor- Sends beautiful HTML email notifications when a PSN outage occurs.
- Uses a dark-themed PlayStation OG design.
- Includes affected regions, devices, and downtime details.
โ
Example Email Alert:
Email Screenshot 
All logs are stored in psn_monitor.log.
tail -f psn_monitor.log2025-02-08 12:00:00 INFO โ
Logging enabled: Writing to both file & console.
2025-02-08 12:01:10 WARNING ๐จ PSN Outage Detected! Sending email alert...
2025-02-08 12:02:00 INFO โ
Email sent successfully.
Contributions are welcome! To contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit changes (
git commit -m "Added new feature") - Push to GitHub (
git push origin feature-branch) - Open a Pull Request
This project is open-source and licensed under the MIT License.
If you find this project useful, star โญ the repo and spread the word! Have questions? Open an issue or reach out.