[GH-ISSUE #19] Configure type of voucher #1

Closed
opened 2026-05-07 00:17:04 +02:00 by BreizhHardware · 6 comments

Originally created by @irqnet on GitHub (Nov 11, 2022).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/19

Originally assigned to: @glenndehaan on GitHub.

Just out of curiosity, is it somehow possible to change the type of voucher that is created?

Currently it is a multi use 8h voucher that is created.

Any way to adapt that setting?

Originally created by @irqnet on GitHub (Nov 11, 2022). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/19 Originally assigned to: @glenndehaan on GitHub. Just out of curiosity, is it somehow possible to change the type of voucher that is created? Currently it is a multi use 8h voucher that is created. Any way to adapt that setting?
BreizhHardware 2026-05-07 00:17:04 +02:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@glenndehaan commented on GitHub (Nov 11, 2022):

Currently this is hardcoded. I could look into creating an extra variable if you want this feature?

<!-- gh-comment-id:1311500756 --> @glenndehaan commented on GitHub (Nov 11, 2022): Currently this is hardcoded. I could look into creating an extra variable if you want this feature?
Author
Owner

@irqnet commented on GitHub (Nov 11, 2022):

If you are able to spend some effort on this, it would really appreciate it.

Would be nice to have multiple voucher selections, like the controller offers:

  • one time / multi use
  • expiration - 8 hrs / 24 hrs / 2 days / 4 days / 7 days / user defined
  • bandwidth limit
  • quota limit
<!-- gh-comment-id:1311508895 --> @irqnet commented on GitHub (Nov 11, 2022): If you are able to spend some effort on this, it would really appreciate it. Would be nice to have multiple voucher selections, like the controller offers: - one time / multi use - expiration - 8 hrs / 24 hrs / 2 days / 4 days / 7 days / user defined - bandwidth limit - quota limit
Author
Owner

@glenndehaan commented on GitHub (Nov 14, 2022):

Hey sorry for the late reponse but a new release is now available that allows you to create pre-defined voucher types that a user then can select within the portal. The configuration for it can be found here: https://github.com/glenndehaan/unifi-voucher-site#docker

I hope this help.

Kind regards,
Glenn

<!-- gh-comment-id:1313968510 --> @glenndehaan commented on GitHub (Nov 14, 2022): Hey sorry for the late reponse but a new release is now available that allows you to create pre-defined voucher types that a user then can select within the portal. The configuration for it can be found here: https://github.com/glenndehaan/unifi-voucher-site#docker I hope this help. Kind regards, Glenn
Author
Owner

@irqnet commented on GitHub (Nov 15, 2022):

looks very good, thx a lot!

Would it be difficult to map the minute indicator to 1 day 2 days, when 1440, or 2880 is configured instead of showing 1440, 2880 in the selection?

What I don't know is how the controller behaves when using e.g. 1,5 days like 2160 minutes. Normally it's not foreseen by Ubiquiti.

<!-- gh-comment-id:1315235091 --> @irqnet commented on GitHub (Nov 15, 2022): looks very good, thx a lot! Would it be difficult to map the minute indicator to 1 day 2 days, when 1440, or 2880 is configured instead of showing 1440, 2880 in the selection? What I don't know is how the controller behaves when using e.g. 1,5 days like 2160 minutes. Normally it's not foreseen by Ubiquiti.
Author
Owner

@glenndehaan commented on GitHub (Nov 15, 2022):

Hey, I just pushed an update and it should now be remapped inside the dropdown. In terms of the controller I have no idea if that works but according to the API it should

<!-- gh-comment-id:1315881593 --> @glenndehaan commented on GitHub (Nov 15, 2022): Hey, I just pushed an update and it should now be remapped inside the dropdown. In terms of the controller I have no idea if that works but according to the API it should
Author
Owner

@irqnet commented on GitHub (Nov 17, 2022):

works for me! thx :)

<!-- gh-comment-id:1318764696 --> @irqnet commented on GitHub (Nov 17, 2022): works for me! thx :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#1
No description provided.