Stack Exchange Network

Stack Exchange network consists of 174 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
19 views

Live Video PiCamera to Website

First I would like to thank all for reading and helping me with the problem. I'm working on a project that is required to get live video from PiCamera and stream it to a website but the Raspberry Pi ...
0
votes
0answers
15 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(...
0
votes
0answers
17 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 ...
0
votes
0answers
18 views

Websocket With Seperate Webserver

I have a Raspberry Pi 3b and I have a WebSocket server up and running on my localhost after following this tutorial. I can go to localhost:8080 and control my pi using a checkbox running socket.io and ...
0
votes
0answers
27 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 ...
0
votes
0answers
19 views

Only static noise on ALSA playback via npm aplay

I'm trying to write a program using this npm library: https://www.npmjs.com/package/aplay However when I fire up the example (from the npm page) with: node index.js It will just output a wall of ...
1
vote
0answers
28 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
27 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
60 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
112 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
36 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
53 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
72 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
65 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
27 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
602 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
43 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
192 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
38 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
32 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
0answers
21 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
121 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
23 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
251 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
174 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
33 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
553 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
50 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
30 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
105 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
150 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
42 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
382 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
261 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
73 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
358 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
345 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
120 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 ...
0
votes
0answers
89 views

Cannot start nodejs server on boot

I'm experiencing an issue starting a nodejs server on Raspberry reboot. I currently have installed Raspbian stretch. I create a script copied in /etc/init.d The command update-rc.d defaults has no ...
0
votes
0answers
28 views

VL6180s, Node, and Raspberry Pi

I've hooked up four VL6180 sensors (not the breakout board!) to my Raspberry Pi 2B, pins 3 and 5 (SDA1 and SCL1). I'm using GPIO pins 11, 13, 15, and 16 to toggle the GPIO0 pins on my sensors to ...
1
vote
1answer
286 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
341 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
66 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
144 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
420 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
129 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
122 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 ...
1
vote
1answer
171 views

systemd status automatically changes to inactive

I can start a service called nodeserver.service and when I check its status it is active. But if I check its status again after a second or two it becomes failed. The service itself looks like this, ...
2
votes
1answer
360 views

NPM package installation failure

I'm having trouble downloading the dependencies in RPI Zero Wireless using sudo apt-get install npm. It failed to fetch the package. I get Err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main ...