Git Product home page Git Product logo

eagle-mqtt-bridge's People

Contributors

bearmarch avatar dependabot[bot] avatar normanr avatar thevoltagesource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eagle-mqtt-bridge's Issues

Does the bridge hang if the MQTT broker goes offline?

I don't have any log info to help to determine if this is a bug or not, but I want ask if this condition is handled:

If the MQTT broker/server goes offline for some time, will the bridge recover when the broker is restored?

If needed I can try to recreate the condition and capture any available log info.

Error message in the logs

TypeError: Cannot read properties of undefined (reading '0')
at processNode (/app/eagle-listener.js:101:31)
at processMessage (/app/eagle-listener.js:36:7)
at /app/eagle-listener.js:21:6
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/app/node_modules/express/lib/router/index.js:341:12)
at next (/app/node_modules/express/lib/router/index.js:275:10)

Feature Request - Add "currentsummationreceived"

Thank you for releasing this bridge process. It has been the perfect piece of glue logic for my legacy Eagle-200 due to intermittent lock up of the local API, as well as general problems with Rainforest's legacy Portal not being reliable.

I have solar panels that generate energy. I have not observed the "currentsummationdelivered" value decrease when the solar array is producing energy.

Would it be possible to add the "currentsummationreceived" value as well and update the docker container?

Make logging output selectable

Currently the code dumps received messages out to the console. This is good for testing but in prod this is unneeded data leaking out to a log somewhere. Does NodeJS have a logger like Python? Should I just read an environment variable to see if I should output the log? Don't paralyze your self, start simple and learn more!

Adding other data fields

Hi. Great work on this project!

wrt: Details of most Eagle messages are in the code and can be used to enable additional published data.

I'm trying to add in price and tier. I'm a noob so i'm likely missing some simple step.
Could you point me to some guidance on how to modify the correct files? Here is what I did in the listener file.
Thanks!

  case 'pricecluster':                             
     var price = msg.price[0]                         
     var tier = msg.tier[0]                              
     //{ devicemacid: [ '0xd8d5b90000003e58' ],                                                  
     //  metermacid: [ '0x00078100001d2c64' ],               
     //  timestamp: [ '0xffffffff' ],                                                                                     
     //  price: [ '0x00000048' ],                          
     //  currency: [ '0x0348' ],                                                                                        
     //  trailingdigits: [ '0x03' ],                
     //  tier: [ '0x01' ],                                
     //  starttime: [ '0xffffffff' ],                       
     //  duration: [ '0xffff' ],                                                                 
     //  ratelabel: [ 'Set by User' ],                       
     //  port: [ '/dev/ttySP0' ] }                                                                                        
     var message = {'meter/price': price, 'meter/price': tier}   

Error based on this change:

at processMessage (/app/eagle-listener.js:162:57)
at /app/eagle-listener.js:22:6
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at next (/app/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
at /app/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
at next (/app/node_modules/express/lib/router/index.js:275:10)
at responseHandler (/app/node_modules/express-xml-bodyparser/lib/types/xml.js:64:9)

Optional environment variable causes crash if not specified.

If SUMMATION_WATTS is not defined the app crashes with the following error.
TypeError: Cannot read property 'toUpperCase' of undefined

Need to address the undefined situation and make sure that all other variables work as intended if undefined or have bad data.

v1.1.0 won't start on Raspberry Pi 4

v1.1.0 won't start and gives this error message:

#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0x7ebac54c

I rolled back v1.0.0 and it works fine.

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.