Skip to content

Only partially working out of the box on my ubuntu laptop #25

@goatchurchprime

Description

@goatchurchprime

Cloned the repo, disabled any services attaching to the ports 1880, 1883 and 3000, then:

Do this with conda activated

pip install docker-compose
docker-compose up -d
big install
docker-compose logs -f

MQTT works (with these commands in different windows):

mosquitto_sub -h localhost -v -t "#"
mosquitto_pub -h localhost -t "hi" -m "there"

Node-RED now appears to work:

http://localhost:1880
You need to use "mosquitto" as the broker, not localhost.

The influxDB node is missing, so I can't make database data.

Jupyter also didn't come live for a while on http://localhost:8888/lab with password mingstack. Then does after a few minutes. It starts out with no syntax highlighting and nothing will run. Now it does.

Grafana comes in on http://localhost:3000 default user/pass=admin/admin and then you are forced to change it.

I was hoping to run the following to connect+download from the grafana database using the following python code:

import influxdb
client = influxdb.DataFrameClient("192.168.43.1", 8086, "root", "root", "balena-sense")
k = client.query("select * from fridgepower order by time desc limit 10")


Some needs

  • Where is the /data file connected to externally that the jupyter lab could connect/load/save from?
  • install influxdb into python
  • Inclusion of node-red serial
  • Inclusion of pyserial in jupyter
  • Inclusion of jupyter-micropython-kernel
  • Provision the system with an initial flow (eg doing random numbers) saving to an initial database with an initial dashboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions