Search found 47 matches
- 26 Jan 2024, 13:44
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 11676
Re: AttributeError: can not find io 'HEATER_V'
Hi, Unfortunately I am getting a syntax error. Also will this combine the high and low bytes? pi@RevPi17663:~ $ python3 test.py File "test.py", line 15 print(f"value={rpi.io.heater.value}") ^ SyntaxError: invalid syntax import revpimodio2 import time import struct rpi = revpimodi...
- 25 Jan 2024, 19:31
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 11676
Re: AttributeError: can not find io 'HEATER_V'
Thanks for replying. I could not find any documentation about read_procimg. I tried with autorefresh and sometimes when I re-run the script, I get zero instead of the correct number. However piTest -r HEATER_V_HB always gives the correct number. Is there anything I should do to remove the warnings? ...
- 25 Jan 2024, 17:27
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 11676
AttributeError: can not find io 'HEATER_V'
I tried revpimodio2, but it didn't work. I will eventually want to use a variable name from the vars list. See the errors and warnings. import revpimodio2 import time rpi = revpimodio2.RevPiModIO() vars = { b"HEATER_V" : "MBFLOAT", b"HEATER_I" : "MBFLOAT", b&q...
- 25 Jan 2024, 15:48
- Forum: Software
- Topic: Can't read IO after performing an update
- Replies: 3
- Views: 2218
Re: Can't read IO after performing an update
I tried to fix the length to 8 in which is the same value I got from piTest, but I still got an erroneous value returned. I also tried to use the .decode() function from here https://kunbus-gmbh.atlassian.net/servicedesk/customer/portal/1/article/438108161. But it did not work. This is the output wh...
- 25 Jan 2024, 15:34
- Forum: Software
- Topic: Can't read IO after performing an update
- Replies: 3
- Views: 2218
Re: Can't read IO after performing an update
I printed out the offset, bit and length. It looks like the length is the one that is incorrect. So it is this line of code that is bad. Do you know what it should be? length = int(struct.unpack_from('>H',ret,35)[0]/8) pi@RevPi17663:~ $ python3 get_data.py var name: b'RPI_TEMP' , type: SYSINT offset...
- 24 Jan 2024, 19:53
- Forum: Software
- Topic: Can't read IO after performing an update
- Replies: 3
- Views: 2218
Re: Can't read IO after performing an update
This is the contents of config.rsc. I have trimmed the unused bits to fit in the message limits of the website. { "App": { "name": "PiCtory", "version": "1.4.2", "saveTS": "20190813140004", "language": "en", &q...
- 24 Jan 2024, 19:14
- Forum: Software
- Topic: Can't read IO after performing an update
- Replies: 3
- Views: 2218
Can't read IO after performing an update
Hi, The IOs are being read using an old method, similar to this tutorial: https://www.youtube.com/watch?v=cz163tcQCsM After doing an apt-get upgrade, the IOs cannot be read using this method. Is there an easy way to make the old method to work to maintain compatibility as I did not design this syste...