Community discussions

MikroTik App
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Voucher print for Android / Windows - free Demo version available

Fri Jun 01, 2012 11:34 am

Updated on 30/05/2014

Published a Demo versión of HotSpot Manager for Android. All the features of the paid version are available in this demo version. The only limitation is that the ticket will not include the password of the generated user.

You can download the demo version at https://play.google.com/store/apps/deta ... tspot.demo

Updated on 16/12/2013

Update Windows CLI app to solve errors on RouterOS 6.3 or higher

Updated on 10/09/2013

Update Android app to prevent a printing error with RouterOS 6.3

***********************

Now you can test an Windows CLI (command line interface) executable that can generate random user/password for Mikrotik hotspots. It's attached to this post as HotSpotCli.rar. It uses an esc/pos printer installed on the Windows PC so you don't need a network thermal printer.

Run it as:

hotspotcli.exe [um profile]

And it will connect to the User Manager, generate an username and password and then print a voucher. Run it without parameters to view the syntax and a list of available printer names.

To set it up edit the settings.properties file and set your deployment values:

router_address=[router ip address]
router_port=[api service port]
router_user=[api username]
router_pass=[api user password]
userman_customer=[user manager profile]
userman_prefix=[generated hotspot username prefix]
userman_name_length=[random username length]
userman_pass_length=[random password length]
qr_address=[bidi values]
qr_redir=[bidi values] check HotSpot Manager for Android docs for bidi/qrcode functionality info.
printer=[name of printer or empty for default system printer]

And edit the ticket.txt file to setup the voucher format. For the ticket grammar check the HotSpot Manager for Android docs attached to this post.

Requires Java Runtime 1.6 or higher installed.

Original Message
Hi,

We've recently published an app to manage a small hotspot deployment from an Android device. The app connects to User Manager through API and generates a random user/password with the selected credit(v4.17)/profile(v5.12+) then prints a ticket through a ESC/POS network ticket printer.

The app main screen shows a button for each credit/profile configured, and when clicked it creates a new user with that credit/profile and prints a ticket.

We are currently working on it to improve it's funtionality and we hope to add new features to the app.

At the moment it supports:

RouterOS/User Manager versions 4.17, 5.12 or higher
ESC/POS network ticket printer (ethernet or wireless)
Configurable printer ticket output
Multiple credits/profiles
On 4.17 the button takes the credit's comment value as text, on 5.12+ it takes name-for-user's value.
Configurable username prefix
Configurable random username length
Configurable random password length

You can find more info on Google Play: https://play.google.com/store/apps/deta ... el.hotspot

There you can find some screenshots and a demo video that shows it working with a Samsung Galaxy S2 as android device, a RB751G as ap/hotspot/user manager and a Sewoo LK-T210 ticket printer.

If you need any other info you can find it at http://www.infinitel.es/hotspot_en.html. Just contact us if you need more detailed information.

Update 10/09/2013
1.6.1
- Fixes printing error on RouterOS 6.3

Update 28/05/2013
1.6
- Added the ${time} tag to be used in the ticket template. Prints the current time and date.

Update 22/05/2013
1.5.1
- Now supports RouterOS 6.0
1.5
- Added option to register a list of predefied usernames that can be reused. A selectable droplist will appear on the main screen and you can choose AUTO to generate a random user or a predefined user name to delete the current user with the same name and create a new one with the same name and the selected profile.

Update 02/Aug/2012
Version 1.4 changelog:

- Added option to generate usernames randomly or sequentially
- Solved error with Mikrotik RouterOS with beta/rc version numbers

Version 1.3 changelog:

- App name/Icon/Logo changed to a more neutral/no mark look
- Added an option to customize the main screen's logo
- The settings screen can be password protected
You do not have the required permissions to view the files attached to this post.
Last edited by pribasv on Mon Feb 23, 2015 10:42 am, edited 18 times in total.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Tue Jun 05, 2012 7:55 pm

We've just published a new update with new features:

1.2
Rebuilt printer libraries
- Added formating tags: bold, underlined, double tall, double wide, alignment left,center or right.
- Added logo printing support.
- Added QRCode printing support.
- Added paper cut support.
User manual available at product's page.

1.1
Added support for Mikrotik User Manager 4.17.
Better handling of connection errors.

1.0
Initial Release.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26368
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Ticket/Voucher print from Android for User Manager

Wed Jun 06, 2012 10:29 am

