You probably need to install:
libubox-lua
curl
If it isn't there already, this goes in your Scheduled Tasks:
*/5 * * * * /bin/ubus send 5m_tick
This goes in your startup:
/path/to/auto.lua/new_station_events.sh&
LUA_PATH='/path/to/auto.lua/?.lua' lua /path/to/auto.lua/auto.lua &