Giter Club home page Giter Club logo

Comments (6)

dlmcpaul avatar dlmcpaul commented on July 21, 2024 1

Ah good. I will likely have to fix the spelling for the next release so keep an eye out unless I can alias them or something.

Let me know how it goes using mqtt and I will update the documentation as well.

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on July 21, 2024

Sorry try adding -e SPRING_PROFILES_ACTIVE=mqtt

from enphasecollector.

ronajon avatar ronajon commented on July 21, 2024

i get an error with the above settings

2023-11-21T00:14:36.175+01:00 ERROR 7 --- [ scheduling-1] com.hz.services.OutputManager : Failed to collect data from Enphase Controller - Error creating bean with name 'mqttService' defined in class path resource [com/hz/services/MqttService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'mqttClient' defined in class path resource [com/hz/configuration/MqttConfig.class]: Failed to instantiate [org.eclipse.paho.client.mqttv3.IMqttClient]: Factory method 'mqttClient' threw exception with message: Please configure the mqtt settings

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on July 21, 2024

Hmm, the mqqt resource is not being instantiated. I will look further.

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on July 21, 2024

Ok, I seem to have mispelt the configuration properties

try

docker run --rm -e TZ=Europe/Amsterdam
-e ENVOY_BEARER_TOKEN=xxx
-e ENVOY_CONTROLLER_HOST=192.168.110.80
-e ENVOY_MQQTRESOURCE_HOST=192.168.110.250
-e ENVOY_MQQTRESOURCE_PORT=1883
-e ENVOY_MQQTRESOURCE_TOPIC=enphase
-e SPRING_PROFILES_ACTIVE=mqtt
-p 8080:8080
dlmcpaul/enphasecollector:latest

The properties are prefixed with MQQT instead of MQTT. At least I got the profile prefix right :-(

from enphasecollector.

ronajon avatar ronajon commented on July 21, 2024

got it working with the MQQT prefix :)

from enphasecollector.

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.