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
1answer
31 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 ...
-2
votes
0answers
18 views

How to access MySQL and GPIO without NPM packages? [on hold]

So, let's say that I have blocked access to all, but one apt repository, I have no access to the other internet, so no npm, no github, nothing. How could I connect my Node.js server webapplication to ...
0
votes
1answer
29 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
23 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
19 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
23 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
18 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
75 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
42 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
47 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 ...
0
votes
0answers
50 views

Read SI7021 I2C values using node-rpio

I'm trying to read temperature and himidity values from my SI7021 (page 18) via I2C using rpio . But there are a few thing, which I do not understand: Which baud rate should I set? I do not find ...
2
votes
1answer
147 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
0answers
136 views

Android and Raspberry Zero W: weird connection behaviour

I wrote an App on Android (native with Android Studio). This app is able to connect to a RPi Zero W through wifi (Peer-To-Peer Wifi). An Express http server with NodeJS sockets is running on the Zero, ...
0
votes
1answer
63 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
62 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
104 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
93 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
0answers
36 views

Solve Version Mismatch error in Bindings.js - Raspberrpy GPIO

I've been searching for several hours the source of the problem, but can't seem to find it.. I'd like to use PMW with the "rpio" npm library. Here is what i get back /home/pi/Desktop/gpioTest/...
0
votes
1answer
809 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
76 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
496 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
55 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
33 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
30 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
0answers
168 views

Raspberry Pi Intercom or 2 way radio on Node-red

I am thinking of a few projects where this practicality would come in handy to turn a raspberry pi, or similar hardware into a 2 way radio. One is a baby monitor type, where I can stream in mic audio ...
0
votes
2answers
26 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
291 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=...
0
votes
0answers
209 views

bug node.js v4 raspbian

I ran sudo npm i -g npm, but since I keep having this error sudo npm install -g node-dht-sensor ERROR: npm is known not to run on Node.js v4.0.0 Node.js 4 is supported but the specific version you'...
1
vote
0answers
43 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
670 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
57 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 ...
0
votes
0answers
33 views

NodeJS + Mongodb [duplicate]

I bought a Raspberry Pi to run NodeJS and Mongodb on it. I have everything set up about Putty and both is running. The only problem now is that when I start this over Putty and turn off my laptop ...
1
vote
0answers
119 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
183 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
49 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
530 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
288 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
78 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
420 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
419 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
136 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
313 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!...
1
vote
1answer
411 views

rpi-gpio module works in Node shell but not through code

I've setup my Raspberry Pi 2 Model B v1.1 with Node.js v8.7 and installed the rpi-gpio module. I used Node shell (REPL) to test the module, and it worked like a charm. But when I put the same 3 lines ...
0
votes
1answer
71 views

Show HTML from HDMI

On Raspbian Jessie Lite, is it possible to show HTML pages through HDMI using node and webkit? I am not sure on the internals of the Pi for custom graphics, so this question. It is however possible ...
0
votes
2answers
4k views

Update Node JS and delete old one

I've a lot of Raspberry Pi clients, which I've initialized with a 4.5.0 Node JS version, using the following lines of code: wget https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-armv7l.tar.gz tar -...
2
votes
0answers
166 views

Node Script auto start not working - RPI

I have a node script inside /home/pi/Blynk/script.js. I've followed various posts online relating using cron and /etc/init.d, however none seem to be working. The script must be run via sudo, I've ...
0
votes
0answers
485 views

How do I install usb using npm

I'm trying to install a npm usb package on a raspberry pi. It's needed by a library (in turn used by a node for node-red) but trying to install that seperately didn't work, so I'm installing this ...
1
vote
1answer
171 views

“initMboxBlock: init mbox zaps failed” when using pigpio library in a daemon using node.js

I am writing a daemon using node.js, running under systemd and it will monitor the status of the power supply voltage on a raspberry pi 2 B. I am using the node.js wrapper to the pigpio library The ...
1
vote
1answer
137 views

Installing specific NodeJS Version on my pi

If I want to install some specific NodeJS version from the nodejs.org/en/download or nodejs.org/dist website...do I have to take sth. in consideration? As far as I know the raspberrys are based on ...