Home › Forums › Mooshimeter Support › Python API and initialization
- This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by
Anonymous.
- AuthorPosts
Marc
GuestI 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?
admin
KeymasterThat’s quite odd – I’ll dig in to it. Thanks for being specific.
Anonymous
GuestHi 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.
admin
KeymasterHi 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
Anonymous
GuestHi James,
that’s great news, i installed the fix today.
- AuthorPosts