balena-labs-projects / connector

Auto-configured data connector block based on Telegraf
15 stars 8 forks source link

Add support for local mode #38

Closed tmigone closed 2 years ago

tmigone commented 2 years ago

Tested in the following scenarios:

Connects-to: #5 Closes: #22, #37 Change-type: minor Signed-off-by: Tomás Migone tomas@balena.io

ghost commented 2 years ago

Your landr site preview has been successfully deployed to https://landr-balenablocks-repo-connector-preview-38.netlify.app

Deployed with Landr 6.33.0

tmigone commented 2 years ago

Hmmm i built the image and im now trying to test outside of local mode and I get this:

[Logs]    [10/8/2021, 3:42:23 PM] [connector] balenaBlocks connector version: 0.0.5
[Logs]    [10/8/2021, 3:42:23 PM] [connector] Changing hostname to e95ee33
[Logs]    [10/8/2021, 3:42:23 PM] [connector] Generating config
[Logs]    [10/8/2021, 3:42:23 PM] [connector] Traceback (most recent call last):
[Logs]    [10/8/2021, 3:42:23 PM] [connector]   File "./autowire.py", line 4, in <module>
[Logs]    [10/8/2021, 3:42:23 PM] [connector]     from pluginbase import PluginBase
[Logs]    [10/8/2021, 3:42:23 PM] [connector] ModuleNotFoundError: No module named 'pluginbase'

Ring any bells @phil-d-wilson ?

phil-d-wilson commented 2 years ago

@tmigone I've just run your branch up on a device NOT in local mode, and it works fine.

tmigone commented 2 years ago

@balena-ci rebase