@@ -44,7 +44,7 @@ def get_settings_defaults(self):
4444 return dict (
4545 socket = "/var/run/netconnectd.sock" ,
4646 hostname = None ,
47- forwardUrl = 'http://find.mr-beam.org:5000 ' ,
47+ forwardUrl = 'http://find.mr-beam.org' ,
4848 # ANDYTEST TODO: check timeouts
4949 timeout = 80
5050 )
@@ -59,7 +59,6 @@ def get_template_configs(self):
5959 ##~~ SimpleApiPlugin API
6060
6161 def get_api_commands (self ):
62- self ._logger .info ("ANDYTEST get_api_commands() " )
6362 return dict (
6463 start_ap = [],
6564 stop_ap = [],
@@ -94,12 +93,9 @@ def on_api_command(self, command, data, adminRequired=True):
9493 return jsonify (self ._get_wifi_list (force = True ))
9594
9695 # any commands processed after this check require admin permissions
97- # ANDYTEST disabled this
9896 if adminRequired and not admin_permission .can ():
9997 return make_response ("Insufficient rights" , 403 )
10098
101- self ._logger .info ("ANDYTEST on_api_command called with adminRequired=%s" , adminRequired )
102-
10399 if command == "configure_wifi" :
104100 if data ["psk" ]:
105101 self ._logger .info ("Configuring wifi {ssid} and psk..." .format (** data ))
@@ -163,12 +159,12 @@ def _configure_and_select_wifi(self, ssid, psk, force=False):
163159 )
164160
165161 flag , content = self ._send_message ("config_wifi" , payload )
166- self ._logger .info ("ANDYTEST NETCONNECTD config_wifi: flag=%s, content=%s" , flag , content )
162+ self ._logger .info ("config_wifi: flag=%s, content=%s" , flag , content )
167163 if not flag :
168164 raise RuntimeError ("Error while configuring wifi: " + content )
169165
170166 flag , content = self ._send_message ("start_wifi" , dict ())
171- self ._logger .info ("ANDYTEST NETCONNECTD start_wifi: flag=%s, content=%s" , flag , content )
167+ self ._logger .info ("start_wifi: flag=%s, content=%s" , flag , content )
172168 if not flag :
173169 raise RuntimeError ("Error while selecting wifi: " + content )
174170
0 commit comments