Skip to content

Commit

Permalink
remove mail from config page
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuehn committed Nov 3, 2021
1 parent cb87251 commit e42b05c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
5 changes: 0 additions & 5 deletions code/web_handlers/handlerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,4 @@ def assign_config(self, _config):
self.config["camera"]["input"] = _config["camera"]["input"]
_output = self.config['default']['output']
self.config[_output]['file_length'] = int(_config[_output]['file_length'])
self.config['mail']['address_from'] = _config['mail']['address_from']
self.config['mail']['address_to'] = _config['mail']['address_to']
self.config['mail']['server'] = _config['mail']['server']
self.config['mail']['server_password'] = _config['mail']['server_password']
self.config['mail']['server_port'] = int(_config['mail']['server_port'])
self.config['webserver']['server_port'] = int(_config['webserver']['server_port'])
28 changes: 0 additions & 28 deletions code/web_resources/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,6 @@ <h2>Recording</h2>
<input type='text' id='valRecordingLocation' />
</div>
<hr>
<h2>Mail</h2>
<div id="selectFrom">
<label>From:</label>
<input type='text' id='valFrom' />
</div>
<div id="selectTo">
<label>To:</label>
<input type='text' id='valTo' />
</div>
<div id="selectPassword">
<label>Password:</label>
<input type='text' id='valPassword' />
</div>
<div id="selectServer">
<label>Server:</label>
<input type='text' id='valServer' />
Expand Down Expand Up @@ -75,11 +62,6 @@ <h2>Web</h2>
let smode = document.getElementById("selectedMode");
let cInput = document.getElementById("valCameraID");
let fLength = document.getElementById("valFileLength");
let mfrom = document.getElementById("valFrom");
let mto = document.getElementById("valTo");
let mPassword = document.getElementById("valPassword");
let mServer = document.getElementById("valServer");
let mPort = document.getElementById("valPort");
let wPort = document.getElementById("valWebPort");
let rLocation = document.getElementById("valRecordingLocation");
let config = ''
Expand All @@ -93,11 +75,6 @@ <h2>Web</h2>
output = config.default['output'];
fLength.value = config[output].file_length;
cInput.value = config["camera"]["input"];
mfrom.value = config['mail'].address_from;
mto.value = config['mail'].address_to;
mPassword.value = config['mail'].server_password;
mServer.value = config['mail'].server;
mPort.value = config['mail'].server_port;
wPort.value = config['webserver'].server_port;
rLocation.value = config['default'].recording_location;
}
Expand Down Expand Up @@ -137,11 +114,6 @@ <h2>Web</h2>
config["camera"]["input"] = cInput.value;
config['default'].recording_location = rLocation.value;
config[output].file_length = fLength.value;
config['mail'].address_from = mfrom.value;
config['mail'].address_to = mto.value;
config['mail'].server_password = mPassword.value;
config['mail'].server = mServer.value;
config['mail'].server_port = mPort.value;
config['webserver'].server_port = wPort.value;
sendJson(config);
}
Expand Down

0 comments on commit e42b05c

Please sign in to comment.