Avatar for user153457

user153457

Member since Feb 2023 • Last active Mar 2023
  • 3 conversations
  • 13 comments

Most recent activity

  • in General
    Avatar for user153457

    I seem to have solved my problems, here's the docker file:

    version: "3.9"
    services:
      espruinohub:
        image: espruino/espruinohub
        hostname: espruinohub
        container_name: espruinohub
        privileged: true
        environment:
          - TZ=Europe/London
          - NOBLE_HCI_DEVICE_ID=0
        network_mode: host
        volumes:
          - /home/pi/espruinohub/config.json:/data/cĀ­onfig.json:ro
        restart: unless-stopped
    
      node-red:
        image: nodered/node-red:latest
        environment:
          - TZ=Europe/London
        ports:
          - "1880:1880"
        network_mode: host
        volumes:
          - node-red-data:/data
        restart: unless-stopped
    
    
      mosquitto:
        image: eclipse-mosquitto:2
        volumes:
          #- ./mqtt/config/:/mosquitto/config/
          - ./mqtt/log/:/mosquitto/log/
          - mqtt-data:/mosquitto/data/
        network_mode: host
        ports:
          - 1883:1883
          - 9001:9001
    
    volumes:
      node-red-data:
      mqtt-data:
    

    I need to find the folder where to store the Espruino web pages.

  • in General
    Avatar for user153457

    I have wrote my own docker compose file now which works quite well, but one question about the config.json:

    "mqtt_host": "mqtt://localhost",
      "//mqtt_options": {
        "username": "user",
        "password": "pass",
        "clientId": "clientid"
      },
    

    if I have an open MQTT broker, do I just omit the username and password fields?

  • in General
    Avatar for user153457

    There are like 20 devices in range, I can't really understand what is the problem.
    I will probably reinstall everything again.

  • in General
    Avatar for user153457

    It seems to be constantly failing even when restarting this is weird ...

  • in General
    Avatar for user153457

    It seems to be happened at midnight.

    EspruinoHub.service - EspruinoHub BLE -> MQTT bridge
         Loaded: loaded (/etc/systemd/system/EspruinoHub.serviceĀ­; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Sat 2023-02-18 01:33:55 GMT; 5 days ago
           Docs: https://github.com/espruino/EspruinoHub
        Process: 25723 ExecStart=/home/pi/EspruinoHub/start.sh (code=exited, status=1/FAILURE)
       Main PID: 25723 (code=exited, status=1/FAILURE)
            CPU: 897ms
    
    Feb 18 01:33:55 pihome systemd[1]: EspruinoHub.service: Scheduled restart job, restart counter is at 5.
    Feb 18 01:33:55 pihome systemd[1]: Stopped EspruinoHub BLE -> MQTT bridge.
    Feb 18 01:33:55 pihome systemd[1]: EspruinoHub.service: Start request repeated too quickly.
    Feb 18 01:33:55 pihome systemd[1]: EspruinoHub.service: Failed with result 'exit-code'.
    Feb 18 01:33:55 pihome systemd[1]: Failed to start EspruinoHub BLE -> MQTT bridge.
    
  • in General
    Avatar for user153457

    It seems to have crashed today let me investigate...

    • 7 comments
    • 394 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for user153457

    Great I will give it a try, I want to see if it can pickup the light pulses of my energy meter.

  • in General
    Avatar for user153457

    I think we are missing each other, yes exactly I want to use the EspruinoHub installed on my Raspberry so that I can connect remotely from my laptop (which is far away from the BLE sensors) to the ide and then program the sensors via the WebBluetooth option.
    Yes I could do the same thing via SSH into the box and run the commandline but this is not always possible because of firewalls and other controls.

    I seem to recall that not having SSL enabled on webpages doesn't allow the WebBluetooth dialog to be available?

Actions