File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def get_settings_defaults(self):
35
35
auto_off_bed_temp = 60 ,
36
36
auto_off_nozzle_temp = 50 ,
37
37
auto_connect = False ,
38
+ auto_connect_time = 5 ,
38
39
security_connection_lost = False ,
39
40
security_emergency_stop = True ,
40
41
security_nozzle_temp = 250 ,
@@ -62,7 +63,8 @@ def get_template_vars(self):
62
63
auto_off = self ._settings .get (["auto_off" ]),
63
64
auto_off_bed_temp = self ._settings .get (["auto_off_bed_temp" ]),
64
65
auto_off_nozzle_temp = self ._settings .get (["auto_off_nozzle_temp" ]),
65
- auto_connect = self ._settings .get (['auto_connect' ])
66
+ auto_connect = self ._settings .get (['auto_connect' ]),
67
+ auto_connect_time = self ._settings .get (['auto_connect_time' ])
66
68
)
67
69
68
70
def get_template_configs (self ):
Original file line number Diff line number Diff line change 126
126
body : JSON .stringify ({command: " connect" }),
127
127
headers: { ' Content-Type' : ' application/json' }
128
128
});
129
- }, 5000 )
129
+ }, Number ( data . plugins . ophom . auto_connect_time ) * 1000 )
130
130
}
131
131
})
132
132
})
Original file line number Diff line number Diff line change @@ -70,9 +70,21 @@ Hue Bridge Status: <span id="ophom_generalstatus" class="badge badge-danger" sty
70
70
71
71
<label class =" checkbox" disabled >
72
72
<input type =" checkbox" value =" " data-bind =" checked: settings.plugins.ophom.auto_connect" >
73
- Try to connect to printer after power On the plug ? (~5sec)
73
+ Try to connect to printer after power On the plug ?
74
74
</label >
75
75
76
+ <table >
77
+ <tr >
78
+ <td >Time to wait before auto connect: </td >
79
+ <td >
80
+ <div class =" input-append" >
81
+ <input class =" span3 controls" id =" auto_connect_time" type =" text" data-bind =" value: settings.plugins.ophom.auto_connect_time" >
82
+ <span class =" add-on" >sec</span >
83
+ </div >
84
+ </td >
85
+ </tr >
86
+ </table >
87
+
76
88
<br />
77
89
78
90
<div class =" well" >
Original file line number Diff line number Diff line change 14
14
plugin_name = "Ophom"
15
15
16
16
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17
- plugin_version = "1.3.2 "
17
+ plugin_version = "1.3.3 "
18
18
19
19
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
20
20
# module
You can’t perform that action at this time.
0 commit comments