Closed javed222 closed 5 years ago
Hi Xavier,
please provide the changes to did in your code, so we can reproduce your problem.
Please post your code, the commands to run your program and your error message.
Thanks, Michael
Thanks Michael
I’m attached my code to the email.
This python code run on a raspberry pi zero w, with raspbian stretch Desktop and a 4d system display model 4dpi-24.
Based in your code, I made one, with a loop for read the sensor 4 times for minute..
When run the code, after minutes stop with de follow error:
Maybe my code is wrong.. I don’t know…
How does you that code may run several times per minute ?
Thanks
Best regards
Javier
De: Michael Maier [mailto:notifications@github.com] Enviado el: viernes, 30 de noviembre de 2018 5:45 a. m. Para: UnravelTEC/Raspi-Driver-SCD30 Raspi-Driver-SCD30@noreply.github.com CC: javed222 vazquezeja@yahoo.com; Author author@noreply.github.com Asunto: Re: [UnravelTEC/Raspi-Driver-SCD30] 'int' object has no attribute 'getitem' (#1)
Hi Xavier,
please provide the changes to did in your code, so we can reproduce your problem.
Please post your code, the commands to run your program and your error message.
Thanks, Michael
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/UnravelTEC/Raspi-Driver-SCD30/issues/1#issuecomment-443132958 , or mute the thread https://github.com/notifications/unsubscribe-auth/AbYKND2RaIYzlQOFUAZCznLFuQ78s4rWks5u0PApgaJpZM4Y67CI . https://github.com/notifications/beacon/AbYKNJUo6XQ9g_2hrs-hFa2Gf3qX715kks5u0PApgaJpZM4Y67CI.gif
El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus
here is the code
Hi Xavier,
Unfortunately, attaching via Email doesn't seem to work here. Could you please either fork this repository and commit your changes to your fork, or post the code inline here?
Thanks, Michael
the sensor are OK. I run on arduino without errors...
As pigpio.error
says: 'I2C write failed
', I guess it's a problem with your I2C bus - let's nail the problem down, please answer the following questions:
We should rule out electrical or other hardware problems first, or write a software fix instead...
How often does the error occur? In your screenshot, there were 167 iterations before, did the error occur before too? Does the loop work again in the next iteration?
OK Thank you!
in interaction 287 and 288 have an error again.. 50min after the first error...
in interaction 521 have an error again.. 78min after the first error...
I've added some error-catching code around all used pigpiod functions. Could You try if You can handle your errors better now?
Thanks I´m testing...
i try the code with an new SCD30, and a new raspberry pi 3A+. All was right!! 0 errors... Thanks
Many thanks for your feedback, closing ticket for now.
Have a good day :-)
hello i can this code one time, and all is right but when i can try in a loop, after minutes have an error: 'int' object has no attribute 'getitem'
i am noobee, have you an successfully code with an loop for read sensor each 15 seconds for example?? Thanks Javier