Community discussions

MikroTik App
 
FRANKMUNOZAPURE
just joined
Topic Author
Posts: 23
Joined: Thu May 23, 2024 11:57 am

Help with hotspot

Mon Mar 10, 2025 4:21 pm

Friends, I need your help to complete my script.
I need you to calculate the "start date" and the "star time" from the "limit uptime" in the hotspot.
I leave you my script.

:local comment "IN USE"
:local userprofile [ip hotspot user get [find where name="$user"] profile]

:if ([/ip hotspot user get $user comment]="") do={[/ip hotspot user set $user comment=$comment]}

[/system scheduler 
add comment= "$userprofile" name=$user on-event="/ip hotspot user disable \"$user\" \r\
  \n/ip hotspot active remove [find user=\"$user\"]\r\
  \n/system scheduler remove [find where name=\"$user\"] \r\
  \n\r\
" interval= [/ip hotspot user profile get [find where name="$userprofile"] session-timeout]]

I appreciate your help.
 
FRANKMUNOZAPURE
just joined
Topic Author
Posts: 23
Joined: Thu May 23, 2024 11:57 am

Re: Help with hotspot

Wed Mar 26, 2025 11:29 pm

Friend Rex, can you do something for me? I would be very grateful.