All Questions
Tagged with raspberry-pi4 node.js
28 questions
0
votes
1
answer
286
views
PortNotOpenError while connecting to Modbus
I am trying to connect to Modbus TCP using the modbus-serial library for JavaScript. I have confirmed that I am using the correct IP address and port. My network doesn't have a firewall and if it does,...
0
votes
0
answers
36
views
cannot connect to raspberry pi 4 from javascript
I am facing an issue while sending a fetch request from a nodeJS scripture react-native app or reactJs side.
I am not the same network I connected to the hotspot of Raspberry Pi 4 when I run this ...
0
votes
2
answers
1k
views
Next JS 14 SWC support for RPi/ARMV7?
I'm unable to run a small Next JS 14 app on a Raspberry pi 4 (latest version as of right now is 14.0.4).
Visited https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/ and indeed, there are no ...
2
votes
2
answers
938
views
nodejs connector to mariadb keeps timeouting
This is my first stackoverflow post, I am currently working on a project for school, but unfortunately I can't get this bug fixed.
I have a node.js script which should process a JSON file and insert ...
1
vote
0
answers
62
views
Socket io communicating from raspberry pi to Arduino in js
I try to communicate from my raspberry pi to my Arduino in js.
I created a server (app.js)
var http = require('http');
var fs = require('fs');
var index = fs.readFileSync( 'index.html');
var ...
0
votes
1
answer
245
views
cannot install tensorflow on raspberrypi 4
I am trying to install tensorflow for the purpose of installing node-red-contrib-tf-model in node red on a raspberry pi 4. I followed these instructions on https://flows.nodered.org/node/node-red-...
0
votes
1
answer
164
views
Running nodejs, sqlite3 in dockerfile on raspberrypi 4
FROM arm32v7/ubuntu:18.04
RUN apt-get -y install curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get -y install nodejs
#RUN apt-get install -y npm
RUN npm install ...
0
votes
1
answer
84
views
Raspberry PI 4: Control RPI.GPIO pins through dictionary keys
I am trying to control GPIO pins through dictionary pins:
My code:
var gpio = require('onoff').Gpio;
var rpi_board = [{'pin_17_in':new gpio(17,'in')},
{'pin_27_in':new gpio(27,'in')},
...
0
votes
1
answer
467
views
Raspberry Pi 4: cannot update nodejs (10.24.1) and npm (6.) to the latest
For nodejs, I did this on my Raspberry PI 4 terminal:
>> nodejs --version
>> 10.24.1
>> sudo apt remove nodejs
>> reboot
>> sudo apt install nodejs
>> nodejs --...
0
votes
1
answer
500
views
Raspberry Pi 4: Error: Cannot find module 'sqlite3'
Status of sqlite3 installation on my Raspberry Pi 4 B when queried from the terminal:
pi@raspberrypi:~ $ sqlite3 --version
3.27.2 2019-02-25 16:06:06 ...
1
vote
1
answer
151
views
Raspberry Pi 4: My Led blinks only 8 time when I expect it 16 times
Please, find the below screenshot of my program run, compilation, and result. As you see below from the LED blink numbers, I saw my LED blink only 8 times but I anticipated 16 times. How 16 times: ...
0
votes
1
answer
945
views
node-gyp serialport build error on Raspberry Pi 4
I have a nodejs electron app running on a Raspberry Pi 4. The latest raspberry pi OS will not build the application (and older OS versions will not run on the latest hardware.) I fairly sure this ...
0
votes
1
answer
803
views
How to start VLC from NodeJS script (with parameters) using "child_process"?
I used to do this with omxplayer before, on Raspberry Pi, and it worked fine:
const ChildProcess = require("child_process");
ChildProcess.exec(command, function (err) {
if (err !== null)...
1
vote
2
answers
412
views
RaspberryPi Webserver /Cant Access Nginx Server via external public ip. What am i missing? Timeout
im trying now for hours and didnt get any further. I just got a simple Express app and an nginx server running on my raspberry pi.
Problem: I cannot access it through the external api. I always got a ...
0
votes
1
answer
184
views
discord.js embed mesage does not work on Raspberry Pi 4
I wrote a short discord.js Bot, it does work well if i host it on my Windows PC.But if i try to host the same code on my Raspberry Pi 4 with node.js and pm2 it does not show my "-help" ...