oswalpalash / Lazy-Cyberoam

Command Line and Python Script for Starting Hotspot and Logging into Cyberoam User Portal
MIT License
0 stars 2 forks source link

Add Time Based Logging In System #6

Open oswalpalash opened 7 years ago

oswalpalash commented 7 years ago

Presently the system logs in irrespective of time. We need to add a feature where it loads python time module and turns on the hotspot and logs in only for the particular time interval.

Say a hotspot for 30 minutes? #TODO Example Use case

pathunstrom commented 7 years ago

Just confirming I understand what's being done before I start poking at this:

You just need to send a login request to an external hot spot to activate it, then shut it down with the shutdown request? (I don't have a Cyberoam appliance to test against, so I need to understand the service dependency I need to mock.)

oswalpalash commented 7 years ago

@pathunstrom So we need to login and logout at particular time. And keep the connection alive till the logout is executed.

Anmol-Sharma commented 7 years ago

can i try this?

oswalpalash commented 7 years ago

@Anmol-Sharma sure