Skip to content

Checks the T-Mobile Samsung Galaxy S8 Software Update page for new updates.

Notifications You must be signed in to change notification settings

thisaaronm/t-mobile_s8_updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

t-mobile_s8_updates

Description

Got tired of checking my wife's phone every night for software updates, so I wrote this to do it for me.

The last software update the T-Mobile S8 received was on December 7, 2018. This will check the T-Mobile software update page for the section that references that date - it is a single, ginormous string containing all the updates. When a new update arrives, they appear to update that section in a timely manner.

The config.py contains that section, which hasn't changed since December 7. s8_update.py will pull that section from the live site, compare it against the config.versions var (the aforementioned block), and if there's a change, it'll send an email. If not, then it'll just check again the next time it runs. If using cron, I recommend the following, hourly check (with redirection to log):

0 * * * * /path/to/t-mobile_s8_updates/s8_updates.py >> /path/to/t-mobile_s8_updates/s8_updates.log

This way, you have a log showing last run time and message, just in case for some reason the emails don't get fired off.

How To

The 'config.py' file has, among other things that don't need to be changed, the following:

smtp_srv    = 'CHANGEME_SMTP-SERVER'
passwd      = 'CHANGEME_APPLICATION-SPECIFICPASSWORD'
from_name   = 'CHANGEME_YOUR-NAME'
from_email  = 'CHANGEME_YOUR-EMAIL-ADDRESS'
to_email    = 'CHANGEME_RECIPIENT-EMAIL-ADDRESS'
subject     = 'CHANGEME_SUBJECT'
body        = 'CHANGEME_BODY'
...

Go ahead and change everything as necessary. Below are some common servers and instructions.


DO NOT USE YOUR ACTUAL PASSWORD!!!

GENERATE AN APPLICATION SPECIFIC PASSWORD!!!


SMTP Servers:
Gmail : smtp.gmail.com
Apple : smtp.mail.me.com
Microsoft : smtp-mail.outlook.com
Yahoo : smtp.mail.yahoo.com

Application Specific Passwords:
Gmail : https://security.google.com/settings/security/apppasswords
Apple : https://support.apple.com/en-us/HT204397
Microsoft : https://support.microsoft.com/en-us/help/12409/microsoft-account-app-passwords-two-step-verification
Yahoo : https://help.yahoo.com/kb/SLN15241.html (or switch to one of the above mail providers instead) =P

Questions?

Feel free to contact me if you have questions. This was obviously done just for fun because I'm lazy, so I won't be putting that much more work into this than what I've already done. I did just update it to check after the December 7, 2018 update. But if there's something obvious that needs to be addressed, I'll possibly look into it.

And yes, I'm sure there are better ways to do this. Feel free to do it those ways if you want. =P

About

Checks the T-Mobile Samsung Galaxy S8 Software Update page for new updates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages