GithubHelp home page GithubHelp logo

outbackspc's Introduction

Credits

Special thanks goes to the following for the basis of this modified code:

And all other authors and community members of victron which developed or helped to develop drivers, services and componentes

OutbackSPC

This is a driver for VenusOS devices.

The driver will communicate with a Outback SPC III via Bluetooth and publish this data to the VenusOS system.

Prerequisites

You need to setup some depenacies on your VenusOS first

  1. SSH to IP assigned to venus device

  2. Resize/Expand file system

/opt/victronenergy/swupdate-scripts/resize2fs.sh

  1. Update opkg

opkg update

  1. Install pip

opkg install python3-pip

  1. Install build essentials as bluepy has some C code that needs to be compiled

opkg install packagegroup-core-buildessential

  1. Install glib-dev required by bluepy

opkg install libglib-2.0-dev

  1. Install bluepi

pip3 install bluepy

Installation

When you install with one of these methods the system will take care of starting the service and keep it running. You might want to start things manually. IN this case do not use SetupHelper method. Install manually put skip the install script. After that you can proceed with configuration and testing manually section.

Install with SetupHelper from kwindrem

This script is meant to be installed through the SetupHelper of kwindrem. https://github.com/kwindrem/SetupHelper

Use the following details:

Package Name: OutbackSPC
GitHub User: DonDavici
Github branch or tag: main

Install manually

  1. Install git

opkg install git

  1. switch to victronenergy directory

cd /opt/victronenergy/

  1. Clone dbus-btbattery repo

git clone https://github.com/DonDavici/OutbackSPC.git

  1. run install script

run ./installservice.sh

  1. Reboot your system

reboot

Configuration

Due to the fact that we have to connect to the device to read the data (I don't think it is has implemented notifiy functionality - maybe I am wrong ;-) we have to trust and pair our device manually before we can use it with our service.

  1. select our service directory

cd /opt/victronenergy/OutbackSPC/ or if you used SetupHelper cd /data/OutbackSPC

  1. scan for nearby devices

./scan.py

After you have found out the mac adress of your device you have to make the device connectable. replace xx:xx:xx:xx:xx:xx with the Bluetooth address of your BMS/Battery

  1. start bluetoothctl

bluetoothctl

  1. trust the device

trust xx:xx:xx:xx:xx:xx

  1. pair with the device

pair xx:xx:xx:xx:xx:xx (enter 000000 or 123456)

  1. connect optionaly to verify connection

connect xx:xx:xx:xx:xx:xx

  1. exit bluetoothctl

exit

  1. edit default_config.ini (set OUTBACK_ADDRESS)

nano default_config.ini

  1. reboot system

reboot

Test with output to console

with config (OUTBACK_ADDRESS has to be set in default_config.ini)

/opt/victronenergy/OutbackSPC/dbus-btbattery.py

without config

/opt/victronenergy/OutbackSPC/dbus-btbattery.py xx:xx:xx:xx:xx:xx

Logfiles

/var/log/OutbackSPC

NOTES: This driver is is still in development and may not work as intended. Use at your own risk!

outbackspc's People

Contributors

bradcagle avatar dondavici avatar

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.