Wow this is really nice!
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Wed Jun 06, 2012 6:19 pm

I've attached the user's manual to the first post.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Wed Jun 13, 2012 6:58 pm

New version 1.3 changelog:

- App name/Icon/Logo changed to a more neutral/no mark look
- Added an option to customize the main screen's logo
- The settings screen can be password protected
 
Buchar
just joined
Posts: 1
Joined: Thu Jun 01, 2006 8:41 am

Re: Ticket/Voucher print from Android for User Manager

Sun Jun 24, 2012 8:12 pm

Hello, I have a problem of settings. I set the following items: IP Address, port API, Username, Password. The Mikrotik is set. All properly. Andorid applications writes: Unable to open connection to Mikrotik User Manager. Please have any idea what could be a problem. Thanks for any feedback.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Mon Jun 25, 2012 9:20 pm

Hi, if you could please give me more detailed information of your deployment I'll try to help you. If you post an attachment of your Mikrotik settings and the settings applied to the app I will try to reproduce your installation in order to find the problem.
 
justfishing
just joined
Posts: 23
Joined: Thu Jan 12, 2012 4:40 am

Re: Ticket/Voucher print from Android for User Manager

Mon Jun 25, 2012 10:10 pm

I agree with Normis, that does look nice!! Now I want to set my own little hotpot just to play with the Android interface :)

Sent from my DROIDX using Tapatalk 2
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Thu Aug 02, 2012 6:34 pm

Update 02/Aug/2012
Version 1.4 changelog:

- Added option to generate usernames randomly or sequentially
- Solved error with Mikrotik RouterOS with beta/rc version numbers
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Wed Nov 07, 2012 8:21 pm

Update 07/Nov/2012
1.5
- Added option to register a list of predefied usernames that can be reused. A selectable droplist will appear on the main screen and you can choose AUTO to generate a random user or a predefined user name to delete the current user with the same name and create a new one with the same name and the selected profile.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Ticket/Voucher print from Android for User Manager

Thu Apr 11, 2013 7:06 am

Wow good job pribasv. Nice.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Ticket/Voucher print from Android for User Manager

Thu Apr 11, 2013 7:13 am

How about supported Android devices? How about without usermanager?
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Ticket/Voucher print from Android for User Manager

Thu Apr 11, 2013 7:20 am

I`m sorry I have one more question how about your API application on Windows PC?
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Fri Apr 26, 2013 5:04 pm

How about supported Android devices? How about without usermanager?
1. Any android device with version 2.2 or above should work.
2. It's designed to interact with User Manager through the API service. So it will only work with User Manager.
I`m sorry I have one more question how about your API application on Windows PC?
We already have a command line aplication with most of the features of the android version. We are currently using it to provide hotspot voucher printing from within POS software or desktop shortcuts on a Windows system.
It prints a voucher for an user manager profile specified as a parameter.

Just like executing: HotSpotCli.exe 1hour

That would generate a tiquet for a random username/password using a profile called 1hour.

The main functional difference is that it does not need a network pos printer. It uses the default system printer, that can be any kind of pos printer (usb, lpt, serial or network)
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Ticket/Voucher print from Android for User Manager

Thu May 02, 2013 3:57 pm

Thanks for your update. Good luck
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Wed May 22, 2013 11:46 pm

Version 1.5.1

Now works with RouterOS 6.0
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Ticket/Voucher print from Android for User Manager

Tue May 28, 2013 2:00 pm

Small change added in version 1.6. Now you can add the tag ${time} to your ticket to print the current time and date.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Fri Jun 07, 2013 2:00 pm

Now you can test an Windows CLI (command line interface) executable that can generate random user/password for Mikrotik hotspots. It's attached to the first post as HotSpotCli.rar. It uses an esc/pos printer installed on the Windows PC so you don't need a network thermal printer.

Run it as:

hotspotcli.exe [um profile]

And it will connect to the User Manager, generate an username and password and then print a voucher. Run it without parameters to view the syntax and a list of available printer names.

To set it up edit the settings.properties file and set your deployment values:

router_address=[router ip address]
router_port=[api service port]
router_user=[api username]
router_pass=[api user password]
userman_customer=[user manager profile]
userman_prefix=[generated hotspot username prefix]
userman_name_length=[random username length]
userman_pass_length=[random password length]
qr_address=[bidi values]
qr_redir=[bidi values] check HotSpot Manager for Android docs for bidi/qrcode functionality info.
printer=[name of printer or empty for default system printer]

