Open h-wissing opened 2 years ago
Thought it were a beginners python notation error, because
fdr.write("trigger\n")
works.
But other write operations e.g. "resolution" do not need "\n" terminating the input string.. It seems that there is a inconsistency which should either be documented or removed.
Regards H. Wissing
Hello, I've tried triggering a bulk-conversion via writing "trigger" to the file therm_bulk_read as described
def iniTherm_bulk_read(): fdr = open("/sys/bus/w1/drivers/w1_master_driver/w1_bus_master1/therm_bulk_read", "w") fdr.write("trigger") fdr.close()
no action is seen using Python3 file systen but with after a bash call:
def iniTherm_bulk_read(): os.popen("echo trigger > /sys/bus/w1/drivers/w1_master_driver/w1_bus_master1/therm_bulk_read")
User permissions are set manually beforehand. Up to date Raspberry Bullseye 64-bit is used.
Regards H. Wissing