Community discussions

MikroTik App
 
luftdieb
just joined
Topic Author
Posts: 1
Joined: Tue Jan 24, 2023 9:52 pm

CAPsMAN WiFi Power on/off script

Tue Jan 24, 2023 10:50 pm

Hello,
I've own the fantastic RB4011iGS+5HacQ2HnD Routerboard Firmware (7.7) together with a few WiFi AP RBcAPGi-5acD2nD.
I've configured maybe a little bigger setup with
- VLANs,
- several bridges for the VLAN function,
- several WiFi configurations for different SSIDs, 2 and 5Ghz settings and
- automatic provisioning of the WiFi settings by using CAPsMAN.

Everyting works perfect... except one small thing.

Is there a chance to trigger remotely a script, which e.g. do provisioning CAPsMAN like
scriptSwitchOn:
/caps-man/radio/provision numbers=6

scriptSwitchOff:
/caps-man interface remove "MikroTik KG-1"

Both scripts exists already and do their job as expected for manual operation. But I need a solution to perform such actions from outside.
This remote instance is e.g. my HomeAssistant instance, which turn on WiFi only if PIR detect movement and turn off 2h later after last movement detected ?
I know, I can connect by SSH and could execute such tasks... But for this I do have some security concerns. And I don't find any possibility to create a new user which is just allowed performing this both scripts.

Any idea would be most welcome ;-)

Thanks

Who is online

Users browsing this forum: diamuxin, rextended and 28 guests