Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

INDI mini cloud/weather monitor


wimvb

Recommended Posts

Okay...!

The greatest problems are sitting in front of the computer.
I overlooked to declare the right pins. The pins in the original are the 5 and 4. I changed it to 21 and 22.

So, i restart the whole thing with the following result:

 

('192.168.178.122', '255.255.255.0', '192.168.178.1', '192.168.178.1')
Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead
Traceback (most recent call last):
  File "main.py", line 9, in <module>
  File "mlx90614.py", line 37, in __init__
OSError: [Errno 19] ENODEV
MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32
Type "help()" for more information.
>>> 

What can i do ?

Best regards

André

Link to comment
Share on other sites

Regarding the old verion of i2c, have a look here

https://forum.micropython.org/viewtopic.php?t=9940

I don't have time now to further investigate and implement the change, but feel free to experiment.

As for the math error, this can happen if the rh value is 0. The code should be improved to catch low values of rh:

if (rh == 0) :

  (exception code)

else:

  ...

Again, I don't have time at the moment to implement and test this.

Btw, the warning and error may very well be related. If i2c is fixed, the math error will vanish as well.

Edited by wimvb
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.