forked from M-Labs/thermostat
Add about thermostat window
This commit is contained in:
parent
d7c0219456
commit
7a727cb011
|
@ -317,10 +317,38 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
|
||||
self.menu.addAction(self.actionEnter_DFU_Mode)
|
||||
self.menu.addAction(self.actionNetwork_Settings)
|
||||
self.menu.addAction(self.actionAbout_Thermostat)
|
||||
self.menu.addAction(self.actionLoad_all_configs)
|
||||
self.menu.addAction(self.actionSave_all_configs)
|
||||
|
||||
def about_thermostat():
|
||||
QtWidgets.QMessageBox.about(
|
||||
self,
|
||||
_translate("MainWindow","About Thermostat"),
|
||||
f"""
|
||||
<h1>Sinara 8451 Thermostat v{self.hw_rev_d['rev']['major']}.{self.hw_rev_d['rev']['minor']}</h1>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>Settings:</h2>
|
||||
Default fan curve:
|
||||
a = {self.hw_rev_d['settings']['fan_k_a']},
|
||||
b = {self.hw_rev_d['settings']['fan_k_b']},
|
||||
c = {self.hw_rev_d['settings']['fan_k_c']}
|
||||
<br>
|
||||
Fan PWM range:
|
||||
{self.hw_rev_d['settings']['min_fan_pwm']} – {self.hw_rev_d['settings']['max_fan_pwm']}
|
||||
<br>
|
||||
Fan PWM frequency: {self.hw_rev_d['settings']['fan_pwm_freq_hz']} Hz
|
||||
<br>
|
||||
Fan available: {self.hw_rev_d['settings']['fan_available']}
|
||||
<br>
|
||||
Fan PWM recommended: {self.hw_rev_d['settings']['fan_pwm_recommended']}
|
||||
"""
|
||||
)
|
||||
|
||||
self.actionAbout_Thermostat.triggered.connect(about_thermostat)
|
||||
self.menu.addAction(self.actionAbout_Thermostat)
|
||||
|
||||
self.thermostat_settings.setMenu(self.menu)
|
||||
|
||||
self.plot_menu = QtWidgets.QMenu()
|
||||
|
|
Loading…
Reference in New Issue