Getting email notification when update is available


I am not using OSMC every day so it happens that when I need it, I find the update notification and have to wait for update completion.
Is it possibile to set an email notification to be sent from OSMC when an update is available?

That happens already if you have choosen to get the newsletter on install.

Yes, I get the newsletter, but often this is an anticipation.
I mean, I would like to know when “my” OSMC is ready to update.

When you get an email telling you an update is ready, it is indeed ready.

It’s not possible to offer email notifications on a per-device basis however; as this would be very expensive (in terms of hosting infrastructure).


1 Like


thank you for your answer.
Ok, I will live with the newsletter notification. Anyway, I was not asking OSMC to send me an email, but if there is a way to detect an available update directly into my RasPi, and activate an email send.


You can do this if you set up SMTP.

That’s exactly what I was looking for. Suppose I setup SMTP, where do I get the trigger to send the email?

You would need to write an APT post-hook and set up automatic checking. This may not be trivial…

You can also just use a cron job that does something like:

apt-get update
apt-get -s -y dist-upgrade | grep -q "vero-mediacenter-osmc"
if [ "$?" = "0" ] ; then
    # do stuff that sends e-mail

This only checks for the OSMC version of Kodi being updated, but that’s a good indicator that an OSMC update has been rolled out.

The best indicator would be the ‘base-files-osmc’ package as that is always bumped with an update.

Good to know.

How about this:

osmc@osmc-pi3:~$ sudo apt-get -s install base-files-osmc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
base-files-osmc is already the newest version (2.5.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

If you’re up to date, you’ll see base-files-osmc is already the newest version.

Thank you very much, to all of you.