Skip to content
Achronite edited this page Jan 9, 2023 · 2 revisions

node-red-contrib-energenie-ener314rt FAQ

Diagnosing Issues

The level of DEBUG information kept within the node-red module as it ships is kept to a minimum. In cases where there are issues or problems with the code the level of information output can be increased, but this does require a recompilation of the dependent module Achronite/energenie-ener314rt. The logging operates on 2 further levels, configured in the file (file: energenie-ener314rt/C/energenie/trace.h):

  • TRACE_POSIX
  • FULLTRACE

For the node-red implementation, the trace.h file will be in a directory from your installation directory, on my system the full path to this is /home/pi/.node-red. From this directory you can find the trace.h file in node_modules/node-red-contrib-energenie-ener314rt/node_modules/energenie-ener314rt/C/energenie/trace.h.

In the trace.h file you will see these lines:

// uncomment next line to enable trace debug
//#define TRACE_POSIX
//#define FULLTRACE
  1. Install node-gyp sudo install -g node-gyp.
  2. Edit the trace.h file and remove the '//' from the TRACE_POSIX line.
  3. cd to base directory of the dependent node_module: e.g. cd ~/.node-red/node_modules/node-red-contrib-energenie-ener314rt/node_modules/energenie-ener314rt.
  4. Recompile energenie-ener314rt by: node-gyp configure build.
  5. Restart node-red, e.g: node-red-stop; node-red-start - doing it this way will show the log in your terminal window.

There is also a mode FULLTRACE which gives a ton more info, you can remove the comments from that line as well if just removing TRACE_POSIX is'nt enough.

If you find any code issues, report them in the Issues section.

Clone this wiki locally