{"id":8570,"date":"2022-10-24T17:38:45","date_gmt":"2022-10-24T17:38:45","guid":{"rendered":"https:\/\/www.use-snip.com\/kb\/?post_type=ht_kb&#038;p=8570"},"modified":"2022-11-03T22:39:38","modified_gmt":"2022-11-03T22:39:38","slug":"restricting-users-by-hourly-use","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/restricting-users-by-hourly-use\/","title":{"rendered":"Restricting Users, by Hourly Use"},"content":{"rendered":"<p>This article describes how to add<strong> Hourly Time Restrictions <\/strong> to User Accounts in the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> NTRIP Caster.<\/p>\n<h2>The Hourly-Use Restrictions tab<\/h2>\n<p>This tab is used to control the accumulated <em>period of time<\/em> which a given User Account is allowed to connect for.<\/p>\n<p>Until the preset time is reached, the User Account can connect to the Caster as many times as desired, with the net summary of all connections added to their total connection time.\u00a0 Once that time has been reached, further new connections are not allowed to occur until additional time as been added to the account.\u00a0 Use this feature when you meter or restrict User Account access to the Caster for periods of time which you then invoice your users \/ customers for.<\/p>\n<p>The time period assigned to each User Account can vary widely, and you can establish a preset time which you use for all users.\u00a0 Whenever the account has time added to it, or has reached a usage point of 50% or 80% an automated eMail can be send out by the Caster.\u00a0 Email is also sent when the remaining User Account time reaches zero. \u00a0\u00a0 Various behaviors can be controlled in the settings for each user, including automatically adding time when the user reaches zero, and\/or allowing any then-active connections to persists when no remaining time exists.<\/p>\n<p>This restriction can also be combined with other restrictions.\u00a0 For example; you might create a test account for a potential customer preset with 100 hours of connection time, coupled with access limited to only a specific operating area, and a final date\/time for use, all for evaluation purposes.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8580 size-full\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict.png?_t=1666626481\" alt=\"\" width=\"608\" height=\"730\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict.png 608w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict-250x300.png 250w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict-42x50.png 42w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict-600x720.png 600w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrict-320x384.png 320w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p>This restriction is disabled for each User Account by default.<\/p>\n<p>In order to use this feature, first check the box labeled <strong>Restrict this User to the below pre-loaded usage time <\/strong>in the tab marked <strong>Hourly Use Restrictions<\/strong> of the edit users dialog.\u00a0 This actives the restriction, and various default check boxes will becomes active (as well as helpful tool tips).\u00a0 You must then add some time for this user account to consume.<\/p>\n<p>Conceptually, time is commonly added to the account in predefined units of X hours at a time with one or two button clicks.\u00a0 The resulting time is displayed both in hours and shown in more human readable units in labels and tool tips (as in <em>80hrs<\/em> produces a tool tip of <em>3 days and 8 hours<\/em>).\u00a0 But you can also add any desired precise length of time with the <em>time to add<\/em> spin box.\u00a0 You will typically want to determine what your preferred default time will be (using the combo box found at the bottom), and set this once.\u00a0 This will then set the default values for both the<em> Preset Times<\/em> combo box and the initial (default) value in the spin box.<\/p>\n<p>You add additional time to an account by pressing the <strong>Add<\/strong> button. \u00a0 When pressed, the amount of time shown in the spin box is added to the user account.\u00a0 You may want to press this value multiple times; each time it is pressed, the time in the spin box is added to to account.\u00a0 The <strong>Zero<\/strong> button removes all prior values, setting them to zero).\u00a0 And the <strong>Reset<\/strong> button resets the user time to the current default time.<\/p>\n<p>A wide number of automated eMail events are also supported, and are enabled by the check boxes shown above. These settings allow the Caster to send eMail to both the Customer (the owner of the User Account) and to you the Caster operator in order to coordinate various back-end office billing processes that occur in conjunction with selling the user\/customer additional time.\u00a0 These controls are discussed in more detail in the section <em>Individual Controls summary<\/em> found below.<\/p>\n<h3>Typical Use Example<\/h3>\n<p>Consider a Caster deployment that sells connection time to end User Accounts in units of 500 hours per sale.\u00a0 Presume for that there is a Customer Accounts that will own this User Account (and therefore provides the eMail that will be used to contact the owner).\u00a0 [See <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/user-accounts-vs-customer-accounts\/\">this article<\/a> for a summary of the differences between Users Accounts (NTRIP Client devices) and Customer Accounts (real people or firms you sell services to). ]<\/p>\n<p>We also presume that the <em>Default Time to Use<\/em> value has been set to be &#8220;500 Hours&#8221; (the combo box at the bottom of the dialog).\u00a0\u00a0 <span style=\"color: #008000;\"><strong>Aside<\/strong><\/span>: The value displayed in this control is a global one, in that it applies to every User Account that uses the Hourly Restrictions.\u00a0 All the other controls on this tab allow setting values for the specific individual User Account being edited.<\/p>\n<p>To setup the User Account with 500 unused hours, check the <em>Restrict this User..<\/em> check box, and press the <strong>Add<\/strong> button. This adds 500 hours to the account.\u00a0 This display changes from that shown at left to the right.<\/p>\n<p><a href=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8585 size-full\" src=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple.png?_t=1666629838\" alt=\"\" width=\"820\" height=\"154\" srcset=\"https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple.png 820w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple-300x56.png 300w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple-768x144.png 768w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple-50x9.png 50w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple-600x113.png 600w, https:\/\/www.use-snip.com\/kb\/wp-content\/uploads\/2022\/10\/SNIP_HourUseRestrictExmple-320x60.png 320w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/p>\n<p>The User Account has now &#8220;purchased&#8221; 500 hours, used 0 hours, and hence has 500 hours remaining.\u00a0 This would correspond to 20 days and 20 hours of continuous connection time.<\/p>\n<p>If the check box <strong>Mail Customer&#8230;<\/strong> is checked (and the dialog is saved), then the Caster operators will get an email notice stating the amount of time that has been added along with a <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-user-reports\/\">user report<\/a> outlining all the other restrictions (if Any) active for this User Accounts).<\/p>\n<p>If you do not want the User Account to be abruptly terminated when it runs out of time, consider checking the\u00a0 <strong>Allow Current Connection to Persist&#8230;<\/strong> checkbox as well.\u00a0 When this is enabled, and an active User Account runs out of its allocated time, the current connection(s) is allowed to persist without interruption.\u00a0 There is some potential for abuse here (as a user might remains connected for days) which the Caster operator should consider.<\/p>\n<h3>Individual Controls summary<\/h3>\n<h4>Primary Controls<\/h4>\n<p>Check Box: <strong>Restrict this User to the below&#8230;<\/strong><br \/>\nThis is the master on\/off switch for hourly restrictions for this User Account.<\/p>\n<p>Spin Box: <strong>Time to Add<\/strong><br \/>\nThis control shows the amount of time to be added in units of hours.\u00a0 The tool-tip displays the value in other convenient units (minutes, hours, days, weeks, years).<\/p>\n<p>Button: <strong>Add<\/strong><br \/>\nEach time it is pressed, this control adds the amount of time shown in the spin box to the User Account.<\/p>\n<p>Combo Box: <strong>Preset Time<\/strong><br \/>\nThis displays a list of common convenient times periods to be used ranging from a few hours to multiple years.\u00a0 When selected, that value replaces that current value in the <em>Time to Add<\/em> spin box.<\/p>\n<p>Button: <strong>Reset Time<\/strong><br \/>\nWhen pressed, this control zero the existing time and added the current current value in the <em>Time to Add<\/em> spin box (typically a present time) to the User Account.<\/p>\n<p>Button: <strong>Zero Time<\/strong><br \/>\nWhen pressed, this control zeros the existing time for the User Account.\u00a0 A user with no time allocated is not able to connect, so it is typical to add more time after pressing this button.<\/p>\n<h4>Time Exceeded Controls<\/h4>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Mail Customer&#8230;<\/strong><br \/>\nWhen checked, and time has been added or changed; and email will be sent to the Customer Account that owns this User Account with the details.\u00a0 A copy will also be send to the Caster operator. In the event there is no owning Customer Account, the email is still sent to the Caster operator.<\/p>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Allow current connection to persist&#8230;<\/strong><br \/>\nWhen checked, and an active User Account runs out of its allocated time, then the current user connection <strong>is not disconnected<\/strong>, but allowed to persist until the connection is dropped.\u00a0 The user is not allowed to reconnect (unless additional time has been added).\u00a0\u00a0 [If this check box is not checked, then the user is disconnected when the allocated time has been reached and may not reconnect unless additional time has been added.\u00a0 This process is not instantaneous, the accumulated values are checked every few minutes.\u00a0 So a User Account may get as much as 5 &#8216;free&#8217; minutes of additional time.]<\/p>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Auto-renew Connection time&#8230;<\/strong><br \/>\nWhen checked, and an active User Account runs out of its allocated time, then additional time is automatically allocated to the User Account and an email alerting this fact is send to the Caster operator.\u00a0 The active connection is not disrupted.\u00a0\u00a0 The period of additional time allocated is the current default time set for the caster.<\/p>\n<h4>eMail Trigger Controls<\/h4>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Time is Added&#8230;<\/strong><br \/>\nWhen checked, an email will be sent to the Caster Operator each time time is added to the User Account. It is recommended you leave this checked in order to have a record of the time you have allocated to User Accounts.<\/p>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Time is 50% consumed&#8230;<\/strong><br \/>\nWhen checked, an email will be sent to the Caster Operator when this User Account reaches a point where it has consumed more that 50% of the time it was allocated.<\/p>\n<p style=\"padding-left: 40px;\">Check Box: <strong>Time is 80% consumed&#8230;<\/strong><br \/>\nWhen checked, an email will be sent to the Caster Operator when this User Account reaches a point where it has consumed more that 80% of the time it was allocated.<\/p>\n<h4>Default Time to Use<\/h4>\n<p>This combo box sets the global (caster wide) default time used when time is added to a user. This is also the value used when time is to be auto-added to a User Account (the auto renew checkbox).\u00a0 It displays a list of common convenient times periods to be used ranges from a few hours to multiple years.<\/p>\n<h3>Notes<\/h3>\n<p>This restriction uses a conservative algorithm to count and accumulate the time which a user has connected.\u00a0 Time itself is measured to a 1 millisecond level of accuracy, but is only accounted against the User Account for connections which have persisted at least 20 seconds. This logic prevents those users who are repeatedly having problems connecting to the Caster from consuming their assigned time.<\/p>\n<p>The accounting process which accumulate time for the user account is only run when a user (an <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/question-what-is-an-ntrip-client\/\">NTRIP Client<\/a>)\u00a0 <em>connects<\/em>, <em>disconnects<\/em>, or every 5th minute when they are actively connected.\u00a0 At that moment comparisons are made to various thresholds and various warning emails may be sent.\u00a0 If more that one connection is active for the User Account (you can set how many simultaneous active connections the User Account is allowed to have at once in the <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/adding-users\/\">Basic Settings<\/a> tab), then <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> will correctly account for all connections and their individual\u00a0 accumulated usage times.\u00a0 The real time accounting of time is briefly suspended when you are actively editing an account that is in active use.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>Note:<\/strong><\/span>\u00a0 The <strong>Hourly Time Restrictions<\/strong> tab is an advanced feature. It requires a <span style=\"color: #993300;\"><em><strong>Pro<\/strong> <\/em><\/span>license<br \/>\nand depends on the presence of an active \u201cEnhanced User Management\u201d Plug-In to be used.<br \/>\nSending eMail requires the presence of an active \u201c<a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/sending-email-from-snip\/\">Email Services<\/a>\u201d Plug-In to be used.<\/p>\n<p>About other <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/user-accounts-adding-restrictions\/\">user account restrictions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes how to add Hourly Time Restrictions to User Accounts in the SNIP NTRIP Caster. The Hourly-Use Restrictions tab This tab is used to control the accumulated period of time which a given User Account is allowed to connect for. Until the preset time is reached, the User [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[283],"ht-kb-tag":[494,460,492],"class_list":["post-8570","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-managing-user-accounts","ht_kb_tag-restrictions","ht_kb_tag-time","ht_kb_tag-user-account"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=8570"}],"version-history":[{"count":19,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8570\/revisions"}],"predecessor-version":[{"id":8648,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8570\/revisions\/8648"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=8570"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=8570"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=8570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}