And edit the ticket.txt file to setup the voucher format. For the ticket grammar check the HotSpot Manager for Android docs attached to the first post.

Requires Java Runtime 1.6 or higher installed.
 
gazzamit
just joined
Posts: 21
Joined: Tue Jul 02, 2013 11:50 am

Re: Voucher print for Android for UM (new Windows CLI availa

Sat Jul 06, 2013 2:51 pm

Hi, interested in trying the windows cli but just updated my deployments to use 6.1. Do you plan an update? Gary.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Thu Jul 11, 2013 9:55 am

Hi, interested in trying the windows cli but just updated my deployments to use 6.1. Do you plan an update? Gary.
It should work properly with RouterOS 6.x.
 
gazzamit
just joined
Posts: 21
Joined: Tue Jul 02, 2013 11:50 am

Re: Voucher print for Android for UM (new Windows CLI availa

Fri Jul 12, 2013 7:22 pm

In 6.1 it seems to run throught the process but does not create a user in UM and does not give error. No ticket is produced and the page is blank. Not tried with any other OS version.

Loading configuration ¾ n
Opening connection to 192.168.88.1 ¾ n
Loading profile
generating user
User created HBrXd6/Request license for CDVX-F99D
generating ticket
Getting Printer: CutePDF Writer
printing ticket
End of process
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Mon Jul 15, 2013 11:27 am

In 6.1 it seems to run throught the process but does not create a user in UM and does not give error. No ticket is produced and the page is blank. Not tried with any other OS version.

Loading configuration ¾ n
Opening connection to 192.168.88.1 ¾ n
Loading profile
generating user
User created HBrXd6/Request license for CDVX-F99D
generating ticket
Getting Printer: CutePDF Writer
printing ticket
End of process
Hi Gazzamit, before answering the first post I tested it on a RouterOS 6.1 and worked without problems. If it arrives to the "End of process" line it's sure it has created the HBtXd6 user.

Check the settings.properties file and all it's settings. Is the customer property properly assigned? Maybe the user has been assigned to another customer.

Try on routeros terminal
/tool user-manager user print
to check where is the newly created user.

About the printer output I can not imagine what kind of printing will result when sending ESC/POS code to a PDF printer so it is factible that you get an empty page. The application will only work with ESC/POS compatible printers (we always use point of sale thermal printers). Also check the contents of the ticket.txt file, if empty it won't generate any output.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Sep 10, 2013 3:15 pm

HotSpot Manager for Android updated to version 1.6.1

Fixes error with printing with RouterOS 6.3
 
ehsan6830
just joined
Posts: 14
Joined: Fri Nov 29, 2013 9:20 pm

Re: Voucher print for Android for UM (new Windows CLI availa

Thu Dec 12, 2013 9:11 am

Thats very nice...

I have test that but get error...
in command Prompt get:
HotSpotCli.exe Admin-Ultimate

Cargando configuraci≤n
Abriendo conexi≤n con XXX.XXX.XXX.XXX
Cargando perfil
Generando usuario
Failed to create user!
when i see in usermanager the user create!!!
/tool user-manager user print
and user created...

i use PDF Printer for my printer...
It can error for my printer?

sorry my english bad...
why failed to create user???
i'm not pro in mikrotik API.Help me...
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Sat Dec 14, 2013 2:40 pm

Thats very nice...

I have test that but get error...
in command Prompt get:
HotSpotCli.exe Admin-Ultimate

Cargando configuraci≤n
Abriendo conexi≤n con XXX.XXX.XXX.XXX
Cargando perfil
Generando usuario
Failed to create user!
when i see in usermanager the user create!!!
/tool user-manager user print
and user created...

i use PDF Printer for my printer...
It can error for my printer?

sorry my english bad...
why failed to create user???
i'm not pro in mikrotik API.Help me...
Could you please give me more details. RouterOS version, User Manager settings, ...
 
ehsan6830
just joined
Posts: 14
Joined: Fri Nov 29, 2013 9:20 pm

Re: Voucher print for Android for UM (new Windows CLI availa

Sun Dec 15, 2013 2:24 pm

Could you please give me more details. RouterOS version, User Manager settings, ...
My Router is RB951-2n and OS Version is 6.7 and my router config is:
Untitled.png
Untitled3.png
Untitled4.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Mon Dec 16, 2013 10:25 am

Could you please give me more details. RouterOS version, User Manager settings, ...
My Router is RB951-2n and OS Version is 6.7 and my router config is:
...
The file available on the forum was not updated to last version of HotSpotCli 1.3 which solved the same error that was fixed on the Android app version 1.6.1. This issue prevented that the profile could not be assigned to the newly created user in versions of RouterOS 6.3 or higher.

I've updated the file in the first post of this thread to the last available version.

Sorry about the inconvenience.
 
dxdnet
just joined
Posts: 5
Joined: Mon Jan 13, 2014 10:30 am

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 3:55 am

You can give it a trial version of Android? We here do not open this online payment
 
dxdnet
just joined
Posts: 5
Joined: Mon Jan 13, 2014 10:30 am

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 9:09 am

pribasv ,HI, I was ROS6.7 version, users can create, but it does not print out, using a PDF printer...

And there is the same situation ehsan6830
http://forum.mikrotik.com/download/file ... w&id=15550
You do not have the required permissions to view the files attached to this post.
 
dxdnet
just joined
Posts: 5
Joined: Mon Jan 13, 2014 10:30 am

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 9:10 am

why```````````````````````
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 4:08 pm

I have problem with QRCode
My printer is TM-T20, and when I', printing [QR], I got that:
Ticket_1.jpg
You do not have the required permissions to view the files attached to this post.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 5:10 pm

I have problem with QRCode
My printer is TM-T20, and when I', printing [QR], I got that:
...
The QR feature is only compatible with a few thermal printers which support Raster Bit Image printing (ESC/POS command GS v 0). We've not been able to use it on any Epson TM-xxx printer, at least those that we have access to.

Sorry for the inconveniences.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 5:15 pm

pribasv ,HI, I was ROS6.7 version, users can create, but it does not print out, using a PDF printer...

And there is the same situation ehsan6830
...
HotSpot Manager (windows or android) only supports ESC/POS compatible printers.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 5:17 pm

You can give it a trial version of Android? We here do not open this online payment
Sorry but the only distribution channel available for our Android app is through Google Play.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 5:30 pm

I have problem with QRCode
My printer is TM-T20, and when I', printing [QR], I got that:
...
The QR feature is only compatible with a few thermal printers which support Raster Bit Image printing (ESC/POS command GS v 0). We've not been able to use it on any Epson TM-xxx printer, at least those that we have access to.

Sorry for the inconveniences.
Where can I find out which models are supported for printing QRCodes?
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Tue Jan 14, 2014 5:37 pm

I have problem with QRCode
My printer is TM-T20, and when I', printing [QR], I got that:
...
The QR feature is only compatible with a few thermal printers which support Raster Bit Image printing (ESC/POS command GS v 0). We've not been able to use it on any Epson TM-xxx printer, at least those that we have access to.

Sorry for the inconveniences.
According to this Command List:
http://www.novopos.ch/client/EPSON/TM-T ... eng_qr.pdf
TM-T20 is supporting Raster bit printing. So this should work with this model. Can you help me. I can give you remote VPN connection to my lab.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Wed Jan 15, 2014 1:00 am

I have problem with QRCode
My printer is TM-T20, and when I', printing [QR], I got that:
...
The QR feature is only compatible with a few thermal printers which support Raster Bit Image printing (ESC/POS command GS v 0). We've not been able to use it on any Epson TM-xxx printer, at least those that we have access to.

Sorry for the inconveniences.
According to this Command List:
http://www.novopos.ch/client/EPSON/TM-T ... eng_qr.pdf
TM-T20 is supporting Raster bit printing. So this should work with this model. Can you help me. I can give you remote VPN connection to my lab.
The GS v 0 command on TM-T20 is marked as obsolete. As we've been not able to get Epson printers (works properly on other brands) to execute this command succesfully we will schedule for the next release the implementation of command GS ( L <Function 112 + 50> which are the raster bit image printing commands that replace the obsolete GS v 0.

We will include a new setting to allow users to select the preferred command.

The Android version will be pushed to Google Play and the Windows version will be posted on this forum as soon as posible. But due to other prioritary projects we are not able to give an estimated date of release.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Wed Jan 15, 2014 1:52 pm

Can I obtain a VAT-EU invoice for purchasing your app?
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Thu Jan 16, 2014 12:31 am

Can I obtain a VAT-EU invoice for purchasing your app?
if we are talking about the Android app the seller is Google so you must get the invoice from them. In the case of the Windows CLI version we sell it directly and we can send the invoice as an intracommunitary operation as long as you provide an EU VAT number.
 
dxdnet
just joined
Posts: 5
Joined: Mon Jan 13, 2014 10:30 am

Re: Voucher print for Android for UM (new Windows CLI availa

Sun Jan 19, 2014 8:05 am

HI !!!pribasv
Will this cli program to support "HOTSPOT own user management" instead of "User Manager"
If :/ ip hotspot user add name = user password = pass
Not / tool user-manager user add name = userr username = userr password = pass

My English is poor, relying on translation software
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Mon Jan 27, 2014 11:29 am

HI !!!pribasv
Will this cli program to support "HOTSPOT own user management" instead of "User Manager"
If :/ ip hotspot user add name = user password = pass
Not / tool user-manager user add name = userr username = userr password = pass

My English is poor, relying on translation software
As it's not a complex modification we will consider it for inclusion in a future update and let the user choose whether to use User Manager or HotSpot users. What I can't give is an estimated date of release.
 
User avatar
czolo
Member
Member
Posts: 423
Joined: Fri Mar 04, 2005 9:49 am
Location: Poland (Warsaw)
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Wed Mar 26, 2014 12:56 pm

I have a problem with session timeout limit. Your App is connecting to UM, but it does not close the API connections. It look's like that:
API-connections.png
The problem is, that sometimes it affects the connection to the printer. I do not know exactly how, but due the large amount of unclosed calls to the API, you can't print the ticket. Although clicking on the profile adds a new user to UM. The problem must be in APP, because only HS-manager is connecting to the printer, not MT.
You do not have the required permissions to view the files attached to this post.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Thu Mar 27, 2014 11:15 pm

Did not realize that sessions were not being closed properly. I'll check it and add a fix on next release. Thanks for your feedback.
 
Mattie
newbie
Posts: 40
Joined: Sat Nov 02, 2013 8:35 pm

Re: Voucher print for Android for UM (new Windows CLI availa

Sat May 03, 2014 4:46 pm

Hi, do you know if there are any problems with windows 64 bit?

C:\Users\name\Downloads\hotspotcli_1.3>HotSpotCli.exe
This program needs Java to run.
Please download it at http://www.java.com

C:\Users\name\Downloads\hotspotcli_1.3>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Sat May 03, 2014 9:13 pm

Hi, do you know if there are any problems with windows 64 bit?

C:\Users\name\Downloads\hotspotcli_1.3>HotSpotCli.exe
This program needs Java to run.
Please download it at http://www.java.com

C:\Users\name\Downloads\hotspotcli_1.3>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
You'll need to install the 32bit java runtime. The exe wrapper is compiled as a 32bit executable. Also be sure to set the JAVA_HOME to the propper runtime.
 
remzy
just joined
Posts: 1
Joined: Wed Jun 26, 2013 8:05 pm

Re: Voucher print for Android for UM (new Windows CLI availa

Thu May 08, 2014 3:10 pm

HotSpot Manager for Android updated to version 1.6.1

Fixes error with printing with RouterOS 6.3
Hi
Do you can upload HotSpotCli for windows working on MT 6.3 and up
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Fri May 30, 2014 4:36 pm

We just have published a Demo version of HotSpot Manager for Android. All the features of the paid version are available in this demo version. The only limitation is that the ticket will not include the password of the generated user. You will be able to test the app before purchasing the paid version.

You can download the demo version at https://play.google.com/store/apps/deta ... tspot.demo
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android for UM (new Windows CLI availa

Fri May 30, 2014 4:36 pm

We just have published a Demo version of HotSpot Manager for Android. All the features of the paid version are available in this demo version. The only limitation is that the ticket will not include the password of the generated user. You will be able to test the app before purchasing the paid version.

You can download the demo version at https://play.google.com/store/apps/deta ... tspot.demo
 
MarioNYB
just joined
Posts: 10
Joined: Wed Feb 19, 2014 3:33 pm

Re: Voucher print for Android - free Demo version available

Thu Jun 26, 2014 12:40 pm

Hello,

I would like to buy/use this application,
my question is, what to do if I got 5 AP's on one place and I would like all 5 to accept the generated password?
I am not sure how I am going to connect them but the scenario is this,

I will have 5 internet links and share all 5 over 5 grooves on 1 place, each groove would accept ~100 continuous connections, all would be connected, what should I do to get all 5 to use that system? Any idea?

I hope you understand my question..
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Thu Jun 26, 2014 1:19 pm

Hello,

I would like to buy/use this application,
my question is, what to do if I got 5 AP's on one place and I would like all 5 to accept the generated password?
I am not sure how I am going to connect them but the scenario is this,

I will have 5 internet links and share all 5 over 5 grooves on 1 place, each groove would accept ~100 continuous connections, all would be connected, what should I do to get all 5 to use that system? Any idea?

I hope you understand my question..
Hello MarioNYB, a simple way is to share a single User Manager instance for all APs. If, as you say, they are all connected and setup as hotspots then assign the User Manager's role to one of them or to a supplementary mikrotik device. And setup the hotspot RADIUS AAA to use the common User Manager instance.

On our deployments we usually use a central Mikrotik device that has the hotspot and User Manager roles, and we connect as many APs as needed to the hotspot interface. Also, if needed, the central device may include an internet load balancing role to share multiple internet links.

Once you have a single User Manager instance you setup the app to connect to it and all the generated users will be available on all your APs.

Anyway, your talking about 5 AP x 100~Users, that makes ~500 simultaneous users. Check on the wiki about RouterOS licensing limits on simultaneous hotspot/usermanager users.

You can test the demo version of the app before buying: https://play.google.com/store/apps/deta ... tspot.demo
 
MarioNYB
just joined
Posts: 10
Joined: Wed Feb 19, 2014 3:33 pm

Re: Voucher print for Android - free Demo version available

Fri Jun 27, 2014 12:29 pm

Hello,

I would like to buy/use this application,
my question is, what to do if I got 5 AP's on one place and I would like all 5 to accept the generated password?
I am not sure how I am going to connect them but the scenario is this,

I will have 5 internet links and share all 5 over 5 grooves on 1 place, each groove would accept ~100 continuous connections, all would be connected, what should I do to get all 5 to use that system? Any idea?

I hope you understand my question..
Hello MarioNYB, a simple way is to share a single User Manager instance for all APs. If, as you say, they are all connected and setup as hotspots then assign the User Manager's role to one of them or to a supplementary mikrotik device. And setup the hotspot RADIUS AAA to use the common User Manager instance.

On our deployments we usually use a central Mikrotik device that has the hotspot and User Manager roles, and we connect as many APs as needed to the hotspot interface. Also, if needed, the central device may include an internet load balancing role to share multiple internet links.

Once you have a single User Manager instance you setup the app to connect to it and all the generated users will be available on all your APs.

Anyway, your talking about 5 AP x 100~Users, that makes ~500 simultaneous users. Check on the wiki about RouterOS licensing limits on simultaneous hotspot/usermanager users.

You can test the demo version of the app before buying: https://play.google.com/store/apps/deta ... tspot.demo
Okay, I understand that part fine.

My actual problem is that I have 5 incoming links with limited traffic, 5 x 100GB, can I use LOADBALANCE in RouterOS to switch between the incoming links when 1 links 100GB is used?
That would make it easier to use your software, I would need 1 router for the ticketing and 1 router to work as an AP.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Fri Jun 27, 2014 2:37 pm


...

Okay, I understand that part fine.

My actual problem is that I have 5 incoming links with limited traffic, 5 x 100GB, can I use LOADBALANCE in RouterOS to switch between the incoming links when 1 links 100GB is used?
That would make it easier to use your software, I would need 1 router for the ticketing and 1 router to work as an AP.
That's a difficult one!! Does each link cut traffic completely when it reaches the limit? If it does you may monitor ping to an external address and when it stops switch the default gateway to the next Internet link. If the consumed link only reduces the bandwith then this solution is useless.

Other possibility is to use the interface/queue stats to keep track of the consumed traffic (as an example try /interface ethernet get 0 tx-bytes). When target consumption is reached, switch the default gateway and reset counters. But I think stats are not saved between reboots so you should save delta values to disk to calculate the total amount. Anyway it would't be a precise method.

Maybe someone knows an easier way to do that.
 
MarioNYB
just joined
Posts: 10
Joined: Wed Feb 19, 2014 3:33 pm

Re: Voucher print for Android - free Demo version available

Fri Jun 27, 2014 5:47 pm


...

Okay, I understand that part fine.

My actual problem is that I have 5 incoming links with limited traffic, 5 x 100GB, can I use LOADBALANCE in RouterOS to switch between the incoming links when 1 links 100GB is used?
That would make it easier to use your software, I would need 1 router for the ticketing and 1 router to work as an AP.
That's a difficult one!! Does each link cut traffic completely when it reaches the limit? If it does you may monitor ping to an external address and when it stops switch the default gateway to the next Internet link. If the consumed link only reduces the bandwith then this solution is useless.

Other possibility is to use the interface/queue stats to keep track of the consumed traffic (as an example try /interface ethernet get 0 tx-bytes). When target consumption is reached, switch the default gateway and reset counters. But I think stats are not saved between reboots so you should save delta values to disk to calculate the total amount. Anyway it would't be a precise method.

Maybe someone knows an easier way to do that.
Okay, we will try few options, thanks!

Can I get some direct contact with you so we can make some conversation about a business proposal and co-operation.
I like your app and idea, we would like some tiny support and information. We are a business giving such options to customers, I would really like to talk with you, skype or e-mail.

Thanks!
 
satcom
just joined
Posts: 23
Joined: Sat Jun 28, 2014 8:10 am

Re: Voucher print for Android - free Demo version available

Sat Jun 28, 2014 9:24 am

Hey. I have two questions.
Can I use RB750 for hotspot configuration, and behind AP for connecting smartfone Sony Xperia j and printer with wifi, to use app for creating generated user's?
2. Hotspot configuration in mikrotik trough Ethernet (without virtual AP, it doesn't work for me in RB750?) and getway for userman will be
AP? 8)
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Mon Jun 30, 2014 9:58 am

Hey. I have two questions.
Can I use RB750 for hotspot configuration, and behind AP for connecting smartfone Sony Xperia j and printer with wifi, to use app for creating generated user's?
2. Hotspot configuration in mikrotik trough Ethernet (without virtual AP, it doesn't work for me in RB750?) and getway for userman will be
AP? 8)
1. You can use a RB750 as HotSpot, but consider the RouterOS license level limits in your deployment. If you place your mobile and printer behind the hotspot be sure to add both to the hotspot bypass table. If not behind just be sure that there is network visibility between the mobile, the printer and the User Manager.

2. A hotspot setup will work over almost any kind of interface, doesn't need to be a wireless interface. Anyway I'm not sure of what you mean on your last question. Please, be a little more descriptive.
 
MarioNYB
just joined
Posts: 10
Joined: Wed Feb 19, 2014 3:33 pm

Re: Voucher print for Android - free Demo version available

Mon Jun 30, 2014 3:21 pm

Hi,

I managed to print the ticket with the DEMO app.
Does the DEMO app write users into the userman? If yes why can't I see any log or user being created?!
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Mon Jun 30, 2014 3:42 pm

Hi,

I managed to print the ticket with the DEMO app.
Does the DEMO app write users into the userman? If yes why can't I see any log or user being created?!
If the ticket has been printed the user is there. You can see it through the User Manager web UI or from terminal using the command:
 /tool user-manager user print 
 
MarioNYB
just joined
Posts: 10
Joined: Wed Feb 19, 2014 3:33 pm

Re: Voucher print for Android - free Demo version available

Wed Jul 02, 2014 10:58 am

How do I get the AAKE-X7 license for the Windows CLI application?
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Wed Jul 02, 2014 11:04 am

How do I get the AAKE-X7 license for the Windows CLI application?
Contact our sales department through info@infinitel.es. Please include in your request the software ID (as it appears in System->License, usually XXXX-XXXX) of your RouterOS device that runs the User Manager.
 
satcom
just joined
Posts: 23
Joined: Sat Jun 28, 2014 8:10 am

Re: Voucher print for Android - free Demo version available

Wed Jul 02, 2014 11:05 pm

HI.I have some problem, I configure hotspot in mikrotik, and check twice configuration, my Sony Experia j won't to connect to hotspot manager demo,I check my configuration in Sony, my mikrotik is OS 6.15, my username for mikrotik is admin,pass: 0000 and usermanager user: administrator pass: admin1234, I have enable api, and filter rule is set, in sony application I set user: remote-api-administrator pass: remote-api-admin1234.
Where I'm wrong?
Thanks.
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Wed Jul 02, 2014 11:50 pm

HI.I have some problem, I configure hotspot in mikrotik, and check twice configuration, my Sony Experia j won't to connect to hotspot manager demo,I check my configuration in Sony, my mikrotik is OS 6.15, my username for mikrotik is admin,pass: 0000 and usermanager user: administrator pass: admin1234, I have enable api, and filter rule is set, in sony application I set user: remote-api-administrator pass: remote-api-admin1234.
Where I'm wrong?
Thanks.
I understand that you have created an user with enough privileges on the mikrotik called remote-api-administrator. Have you tried, just for testing, to set user/password on the app as admin/0000. And what do you mean with filter rule? Could you please post an export of your configuration? Do you connect your mobile behind the hotspot?
 
satcom
just joined
Posts: 23
Joined: Sat Jun 28, 2014 8:10 am

Re: Voucher print for Android - free Demo version available

Thu Jul 03, 2014 8:41 am

HI.I have some problem, I configure hotspot in mikrotik, and check twice configuration, my Sony Experia j won't to connect to hotspot manager demo,I check my configuration in Sony, my mikrotik is OS 6.15, my username for mikrotik is admin,pass: 0000 and usermanager user: administrator pass: admin1234, I have enable api, and filter rule is set, in sony application I set user: remote-api-administrator pass: remote-api-admin1234.
Where I'm wrong?
Thanks.
I understand that you have created an user with enough privileges on the mikrotik called remote-api-administrator. Have you tried, just for testing, to set user/password on the app as admin/0000. And what do you mean with filter rule? Could you please post an export of your configuration? Do you connect your mobile behind the hotspot?
Thanks, now it's working with user: admin pass: 0000, I have filter rules config for api (port 8728 input/accept), I found some tutorial were saying that is user: remote-api-user pass: remote-api-password,it was wrong, your post was helpful.
Best regards.
 
mbrtonpye
newbie
Posts: 43
Joined: Tue Dec 03, 2013 4:43 pm

Re: Voucher print for Android - free Demo version available

Mon Sep 29, 2014 3:10 pm

I have made my software available in a website at the following location:
http://www.softreg.co.uk/HSGAccountTicketGenerator/
You can download it from there.

It will print tickets to just about any printer which is set up to print on a windows machine but is specifically designed to print to 'strip' tickets so will waste paper if you are printing to A4 or Letter (or similar).

I use a very simple POS58 thermal printer which I bought on eBay and it works fine.

The software must be licensed to get all of the functionality working (I may be persuaded to give a few licenses away for free to people who are prepared to help with testing it for me, not everyone though!).

It also uses an MS-SQLServer database for accounting which can be disabled. In theory, it should also work for other databases but I have not tried it and would be interested to hear from people who set it up to run against MySQL etc.

I will write up some documentation when I have chance as there are a lot of features which will need a little explanation.

Have a look, tell me what you think and we will see how well it works!
 
frcp
just joined
Posts: 1
Joined: Mon Feb 09, 2015 11:28 am

Re: Voucher print for Android - free Demo version available

Mon Feb 09, 2015 11:40 am

Hello!

How i can't print the Price on the Ticket???
There is no Variable???

Please Answer.
Thank You!
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android - free Demo version available

Mon Feb 23, 2015 10:17 am

We use to include the price, if any, in the "Name for users" field of the profile.

Just put: "1 Day - 3$" instead of "1 Day"
 
nikson73
just joined
Posts: 1
Joined: Wed Oct 14, 2015 10:12 am

Re: Voucher print for Android / Windows - free Demo version available

Wed Oct 14, 2015 11:34 am

I can not set the logo on the ticket.
In the settings option under the App Logo I set path (exm: /storage/extSdcard/images.png) to logo image file (try bmp, png, jpg)
 
User avatar
pribasv
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Thu Mar 10, 2011 12:09 pm
Contact:

Re: Voucher print for Android / Windows - free Demo version available

Tue Oct 20, 2015 11:15 am

I can not set the logo on the ticket.
In the settings option under the App Logo I set path (exm: /storage/extSdcard/images.png) to logo image file (try bmp, png, jpg)
The logo setting in the app sets only the app's main screen logo. To set the ticket logo you must refer to your printer's manual and set the first logo position on the printer's nv memory. Check the app manual to get more detailed information about the usage of each setting.

http://www.infinitel.es/images/pdf/Infi ... 0guide.pdf

Who is online

Users browsing this forum: GoogleOther [Bot] and 11 guests