Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node.js]

Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.

0
votes
0answers
22 views

RPI 3 A+ weird behavior when no usb device connected

I have a RPI 3 A+ running a nodejs server that reads a I2C TH sensor and displays an UI with chromium on the official 7 inch display. The node server runs forever with PM2 and the browser runs in ...
1
vote
0answers
6 views

Trigger Volume Up key press in Android with Bluetooth in Node.js

I'm making an app in Node.js and I need to make a remote shutter for Android's camera via Bluetooth. I'm using Bleno/Noble libraries to achieve Bluetooth connection. As far as I know, selfie sticks ...
0
votes
0answers
25 views

Get input from bluetooth with Node js

I want to use a raspberry pi 3B+ with node js to create a simple number counter that will be incremented by pressing a bluetooth button. I need a suggestion on the button to buy, and if it is possible ...
1
vote
1answer
26 views

Incorrect i2c read bytes

NOTE: Please read the bottom. There's a plot twist. I'm reading three bytes and my NodeJS code reads 3, 192, 144 in decimal while my logic analyzer reads 0x03, 0xC0, 0x10 which translates to 3, 192, ...
1
vote
0answers
49 views

Raspbian-compatible JavaScript IDE

Does anyone know of any JavaScript IDEs (or IDEs that support JS) that can be compiled or installed on Raspberry Pi? I've found a few good IDEs that are compilable/installable on the pi, but most of ...
1
vote
0answers
92 views

Unable to install a Map Tile Server on Raspberry Pi

I have a Raspberry Pi 3 B+ running Raspbian uname -a Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" ...
1
vote
1answer
36 views

How can I display data in a table (through software or a webpage)?

I want to send a text file from my Raspberry Pi (Raspbian Jessie) to my PC (Windows) via GSM, this file contains about twenty parameters of a vehicle (ex: level = 20 L). After that I want to display ...
2
votes
0answers
42 views

DLP/SLA 3D Printer application [Updated] [closed]

I want to make a SLA 3d printer with a raspberry pi. The raspberry must control projector,step-motors,sensors and etc. The control commands are sent through a touch lcd which is connected to the ...
1
vote
1answer
45 views

P5 code optimisation for raspberry Pi

When I try to execute this sketch that is based on a face recognition algorithm it really lags on raspberry, whereas when run on different devices (macbook pro and notebook), it runs smoothly. You can ...
0
votes
0answers
31 views

Raspberry pi node: error while loading shared libraries: libl.so.6: cannot open shared object file: No such file or directory

I have a raspberry pi 3 which has been running a node JS script using PM2 for 6 months without issues . However yesterday it stoped working and gives me the following error : node: error while ...
0
votes
1answer
48 views

Use Python flask or NodeJS for controlling stepper motors via Web?

Im planing a project where I need to controll some stepper motors with my RaspberryPI. I'd like to controll those motors interactively via a web GUI. This server should run on my Py. Now I found a ...
0
votes
0answers
82 views

Read real-time data in node from neo-6m gps module in Raspberry pi 3 plus

I am using something like this in node js. And I am getting the correct lat lon details, so I am sure that gps device is connected properly to raspberry pi. const SerialPort = require("serialport"); ...
1
vote
1answer
96 views

Running a persistent node js server on boot and keeping the command line open

I know there are a lot of answers to this question but none have worked for me and I've been at it for something like six hours... Most of the answers also look like they're years out of date. I am ...
0
votes
0answers
88 views

omxplayer - get a url and load in browser window

Bit of a beginner here, so would appreciate all the help I can get. Setting up an electron project and one of its features will allow me to watch live streams. In electron, I can load a URL into a ...
0
votes
1answer
70 views

How to run emulationstation and Node.js at the same time?

I started my first foray into raspberrypi this past week. I have a few goals. The mail goal is to install Node.js and homebridge so I can automate a bunch of RF outlets and turn things on/off using ...
0
votes
1answer
76 views

Client connects to node web server once connected to Raspberry Pi Access Point

I would like to connect a client to my Node.js web server via my rpi access point. I have successfully setup my rpi3 stretch as an access point. Now I am trying to have the client redirected to the ...
0
votes
1answer
63 views

pigpiod pid listen on port 8888 [duplicate]

My nodejs app is using pigpio. It keeps getting error because port pigpiod is listen on port 8888 already. I can kill -9 the process but when I restart pi port 8888 is jammed up again. How do i solve ...
0
votes
0answers
39 views

Multicast UDP packet transmission in background eventually stops

I have a simple application written in python which sends information via multicast udp in a loop, among other network-unrelated functionalities. This python app is launched from a nodejs script, so ...
0
votes
1answer
43 views

How to use GPIO buttons to interact with front end of Nodejs server

So I'm currently trying to make an application that will display columns of data in the browser. I want to be able to interact with what is being displayed with buttons wired in through the GPIO pins. ...
0
votes
1answer
26 views

Making a music device from RPi

I am making a musical instrument from a raspberry pi out of cardboard. It would be like a piano with an octave of notes (13 including sharps). How would I get the raspberry pi to detect when a circuit ...
0
votes
0answers
20 views

Google Translate API rejects exact same script executed on Raspberry Pi, but accepts it coming from other devices!

I am using the following code to translate something via a npm module called google-translate-api: const translate = require('google-translate-api'); var sentence = "Bonjour, mon frere."; translate(...
1
vote
0answers
202 views

Using Bluetooth to transfer data between two Pi's

I am using two Pi 3B+'s, one is a calculator without a screen, the other one is the human interface with a screen. I would like to command the calculator with the other Pi via Bluetooth. I am using ...
-1
votes
1answer
86 views

Raspberry Pi Johnny-five.io and GPIO pins

My code looks quite similar to this: board.on('ready', () => { const motor = new five.Motor('GPIO17'); motor.start(255); } The problem is that when I run the code, its gets error: Unknown ...
1
vote
0answers
97 views

WiringPi install using npm fails

I'm having a hard time installing the wiring-pi node package. It fails on the step "Making wiring-pi ...", spaming the terminal with build errors. If I clone and install wiring-pi manually as ...
2
votes
1answer
235 views

How to run multiple applications on RPI

I'm running a RPI zero (with raspbian as OS) and I would like to run some NodeJS applications. Therefore I have two applications: API and GUI. Both are nodeJS applications, so I would run them via npm ...
0
votes
1answer
119 views

Node.js packages reading moisture sensor: State never changes

I've written similar code in python that works as expected. Using one of these moisture sensors: https://www.amazon.com/dp/B00ZR3B60I The following code always prints "true" const rpio = require('...
0
votes
1answer
71 views

How to create a router like configuration web page on raspberry pi? [closed]

We have a raspberry pi (with raspbian OS) that runs some application, this application uses a local configuration file that contains some data like username, password, server url etc. We will provide ...
2
votes
2answers
136 views

Why does 'apt install node-body-parser' fail?

I have a small Node.js app of my own running on a Raspberry Pi 3 B. A recent apt full-upgrade bumped the nodejs packet from version 4.8.2 to version 8.11.1, and in the process it removed the package ...
0
votes
1answer
130 views

“bash: rbenv: command not found” and “bash: nodenv: command not found”

After trying to install this script using these commands: $ git clone git://github.com/mislav/dotfiles.git ~/dotfiles $ ~/dotfiles/script/bootstrap I restarted my Raspberry Pi and I'm seeing these ...
0
votes
1answer
1k views

Node.js v10.6.0 App cannot connect to MongoDB 2.4 in Raspberry Pi 3 B+

If I want to start my node.js (v10.6.0) app on my Raspberry Pi 3 B+ (OS Raspbian Stretch) via npm run start:prod and my MongoDB (v2.4) was started before via sudo mongod I receive this error ...
0
votes
2answers
107 views

Memory leak using node-serialport library on pi zero w

Ok, I'm scratching my head here. I am playing with the node-serialport library and when I run this script, the memory is eaten up at a rate of 2MB per second: var SerialPort = require('serialport'); ...
0
votes
1answer
786 views

Replace PIXEL with Electron App

Is it possible to only have one full-screen application run without the PIXEL desktop environment on the current Raspbian Stretch Lite? So basically, replace PIXEL with a regular desktop GUI ...
0
votes
0answers
88 views

My PIR sensor watch() not invoke

I installed nodejs on my raspberry pi 3 model B v2. Then I connected PIR sensor using onoff (gpio module for nodejs) module. The problem is when I connect the power cable to the sensor if block ...
0
votes
1answer
40 views

How to send file from Web Application to Raspberry Pi?

I am working on a project which I have to send file from my Web Application(Node.js) to multiple Raspberry Pis. The problem I'm facing is that I don't know how to send file generated by the Web App ...
0
votes
1answer
32 views

How can I make a web UI where the user can set time to trigger an output pin in nodejs?

I am running nodejs webserver on my raspberry pi 3 and I want to create a user interface where the user can set a specific time of a day and trigger an output on that particular time. I have tried ...
0
votes
2answers
30 views

PI watch remote server for change/signal and execute locally [closed]

Need some help on where to start with this. Have a Pi3 and I want it to open a connection to a remote server (say node.js or whatever), and keep that connection open and constantly check for some kind ...
0
votes
1answer
333 views

Trying to setup a node.js script as a system service

I am trying to setup a node.js based telegram bot to run as a system service but get Access Denied error every time I try to execute it. Here is the .service file I have created. [Unit] Description=...
1
vote
0answers
62 views

Node app become slow when running wget

I'm running a node app on a raspberry pi 3, it's a simple player that receive a list of urls (aws s3), download the url with wget and play them with mpd, but when the list is downloaded with wget, ...
0
votes
1answer
775 views

Electron app just shows blank white screen on a Raspberry Pi

I am trying to load a program on an ARM machine which I was running on a Linux on an x86 machine. The program loads but just with a white screen. The program was developed using electron and when I ...
0
votes
0answers
66 views

How can I get all the modules of node.js to raspberry pi. Please see the link below, I need this exact thing for a raspberry

SO I have to run a custom electron app which is running on AMD device after installing node.js from this site, https://ourcodeworld.com/articles/read/410/how-to-install-node-js-in-kali-linux Is ...
1
vote
0answers
133 views

Slow NodeJS upstart time with buildroot, but fast with raspbian?

Building a small linux distro with buildroot using the raspberrypi_defconfig + nodeJS i get a 12+ second upstart on every single node file i try to run. If i on the other hand try it out in raspbian,...
0
votes
2answers
218 views

Raspberry Pi shuts down after starting node red

I have node red installed on my Pi and I have been working with it all day, no errors whatsoever. I left it on for a couple of hours and for some reason it shut down. I didn't notice and thought ...
0
votes
1answer
58 views

Calling random audio files with PiFm + Node.js

I am trying to play a random amount of random audio files over PIFM using node.js // A function that will let me call and play one random audio file. function audio1(){ var child_process = ...
0
votes
1answer
651 views

LM35DZ not working with MCP3208 on raspberry pi 3

Situation I wanna measure the temperature using LM35DZ on raspberry pi 3. I'm using MCP3208 ADC. And since the other analogue sensors (eg. flame sensor..) are working normally, I have no problem ...
1
vote
1answer
346 views

MongoDB's Date() method returning Unix Epoch instead of actual date

I have a node app running on a Comfile Pi, which is a RPi Compute Module 3 mounted in the back of a touch screen interface. I'm gathering and storing data using MongoDB, which is running in the ...
1
vote
1answer
80 views

Node.JS, PiFm and SetTimeout()

I'm working on an audio installation involving PiFM (https://github.com/oatmeal3000/pi2fm) that I want to play random audio files from a large selection of .wavs. My plan is to randomly select an ...
2
votes
0answers
489 views

PI Zero W, Running NodeJS and reading sensors - bad performance [closed]

I am doing a little project for my pet snake and that is a Terrarium controller with my Raspberry PI Zero W. Just for fun I created it using NodeJS since I am a bit familiar with it. A friend of mine ...
1
vote
1answer
506 views

Issues accessing a microphone from Node on Pi Zero

I am having issues using a microphone in a Node script. The microphone (a SEEED Array mic) works when running the command line: arecord -D plughw:1 --duration=10 -f cd -vv ~/rectest.wav It does not ...
1
vote
1answer
161 views

Can't run Node RED — “Invalid desktop entry file: '/usr/share/applications/Node-RED.desktop'”

I tried running Node RED after I tried to install another node red because I didn't know that I needed to copy the IP address on the console and type it in the search bar (I might be wrong; I'm still ...
1
vote
1answer
343 views

NPM error when installing blessed-contrib: 'types/blessed' is not in the npm registry

I'm running Raspbian Jessie Lite and having trouble getting blessed-contrib running. npm install gives me the following errors: pi@PAPI:~/blessed-contrib $ npm install npm ERR! 404 Not Found npm ERR!...