• Hello,

    I created Docker image with espruino-web-ide, but it has some problems. The left lane shell in Espruino Web Ide not write. I am connected to device, but tutorial step 1 not work (1+2).

    Prints attached...

    Can you help me?

    Sorry for bad english.

    Docker repository

    https://hub.docker.com/r/humbertosales/e­spruino-web-ide-rpi/

    Running docker container

    sudo docker run --name espruino -d --restart="always" --net="host" -v
    /dev:/dev -v /var/run/dbus:/var/run/dbus -v
    /sys/class/bluetooth:/sys/class/bluetoot­h -v
    /var/lib/bluetooth:/var/lib/bluetooth --privileged
    humbertosales/espruino-web-ide-rpi:1.0.1­ espruino-server --port 8181

    *Last version today is 1.0.1.*


    2 Attachments

    • Captura de Tela 2017-02-01 às 11.45.01.png
    • Captura de Tela 2017-02-01 às 11.45.29.png
  • What kind of device are you trying to connect to?

    ttyAMA0 is the Raspberry Pi's built-in UART - it'll be sending characters to a pin on the Pi's pin header.

    It's a good sign that is working - if you plugged in a USB device it should appear as /dev/ttyACM0 and assuming the baud rate is correct it'd work fine

  • Hello Gordon!

    I am connecting to the Puck.js via Bluetooth LE.

    I can not upload code and not type in the left lane.
    :-(

    My suspicions are falling on the page ... See!

    1) The page makes several calls to / serial / ports, but after connecting the last call stays open until timeout.

    2) When disconected the server docker crashes with error.

    What do you think?


    3 Attachments

    • Print01.png
    • Print02.png
    • Print03.png
  • I think that's fine.

    As I said above - ttyAMA0 is the wrong port - it's not surprising nothing happens.

    And you're trying to connect to Puck.js? When you first start the IDE server, does it say anything?

    Most likely you just hadn't entered the command:

    sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
    

    before running node.js, so it doesn't have access to the BLE device

  • When I start the IDE serve say only "listening port xxxx"...

    I was run setcap, but nothing! Problem continue!

    Dockerfile

    FROM hypriot/rpi-node:7.4.0
    
    MAINTAINER Humberto Sales
    
    # Install dependencies
    RUN apt-get -yqq update && \
        apt-get -yqq --no-install-recommends install bluetooth bluez libbluetooth-dev libudev-dev
    
    #    apt-get -yqq autoremove && \
    #    apt-get -yqq clean && \
    #    rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /var/tmp/*
    
    RUN ln /usr/local/bin/node /usr/bin/node
    
    RUN sudo npm install -g espruino-web-ide
    
    #    sudo npm cache clean
    
    RUN sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
    
    # Installing serialport manual, because node-gyp crash
    # https://github.com/espruino/EspruinoWebI­DE/issues/161
    RUN sudo npm install -g serialport
    
    EXPOSE 8080
    
    CMD espruino-server
    
    
  • When I start the IDE serve say only "listening port xxxx"...

    Have you connected a Web Browser to localhost:8080?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Issues running Docker container with espruino-web-ide on Raspberry PI3

Posted by Avatar for HumbertoSales @HumbertoSales

Actions