2017-02-16 - Re: How insert GraseHotspot the new user that create?

Header Data

From: Hotspotuser <jo***s@algardata.pt>
Message Hash: 26c9933995925c59d6a25849ea9cac21a4f0cd8b99bd6c7d82336928673d3f98
Message ID: <e1d83d4e-6e29-4392-b676-c41bf989ec82@grasehotspot.org>
Reply To: <2a3ff9d7-03e8-4e07-afb4-4cfa20789bd0@grasehotspot.org>
UTC Datetime: 2017-02-16 02:10:26 UTC
Raw Date: Thu, 16 Feb 2017 01:10:26 -0800

Raw message

Vicente

1 - You need to examine MySQL database "radius" so that you understand what 
rows you have to create, take special attention to the Expire setting, 
since it seems you will need it. Understanding how to create a voucher in 
MySQL help making what you need.

2 - You need to create an endpoint (php url) inside de grase code directory 
where you can submit custom data from your hotel software (in any format, i 
sugest using JSON) and have your custom PHP code create the voucher, the 
rest will be taken care by grase as it is. You just need to create the 
voucher in database, according to freeradius needs. 

3 - As for the Room And persons name, I would use the voucher comment field 
to add that values.


terça-feira, 14 de Fevereiro de 2017 às 18:20:45 UTC, Vicente Henríquez 
escreveu:
>
> I know that and i need to do this program for my own, but i don't know how 
> make this grasehotspot because i need any idea, you know?
>
> El martes, 14 de febrero de 2017, 12:47:58 (UTC-3), Hotspotuser escribió:
>>
>> Unfortunately you have to do custom PHP code on top of GRASE for those 
>> informations.
>>
>> segunda-feira, 13 de Fevereiro de 2017 às 19:38:22 UTC, Vicente Henríquez 
>> escreveu:
>>>
>>> Hi Tim,
>>>
>>> I have a little question about greasehotspot. I need to insert some 
>>> values to freeradius database, and that is because i have a hotel program 
>>> with a sql database with all the information about the pax. I need to do 
>>> this, beacuse i try to make a program that insert my values about the pax, 
>>> like how many time he gone to stay in the hotel to make the expired voucher 
>>> and also insert the room and the name or the reservation number. The 
>>> grasehotspot do this to make the own voucher, group, etc but i don't how 
>>> make this and insert this values into the radius database.
>>>
>>> You can help me with this??
>>>
>>

Thread