Topic | Python API and initialization

Home Forums Mooshimeter Support Python API and initialization

Viewing 4 reply threads
  • Author
    Posts
    • #3311 Reply
      Marc
      Guest

      I am using the Example.py script as a basis without changing anything concerning the initialization or configuration since several days to log solar panels with a raspberry. When it is running it is stable. But I already had two occasions where the script only said “no mooshimeters found”. It didn’t help to reset the mooshimeter and raspberry, take out the batteries, load batteries or wait for a long time. The mooshimeter was blinking every 10s. The only way to get it running again was starting the android app to initialize and at least once I had to set current manually to 10A otherwise the python script said something like 2.3A when there was approx. 9-10A to be measured.

      So is there a difference in the initialization between the Python API and the android app and is the current mode set properly?

    • #3321 Reply
      admin
      Keymaster

      That’s quite odd – I’ll dig in to it. Thanks for being specific.

    • #3358 Reply
      Anonymous
      Guest

      Hi James. today, after several days without problems, instead of “no mooshimeters found” the script stopped at “m.meter_settings.write()” which refers to line 43 in Example.py. After trying several times i gave up and had to use the android app again to make the python script work again. perhaps this helps to locate the problem.

    • #3447 Reply
      admin
      Keymaster

      Hi Marc –

      Thank you for raising the issue! I think I found the problem. Please update your python API to the latest version from Github.

      You were correct that it was an error in the initialization that would cause the meter to reboot if it had not previously been connected before. See this commit for the exact change:

      https://github.com/mooshim/Mooshimeter-PythonAPI/commit/e299d651bb9114489eafa4877ed29bf6306631b2

    • #3455 Reply
      Anonymous
      Guest

      Hi James,
      that’s great news, i installed the fix today.

Viewing 4 reply threads
Reply To: Python API and initialization
Your information:




This site is protected by reCaptcha and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.