Marcus Fenix
Innovator
@Marcus Fenix Now that we've got the script working and its time to try on OpenWrt. I'm not exactly sure about the steps to go but with my little knowledge think as follows..
1. Install python-full on OpenWrt
2. Install Mechanize
3. Copy the Tikona.py script to root or /usr/bin (not sure) folder of the router
4. Add the script path to crontab to make it executable after boot process.
Please check the steps and correct me If I'm wrong.
PS: Got one doubt, does it have to be python-full or light and basic versions will work?.
Thank you
I think if you have the spare space you can go ahead with point 1 and if point 2 is okay(i.e. Mechanize is installed properly)
you can go ahead with the point 3./usr/bin should be okay.
Just give all permissions to everybody on the .py file to avoid any issues.
chmod 777 /usr/bin/Tikona.py
As to point 3 I guess the boot process cron job will execute the script.But this will be a one time affair and if you are logged out after say 10-12 hrs you will have to reboot the router to login again(or do it manually via browser).
I would suggest creating a small shell script which loops to check internet connectivity via pinging google.
In case google cannot be pinged the login python script is triggered.