thingsboard / rule-node-examples

Examples of custom Rule Nodes for ThingsBoard contribution guide
Apache License 2.0
14 stars 52 forks source link

how to deploy node in this examples into thingsboard #1

Closed ten2net closed 2 years ago

ten2net commented 6 years ago

Defined configuration directive 'tbEnrichmentNodeSumIntoMetadataConfig' is not available

ShvaykaD commented 6 years ago

HI, @ten2net we prepare an article on our website page that will be described how to deploy it to ThingsBoard. I'll let you know as soon as it will be done.

ShvaykaD commented 5 years ago

Hi, @ten2net refer to the following link to view the article mentioned above: https://thingsboard.io/docs/user-guide/contribution/rule-node-development/

esonhon commented 5 years ago

I encountered same error in tb2.3.1

Anthony1957 commented 5 years ago

Hi Team, I tried to add custom nodes following your article and was success. But I ran into problems when I refactored the package names to my own package names. I Have few points to be clarified

  1. Do we have to use package names org.thingsboard.rule.engine.node.Xxxxx always
  2. If we implement FILTER type node it always have to be in org.thingsboard.rule.engine.node.filter package
  3. I also got configuration directive 'tbMyTestNodeConfig' is not available when i tried to implement a new node following Check-key node, what could be the reason Pls help, thanks
smatvienko-tb commented 2 years ago

Hey! It's better to follow the examples in this project.

  1. The package name recommended is org.thingsboard.rule.engine.node.xxxxx
  2. The node type is described inside annotation @RuleNode but in the package name itself.
  3. I believe in the latest version it all work fine

P.S. Package Customization is available using PLUGINS_SCAN_PACKAGES env variable (see example in thingsboard.yml)

# Plugins configuration parameters
plugins:
  # Comma separated package list used during classpath scanning for plugins
  scan_packages: "${PLUGINS_SCAN_PACKAGES:org.thingsboard.server.extensions,org.thingsboard.rule.engine}"