17.07.2023, 08:37
Problems with your script:
1. currentStatus is most likely Boolean and comparing it with 0 won't work because it's true/false. You can simply write it as if currentStatus then instead.
2. Use os.sleep(seconds) instead of os.execute().
3. There's no grp.setvalue() function - it is called grp.write()
1. currentStatus is most likely Boolean and comparing it with 0 won't work because it's true/false. You can simply write it as if currentStatus then instead.
2. Use os.sleep(seconds) instead of os.execute().
3. There's no grp.setvalue() function - it is called grp.write()