Coder Social home page Coder Social logo

Comments (7)

fusionedv avatar fusionedv commented on May 26, 2024

@Merphun I wrote a quick and dirty script to connect ioBroker states with gBridge https://github.com/blackrozes/ioBrokerScripts/blob/master/gbridge.js. Perhaps that helps.

from gbridge.

Merphun avatar Merphun commented on May 26, 2024

Hello,
thank you. It works like a charm!

br
Mike

from gbridge.

peterkappelt avatar peterkappelt commented on May 26, 2024

Hi,

since the last update of gBridge, you can now assign own MQTT topics per device!

from gbridge.

Merphun avatar Merphun commented on May 26, 2024

Hi,
if you could point me in the right direction regarding updating gbridge without loosing all my settings (I use your docker composer files) I will happily test it
br
Mike

from gbridge.

peterkappelt avatar peterkappelt commented on May 26, 2024

To be honest, I didn't really think about updating docker containers until now...

It should work the following way by only updating the gBridge containers. Your data is stored in the database, it should not be touched by these commands.

To be safe, back up your database first:

sudo docker-compose exec database /usr/bin/mysqldump -u gbridge_db --databases gbridge_db -p

Enter the MYSQL_PASSWORD from the compose file once prompted. Save the output of this command, so your data could be restored in the case of a serious problem.

Start the upgrade.
Prefix each command with "docker-compose"

stop
pull web
pull redis-worker
up

This should lead to recreation of the containers "web" and "redis-worker", but "database" and "cache" should remain as they are. Abort docker-compose up after it initialized correctly, then start the containers in the background with docker-compose start.
Migrate the database:

docker-compose exec web php artisan migrate

Open the web interface, click the edit button for one device of your choice. Click on save on this page, without necessarily making changes. (This will lead to same background processes being triggered).

from gbridge.

Merphun avatar Merphun commented on May 26, 2024

Hi,
thanks for pointing me into the right direction. The Update worked this way smooth and witout problems on synology. Just two additions (if youm plan to update your manual with this):

  • First you have to Navigate to the directory where gbroker has been installed ;-)
  • Second on synology it was necessary to run the docker-compose commands as sudo

I'll test the new functionality asap, thanks!
Mike

from gbridge.

peterkappelt avatar peterkappelt commented on May 26, 2024

Thanks for testing, I'm going to add these points to the docs.
Please re-open the issue or comment if there are any further questions.

from gbridge.

Related Issues (20)

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.