samedi 27 février 2016

Raspberry pi Python click buttons on a webpage

I usually turn off my wifi if i don't need it (e.g over night).

I have a 433mhz Remote and a 433mhz receiver lying around and want to use them for turning the wifi on/off. If I click the off button on the remote, it sends a signal to the Pi which should trigger the script.

The script must do following things:

  1. Open the Webpage for the Router webinterface
  2. Type in the Username and Password and click login
  3. Go to the Wifi tab and click Wifi off button
  4. Click submit and then log out of the webinterface

Can i do this with a python or bash script, If yes how?

Thanks for your help.

-Luke




Aucun commentaire:

Enregistrer un commentaire