Avatar for HumbertoSales

HumbertoSales

Member since Feb 2017 • Last active Feb 2017
  • 1 conversations
  • 3 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for HumbertoSales

    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
    
    
  • in Puck.js, Pixl.js and MDBT42
    Avatar for HumbertoSales

    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?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for HumbertoSales

    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.*

Actions