• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using node.js on NIOT-E-TP151-EN-RE
#9
Thumbs Up 
Hello Armin,

now the work is almost done:
  • The netPI is running in Docker
  • Node.js + needed modules installed
  • OPC/UA-Server is running
  • MODBUS-RTU connection to Mitsubishi FX PLC controller is up
  • Data interchange is running, the data-format from Mitsubishi is a little bit confusing
  • Node-Script can be started as service
Many thanks for your great support until here.

Now, where are 2 points left, to get ready-to-show:
  • after reboot, the export of GPIO-PIN-17 got lost
    A litte shell-script fixes this

    .txt   pin17.sh.txt (Size: 274 bytes / Downloads: 2)
    But this is a little bit silly
  • Script should start automatically at startup, but this fials.
    I adapted a wild-card script for init.d. This works on the console but not at startup.Maybe, because the GPIO PIN 17 is missing?Script prototype:
    .txt   amadaserver.txt (Size: 2.06 KB / Downloads: 2) installing service:
    .txt   installservice.sh.txt (Size: 182 bytes / Downloads: 1)

Do you have a good idea to deal with this?

CU,

Carsten

Solved!!!

I have added my scripts in the entrypoint shell script.

   

Now the missing GPIO PIN 17 is rewritten on every boot and my service is started headless.

Many many thanks to Armin for your big support, endurance and patience!!!!


Attached Files Thumbnail(s)
   
  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 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,500 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  Node Red configuration LucioFiam 3 1,797 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,027 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,288 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,289 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,415 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,601 June-9th-2021, 08:51 AM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,856 November-25th-2020, 01:06 PM
Last Post: zen89
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,249 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,056 September-14th-2020, 01:59 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)