Skip to content

A (simple) script to send a Quote of The Day via SMS using the French mobile operator "Free Mobile" sms notification APi.

License

Notifications You must be signed in to change notification settings

vinylourson/QotdToSms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QotdToSms

Description

<abbr title=”Quote of The Day To Sms”>QotdToSms is either a bash or python script to send a Quote of The Day via SMS using the French mobile operator "Free Mobile" sms notification option.

It means this can only work if you have a suscribed one of the two plans available at http://mobile.free.fr

That being said, if you're one of the greedy french people who chose to use the young and not very mature, but promising, Free Mobile network, then you'll be able to activate the sms notifications through the web console (once authenticated on http://mobile.free.fr).

Once the option is activated, you'll be able to retrieve the credentials on the option page that will be used in the script. These credentials will have you authenticated on Free Mobile servers (basically, the result of using one of the script below will be that you'll get a Quote of The Day on your mobile phone and from your phone number).

Installation

Bash Version (QotdToSms.sh)

This script works on any unix-like system, as long as bash, curl and fortunes are available.

For Debian or derivatives, that would be something like:

sudo apt update && sudo apt install curl fortunes fortunes-fr

then clone the repository or just copy paste the content of the script (QotdToSms.sh) to a new file on your computer and launch it

./QotdToSms.sh or bash QotdToSms.sh

Python Version (QotdToSms.py)

The Python version might be portable to any system that can run Python3 (3.4.x, maybe older versions but not sure).

As for the bash version, the fortunes package and its local variants will be needed too.

Conclusion

Of course, the script can be modified (according to the GPLv3 license) to fit your needs and redistributed, it is up to you and your imagination.

That's all folks!

About

A (simple) script to send a Quote of The Day via SMS using the French mobile operator "Free Mobile" sms notification APi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published