Giter Site home page Giter Site logo

ib.victron's People

Contributors

izak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ib.victron's Issues

fail to install

Hello,

i want to test your code, but I it fail to install it.
I use a RP4 with python 3.9.2...
building is okay but install get some error:

pi@victron:~/ib.victron $ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing ib.victron.egg-info/PKG-INFO
writing dependency_links to ib.victron.egg-info/dependency_links.txt
writing entry points to ib.victron.egg-info/entry_points.txt
writing namespace_packages to ib.victron.egg-info/namespace_packages.txt
writing requirements to ib.victron.egg-info/requires.txt
writing top-level names to ib.victron.egg-info/top_level.txt
reading manifest file 'ib.victron.egg-info/SOURCES.txt'
writing manifest file 'ib.victron.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/ib
copying build/lib/ib/__init__.py -> build/bdist.linux-armv7l/egg/ib
creating build/bdist.linux-armv7l/egg/ib/victron
creating build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/options.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/setlimit.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/__init__.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/getstate.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/monitor.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/scripts/getlimit.py -> build/bdist.linux-armv7l/egg/ib/victron/scripts
copying build/lib/ib/victron/mk2.py -> build/bdist.linux-armv7l/egg/ib/victron
copying build/lib/ib/victron/__init__.py -> build/bdist.linux-armv7l/egg/ib/victron
byte-compiling build/bdist.linux-armv7l/egg/ib/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/options.py to options.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/setlimit.py to setlimit.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/getstate.py to getstate.cpython-39.pyc
  File "build/bdist.linux-armv7l/egg/ib/victron/scripts/getstate.py", line 10
    print mk2.get_state()
          ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/monitor.py to monitor.cpython-39.pyc
  File "build/bdist.linux-armv7l/egg/ib/victron/scripts/monitor.py", line 16
    print 'Time           ', datetime.now().strftime('%Y-%m-%d %H:%M')
          ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-armv7l/egg/ib/victron/scripts/getlimit.py to getlimit.cpython-39.pyc
  File "build/bdist.linux-armv7l/egg/ib/victron/scripts/getlimit.py", line 8
    print mk2.master_multi_led_info()
          ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-armv7l/egg/ib/victron/mk2.py to mk2.cpython-39.pyc
  File "build/bdist.linux-armv7l/egg/ib/victron/mk2.py", line 45
    print d, ' '.join(['%02X' % ord(x) for x in data])
          ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-armv7l/egg/ib/victron/__init__.py to __init__.cpython-39.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/namespace_packages.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/not-zip-safe -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying ib.victron.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
creating 'dist/ib.victron-0.1-py3.9.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing ib.victron-0.1-py3.9.egg
removing '/usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg' (and everything under it)
creating /usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg
Extracting ib.victron-0.1-py3.9.egg to /usr/local/lib/python3.9/dist-packages
  File "/usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg/ib/victron/mk2.py", line 45
    print d, ' '.join(['%02X' % ord(x) for x in data])
          ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg/ib/victron/scripts/getlimit.py", line 8
    print mk2.master_multi_led_info()
          ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg/ib/victron/scripts/getstate.py", line 10
    print mk2.get_state()
          ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg/ib/victron/scripts/monitor.py", line 16
    print 'Time           ', datetime.now().strftime('%Y-%m-%d %H:%M')
          ^
SyntaxError: invalid syntax

ib.victron 0.1 is already the active version in easy-install.pth
Installing monitor script to /usr/local/bin
Installing getstate script to /usr/local/bin
Installing getlimit script to /usr/local/bin
Installing setlimit script to /usr/local/bin

Installed /usr/local/lib/python3.9/dist-packages/ib.victron-0.1-py3.9.egg
Processing dependencies for ib.victron==0.1
Searching for setuptools==52.0.0
Best match: setuptools 52.0.0
Adding setuptools 52.0.0 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for pyserial==3.5b0
Best match: pyserial 3.5b0
Adding pyserial 3.5b0 to easy-install.pth file
Installing pyserial-miniterm script to /usr/local/bin
Installing pyserial-ports script to /usr/local/bin

Using /usr/lib/python3/dist-packages
Finished processing dependencies for ib.victron==0.1

what is my problem and how can I resolve it?

Have a nice day

Going deeper with Victron Multiplus Metrics

Hi, I just wanted to share my post MultiPlus Inverter Metrics since I hope it will be useful to other folks trying to monitor their split phase / parallel / 3 phase Multiplus installations via VE.Bus/MK2/3.

https://symbioquine.net/2022-12-31-multiplus-inverter-metrics/

I am cross-posting as an issue here since I started out building on top of izak/ib.victron and perhaps other people will find this issue if - like me - they outgrow its current features.

Feel free to resolve this issue at your discretion.

Cheers and thanks for originally writing sharing this library!

Force inverter switch on/off batteries

Hello,
Your project is very good. Working as expected. Do you know an easy way to add a command we can send to the inverter
so it switches from batteries to AC main and then the opposite.
Lets say I am watching: Battery Voltage 27.03 V. When i see for example voltage 26.0V i want to force the inverter to switch to AC mains. Then later when i see Battery Voltage 27V i want to force the inverter to switch to batteries again.
Yes i know this can be done from victron panel but i would like this done from linux. I have Lifepo4 batteries which i monitor from other linux scripts. Victron charger is off.

Regards,
Todor

mk2 --> usb cable

Hi, does mk2-usb cable a simply uart protocol in the usb side? I want to try read ve.bus from an arduino/esp8266.

My victron doesn't respond in the way this code was written.

Thanks for the nice lib Izak. I've been adapting it to run on my pi to monitor my RV's inverter charger (multiplus 3000) but I can't get the serial protocol to work. It responds to the initial address set command 'A', but from then on all commands return the version buffer. Here's a trace:
2021-01-19 07:26:54.724916 Debug Print: Write Buffer: b'04ff410100bb'
2021-01-19 07:26:54.763168 Debug Print: Read Buffer: b'04'
2021-01-19 07:26:54.778252 Debug Print: Read Buffer: b'ff410100bb'
2021-01-19 07:26:54.779710 Debug Print: Write Buffer: b'05ff57050000a0'
2021-01-19 07:26:56.203481 Debug Print: Read Buffer: b'07'
2021-01-19 07:26:56.236200 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:26:57.708499 Debug Print: Read Buffer: b'07'
2021-01-19 07:26:57.739990 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:26:59.213114 Debug Print: Read Buffer: b'07'
2021-01-19 07:26:59.244746 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:00.716981 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:00.766060 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:02.237725 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:02.270432 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:03.742243 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:03.774864 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:05.247497 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:05.279015 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:06.752358 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:06.783683 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:08.256595 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:08.288037 Debug Print: Read Buffer: b'ff5621db11000097'
2021-01-19 07:27:09.761064 Debug Print: Read Buffer: b'07'
2021-01-19 07:27:09.792351 Debug Print: Read Buffer: b'ff5621db11000097'

I'd update the firmware on it but I don't have a wondoze machine to run the vc connect app.
Have you any suggestions?
thnx
wcn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.