Community discussions

MikroTik App

Search found 10 matches

by tvermoes
Mon Jul 29, 2013 12:55 pm
Forum: Scripting
Topic: Hotspot Send Email on Trial User login.
Replies: 8
Views: 12719

Re: Hotspot Send Email on Trial User login.

Hi Samir Sorry to say that i dont got a script for that, but it should be pretty easy to put together. a function in php i use elsewhere for generating usernames and passwords : function generate_random_string($name_length = 8) { $alpha_numeric = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz...
by tvermoes
Fri Jul 26, 2013 6:17 pm
Forum: Scripting
Topic: Hotspot Send Email on Trial User login.
Replies: 8
Views: 12719

Re: Hotspot Send Email on Trial User login.

If you create users by script running on the router, where do you get their email addresses from ?
I would use a php script for generating users, and sending them login/pass.
by tvermoes
Thu Jul 25, 2013 7:36 pm
Forum: Scripting
Topic: Hotspot Send Email on Trial User login.
Replies: 8
Views: 12719

Re: Hotspot Send Email on Trial User login.

The easy way :-)

Allow signup in user-manager, and create new users via signup page :-)
by tvermoes
Mon Jul 15, 2013 7:12 am
Forum: Scripting
Topic: Script to change login background .jpg daily
Replies: 11
Views: 5306

Re: Script to change login background .jpg daily

Try using javascript on the page you wish to change background on. You can easily modify this to your needs : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml&q...
by tvermoes
Tue Jul 09, 2013 7:41 pm
Forum: Scripting
Topic: Hotspot Send Email on Trial User login.
Replies: 8
Views: 12719

Re: Hotspot Send Email on Trial User login.

Have made some changes : 1.Only Write to log when TrialUser First logon : ON LOGON : :local freeuser :set freeuser "$user" :local freeuserno [/ip hotspot active find where user=$freeuser]; :local freeip [/ip hotspot active get $freeuserno address]; :log info ($freeuser." TRIAL Login o...
by tvermoes
Thu Jul 04, 2013 10:12 pm
Forum: Scripting
Topic: Hotspot Email Trial User Data
Replies: 2
Views: 1792

Hotspot Email Trial User Data

This script will make and Email a CSV-list of Trial Users and their usage. !!!!!!!!!! : Make sure that Email from the router is working. :local emailaddress "YOURMAIL@YOURDOMAIN.COM" :local date [/system clock get date] :local emailsubject :local emailbody :local freeusers :local trialuser...
by tvermoes
Thu Jul 04, 2013 9:23 pm
Forum: Scripting
Topic: Hotspot Send Email on Trial User login.
Replies: 8
Views: 12719

Hotspot Send Email on Trial User login.

Wanted to get an Email when a new trial account logs in. We only wanted Trial users to be able to login once (no reset). Trial users is deleted when router reboots....WE DONT WANT THAT. OBS : You need to get email sending working on your router before doing this. Tested on ROS 6.1 Here is what i cam...
by tvermoes
Wed Mar 20, 2013 12:03 am
Forum: The User Manager
Topic: API/CLI User details : HOWTO get uptime-used
Replies: 5
Views: 4162

Re: API/CLI User details : HOWTO get uptime-used

SOLVED:
when uptime-used is 0 it is not returned by the router/userman.

Tried to use some time on one of the test accounts, and that solved the problem.
by tvermoes
Tue Mar 19, 2013 7:07 am
Forum: The User Manager
Topic: API/CLI User details : HOWTO get uptime-used
Replies: 5
Views: 4162

Re: API/CLI User details : HOWTO get uptime-used

THX Samir. tried : tool user-manager user print value-list On hotspot it works fine, but i use usermanager to manage my users. tried allso : tool user-manager user find (followed by TAB) and there i see all the parameters i need to output, but not the values. I was wondering if these parameters don'...
by tvermoes
Tue Mar 19, 2013 2:24 am
Forum: The User Manager
Topic: API/CLI User details : HOWTO get uptime-used
Replies: 5
Views: 4162

API/CLI User details : HOWTO get uptime-used

Have spent hours of reading with no success....
I need to get the value of uptime-used via cli/api.

Can anyone please give an example.