• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using node.js on NIOT-E-TP151-EN-RE
#2
Hi Carsten,

well the box has Node-RED preinstalled and Docker as only two software components you can use. You say you can't go further with Node-RED, so the only possibility to load additional software onto the box using Docker and Containers. So if you want to have your own "thoughts" in the box you can extend it yourself. There is no such thing like OPC-UA preinstalled on the box.

I am not a node.js developer so I don't know how to do it the best. From a Linux shell I found this link on google https://nodejs.org/en/docs/guides/debugg...g-started/. But what I have seen also that one of colleague using Visual Studio Code along with Raspberry Pi applications to debug from remote. There are several links on the internet such as this one explaining how to proceed: https://medium.com/@equus3144/install-vs...895a9aff6f


The most practical way to develop own software and to check is is to buy a $20 compatible Raspberry Pi 3B with Raspbian OS on it and install node.js and all its debug capabilities.

If you then think of the NIOT-E-TPI51 device that is supporting Docker as only possibility to load additional software on it ... then it turn it would be good to continue node.js developments on original Raspberry Pi but under Docker.

To install Docker on Raspberry Pi follow this link https://www.raspberrypi.org/blog/docker-...pberry-pi/.  And then afterwards load a Raspbian OS container onto your Raspberry Pi 3B using the command


Code:
docker run -d --privileged --network=host --restart=always --name=raspbian hilschernetpi/netpi-raspbian


After the container is deployed on your Raspberry Pi then you can "jump" into it  using the command


Code:
docker exec -it raspbian /bin/bash


Then you can make developments in the container and test the "feeling" and have im mind that this container and everything you do in it will later work on NIOT-E-TPI device the same.

If you want to use the TPI device directly for developments and tests then I recommand to load the very same container hilschernetpi/netpi-raspbian onto your TPI51 device and access it over an SSH channel. Here is how to deploy this container on TPI to get it started: https://registry.hub.docker.com/r/hilsch...-raspbian/

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
using node.js on NIOT-E-TP151-EN-RE - by COswald - May-6th-2020, 11:17 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by Armin@netPI - May-6th-2020, 12:12 PM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-14th-2020, 08:35 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-14th-2020, 09:56 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-18th-2020, 07:03 AM
RE: using node.js on NIOT-E-TP151-EN-RE - by COswald - May-20th-2020, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NIOT-E-NPIX-RS485 LucioFiam 6 4,632 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  Node Red configuration LucioFiam 3 1,833 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,056 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,316 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,315 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,449 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,642 June-9th-2021, 08:51 AM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,935 November-25th-2020, 01:06 PM
Last Post: zen89
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,313 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,093 September-14th-2020, 01:59 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)