Skip to content
Snippets Groups Projects
Commit a497b33b authored by ft-Demo's avatar ft-Demo
Browse files

commit by robo pro coding

parent c47e3491
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@
</value>
<value name="ADD2">
<block type="text" id="Z@}vBJx[Q3p.O8R9NX~|">
<field name="TEXT"> hPa </field>
<field name="TEXT"> hPa</field>
</block>
</value>
</block>
......@@ -240,7 +240,7 @@
</value>
<value name="ADD9">
<block type="text" id="$lZRO5Rj4^%?SZcBlp8D">
<field name="TEXT">iaq: </field>
<field name="TEXT"> iaq: </field>
</block>
</value>
<value name="ADD10">
......
......@@ -24,7 +24,7 @@ while True:
iaq = TXT_I2C_1_environment_sensor.get_indoor_air_quality_as_number()
gui.exec_script("txt_label_t.text='%s'" % str(''.join([str(x) for x in ['t: ', t, ' °C']])))
gui.exec_script("txt_label_h.text='%s'" % str(''.join([str(x2) for x2 in [' h: ', h, ' %rH']])))
gui.exec_script("txt_label_p.text='%s'" % str(''.join([str(x3) for x3 in [' p: ', p, ' hPa ']])))
gui.exec_script("txt_label_p.text='%s'" % str(''.join([str(x3) for x3 in [' p: ', p, ' hPa']])))
gui.exec_script("txt_label_iaq.text='%s'" % str(' iaq: ' + str(iaq)))
print(''.join([str(x4) for x4 in ['t: ', t, ' °C', ' h: ', h, ' %rH', ' p: ', p, ' hPa', 'iaq: ', iaq]]))
print(''.join([str(x4) for x4 in ['t: ', t, ' °C', ' h: ', h, ' %rH', ' p: ', p, ' hPa', ' iaq: ', iaq]]))
time.sleep(3)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment