Skip to content

Commit

Permalink
Change name to Interface not Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
seimon committed Aug 1, 2019
1 parent 0f3a106 commit 77d143e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def do_HEAD(self):
def do_AUTHHEAD(self):
print(f'do_AUTHHEAD {self.path}')
self.send_response(401)
self.send_header("WWW-Authenticate", 'Basic realm=\"Sabre II BACnet Gateway\"')
self.send_header("WWW-Authenticate", 'Basic realm=\"Sabre II BACnet Interface\"')
self.send_header('Content-type', 'text/html')
self.end_headers()

Expand Down Expand Up @@ -194,8 +194,8 @@ def main(interface, address, port, ui_path, mqtt_broker):

# Custom request handler class (so we can pass in our own args)
MyRequestHandlerClass = RequestHandlerClassFactory(address, interface, mqttclient)
avahi = AvahiService(f"Sabre II BACnet Gateway {keystr[:7]}", "_workstation._tcp", 9)
avahi = AvahiService(f"Sabre II BACnet Gateway {keystr[:7]}", "_https._tcp", port)
avahi = AvahiService(f"Sabre II BACnet Interface {keystr[:7]}", "_workstation._tcp", 9)
avahi = AvahiService(f"Sabre II BACnet Interface {keystr[:7]}", "_https._tcp", port)

# Start an HTTP server to serve the content in the ui dir and handle the
# POST request in the handler class.
Expand Down
6 changes: 3 additions & 3 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Remsdaq Sabre II BACnet Gateway - IP Settings Page</title>
<title>Remsdaq Sabre II BACnet Interface - IP Settings Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Latest compiled and minified CSS -->
Expand Down Expand Up @@ -38,7 +38,7 @@
<a class="navbar-brand"><img id="logo" height=30 src="/img/remsdaqlogolatest.jpg"></img></a>
</div>
<div class="navbar-nav">
<p class="navbar-text">Sabre II BACnet Gateway - the pride of the Security Business Unit</p>
<p class="navbar-text">Sabre II BACnet Interface</p>
</div>
</div>
</nav>
Expand All @@ -47,7 +47,7 @@

<div class="row before-submit">
<div class="col-lg-8 col-lg-offset-1">
<h3>Sabre II BACnet Gateway IP Address Settings</h3>
<h3>Sabre II BACnet Interface IP Address Settings</h3>
</div>
</div>

Expand Down

0 comments on commit 77d143e

Please sign in to comment.