/software-updates-bot

:robot: Be notified about your favorite stuff updates. Runs hourly on a Raspberry Pi. Generates RSS and Atom feeds, MD and JSON reports.

Primary LanguageKotlinMIT LicenseMIT

software-updates-bot

🤖 A bot that looks for popular stuff updates, then push data into this repository as JSON, markdown report, and RSS/Atom feeds. Currently runs on a Raspberry Pi (every hour). See generated reports:

This bot currently monitors updates for:

  • 7+ Taskbar Tweaker
  • Adoptium (previously AdoptOpenJDK): JDK8, 11, 17, 18, 19
  • Golang SDK
  • GPG4Win
  • Gradle
  • Inkscape
  • Intel Graphics, Wi-Fi and Bluetooth drivers for Windows
  • K-Lite Codec Pack Basic
  • Les Cast Codeurs (a great French podcast)
  • MariaDB: 5.5 to 10.9
  • Maven
  • NodeJS: LTS and current
  • PostgreSQL: 9.4 to 14
  • Python: 2 and 3
  • Spring Boot
  • ThrottleStop
  • VeraCrypt
  • Visual C++ Redistributable Runtimes All-in-One
  • VLC

Update checkers code is here: source code. They are based on Jsoup scrapper, or simply by consumming JSON API.
Don't hesitate to submit new checkers.


⚠️ deprecated, the task now runs on a GitHub workflow ⚠️

Scheduled tasks on my RaspberryPi (crontab -u pi -e, /etc/init.d/cron reload):

SHELL=/bin/bash
BASH_ENV="/home/pi/.bashrc"

# run software-updates-bot hourly
0 * * * * eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa_************* && cd ~/projects/software-updates-bot/ && git fetch origin && git reset --hard origin && ./run.sh && pkill -f ssh-agent

# rotate software-updates-bot git log At 00:40 on Monday  https://crontab.guru/#40_0_*_*_1
40 0 * * 1 rm ~/projects/software-updates-bot/logs/git.log.gz && gzip ~/projects/software-updates-bot/logs/git.log && rm ~/projects/software-updates-bot/logs/git.log

Please note that this script is absolutely not optimized at all (especially the ssh part). It works, and I'm fine with that :-D