|
Post by xtr4nge on Jul 2, 2016 9:29:21 GMT
Automaton A tool for automatizing FruityWiFi. Author: xtr4nge [_AT_] gmail.com - @xtr4nge [OPTIONS] OnStart: This script is executed when automata is started. OnStop: This script is executed when automata is stopped. OnBoot: This script is executed on boot time when OnBoot is enabled. [COMMANDS] START: Start a module. (example: START ap) STOP: Stop a module. (example: STOP ap) SET: Set up an option using FruityWiFi api. (example: /config/core/hostapd_ssid/WiFi). All options can be obtained from _info_.php file on each module. SLEEP: Suspends the execution for a specified time (in seconds). (example: SLEEP 1) EXEC: Executes an OS command as root (Be Careful!). Note: This options is disabled by default. It needs to be enabled on the client script. [ client/fruitywifi_client.py : os_command = True ] Example: SET /config/core/ap_mode/1 SET /config/core/io_in_iface/wlan0 SET /config/core/io_out_iface/eth0 SET /config/core/hostapd_secure/0 SET /config/core/hostapd_ssid/WiFi SLEEP 1 START ap
|
|
ag3nt
New Member
Posts: 3
|
Post by ag3nt on Aug 31, 2016 21:32:49 GMT
Is there a list of supported commands some where? For example, what if I want to change the channel and hw_mode?
|
|
|
Post by xtr4nge on Sept 2, 2016 7:24:13 GMT
Hi ag3nt, glad to see that you are playing with Automaton module. I really like this module, it saves me a lot of time when I need to setup and run different combination of modules.
For the moment channel and hw_mode cannot be changed using the API or the web-interface. I'm planning to add those options (and more) into the next core release.
In the meantime you can change those options manually on the config files: (hostapd, hostapd-mana, and/or hostapd-karma)
Hostapd
/usr/share/fruitywifi/conf/hostapd.conf
Hostapd-Mana
/usr/share/fruitywifi/www/modules/mana/includes/conf/hostapd.conf
Hostapd-Karma
/usr/share/fruitywifi/www/modules/karma/includes/conf/hostapd.conf
regards,
|
|