Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.18 KB

dynstatus

Dynstatus tries to pinpoint your location based on your network configuration (WLAN, IP, ...) and enables you to run code to react to changes.

Setup

You have to copy example_config.py to $XDG_CONFIG_HOME/dynstatus/config.py. Usually this will mean ~/.config/dynstatus/config.py. Afterwards you should modify the configuration to your needs. Make sure that plugins_path is configured correctly. The configuration should be self-explaining.

Operation Modes

You can use dynstatus in three different ways

Just execute it

Dynstatus will detect your location and run your plugins once. You could use this mode in the hooks of your network management tool to react to changes in your network configuration.

user@linux$ dynstatus

Run it as a daemon

Dynstatus will fork to background and detect your location and run your plugins periodically. The interval is configured in the config.py of dynstatus.

user@linux$ dynstatus --daemon

Get current status information

Dynstatus can give you status information without running the plugins. You can ask for every location setting of your config.py.

user@linux$ dynstatus --get ssid