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 [javascript]

a high-level, dynamic, untyped, and interpreted programming language often used in World Wide Web content generation.

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 ...
1
vote
0answers
81 views

Slow Chromium on Raspberry Pi 3B+ after update from Jessie to Stretch

I've been looking into my problem for days now and I didn't find a solution to it. If there is already a question about this issue, I have not found it, my apologies. Please direct me to it if there ...
0
votes
0answers
28 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 ...
0
votes
1answer
117 views

Why does a communication over SPI returns garbage?

I am trying to read from a gps module NEO-6M using Raspbery Pi 3 B over SPI. It nicely works with Arduino but it doesn't want to work with Raspberry. I have used different libraries in Pyhon, even ...
0
votes
0answers
29 views

Eclipse Paho Javascript Client and browser support

One of my RPi's is configured as webserver (Apache2). On the same RPi runs a MQTT broker (Mosquitto). The website is configured as follows: root@raspberrypi:/etc/apache2/sites-available# cat 000-...
1
vote
2answers
89 views

Can P5.js or Processing read the output of the Sense HAT on a Raspberry Pi 3?

My objective is to create interactive art by taking the inputs from the Sense Hat and using the values read to update a drawing created with p5.js or processing. Is there a way to do this? I thought ...
0
votes
0answers
129 views

Memory Error during video streaming

I'm making a video streaming server on my Raspberry Pi, using picamera and python. I've found a way to do that with image capturing and sending them encoded by base64 through the stream to the website,...
2
votes
0answers
367 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
191 views

What Circuit Should I Use to Hardwire Raspberry Pi to Doorbell?

I am trying to connect my raspberry pi to my hardwired doorbell in order to send a text message when the doorbell button is pushed. I have successfully sent the text message using a button connected ...
0
votes
1answer
104 views

HTML doesn't show button if not in a local network using webiopi.js, how show it on the browser?

I followed a tutorial made by Jerry Hildenbrand, where he teaches how to control a LED via local network. His tutorial works perfectly, I just need to type tightvncserver in the raspberry and open ...
1
vote
1answer
131 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
92 views

Start my software before the user can even see that Raspbian is running in the background?

Say I have written an app. I would now like the raspberry pi to start up and go straight into that app, give the user no options to do anything on the raspberry pi's OS etc. or break out of it. I don'...
0
votes
1answer
370 views

npm install ethereumjs-util on a raspberry pi

I need to install the npm package ethereumjs-util which will not install on my raspberry pi. I am using a pi 2 with raspbian. The following is the terminal output. Please tell me what I need to do to ...
0
votes
0answers
147 views

Animated GIF won't work on raspberry pi

i'm building a local website that displays an animated GIF. The website is opened using chromium web browser. i'm sure that the GIF itself is working because I've tried to open it in different ...
0
votes
1answer
190 views

analog sensor read using Cylonjs

I am trying to read an analog sensor value using cylonjs framework. I used this code for reading values. var Cylon = require('cylon'); Cylon.robot({ connections: { ras: { adaptor: 'raspi'} }...
0
votes
0answers
25 views

How can I hook up several buttons to a Raspberry Pi (or other device) and have a certain word appear on a screen for a certain amount of time?

Some background info: I do a Christmas Light show, one where it blinks to the music. This year I am going to be having a "jukebox" where a guest can press a button, and then the song will play. There ...
0
votes
1answer
94 views

Create Website on RPi using Windows IDE

I'm really new to using an RPi as a web server. I want to develop a couple simple web sites, probably using Javascript for now, maybe Python. I've set up Apache, Python, and MySQL on the RPi3, running ...
1
vote
2answers
89 views

Servos on Arduino run fine connected to Mac, poorly connected to Raspberry Pi 3

I have a Snapper Robotic Arm kit from Trossen Robotics. The servos are powered externally via 7v/5a supply that came with the kit. I power the Geekduino via USB to micro-USB connection, and upload the ...
-1
votes
1answer
533 views

JS socket.io-client not working on rasp

Client is perfect on my computer(server on com), but rasp is not. Not thing happend when i runs it. Give me some idea, please! Server: var express = require("express"); var app = express(); var ...
0
votes
1answer
586 views

Get export state of GPIO pin (pi-gpio)

I'd like to get the current export state (output / input) of a GPIO pin on a RaspberryPi using JavaScript. Due to the fact that I've a low-active relay, which is activated in the second I export out ...
3
votes
1answer
1k views

Printing state of wiringpi pin onto webpage

I have a Pi set up with Apache and wiringpi, and I would like to read the state of an in pin (every 20 seconds, if possible) and display it on my webpage using PHP. The input is to determine if my ...
0
votes
1answer
543 views

Is it possible for motion to process an mjpg-streamer live feed and send alerts to a client viewing an NGINX webpage live? Is PubNub a solution?

I already have a web server set up with NGINX showing a live webcam feed from the mjpg streamer as part of a laser tag game where the idea is for the user to be able to view a live camera stream by ...
1
vote
1answer
656 views

Chromium/Epiphany boost javascript/transformation performance

I'm currently writing software for a Raspberry Pi 2B to work as digital signage. I'm trying to use HTML as a kiosk atm. This works all very well, but javascript and transformation performance is ...
2
votes
1answer
71 views

Javascript pm2 fails to persist my scripts at RPI boot time

I do this to make my scripts run on Raspbian start: sudo pm2 startup ubuntu sudo pm2 start my_script.js sudo pm2 start another_script.js Yet, RPi starts without them, what can be wrong?
9
votes
1answer
780 views

Autologin into a webpage via the default GNOME-Webbrowser

I'm trying to call a html page like this with the Raspbian's default web browser and it leads me just to the default login-page. Neither does it with Midori on the desktop. When calling the exact ...
2
votes
1answer
2k views

Raspberry pi port forwarding with nodejs server

I have a nodejs server make using websocket. Currently, i can view it in localhost by typing raspberrypi.local:5000. Now I want to portforward it so ppl from other network can view it too. How do i go ...
2
votes
0answers
1k views

How can I enable javascript in the integrated Epiphany web browser?

Javascript worked just fine on my Raspberry Pi 2, but after the browser silently crashed, it no longer works. I can still browse, but javascript no longer works. I tried rebooting, no effect. I ...
1
vote
0answers
145 views

How do you use GPIO output with RPi and Google Coder?

I am trying to set up the "Blinky Lights" project with Google Coder v0.9. I have used the code from the example project, unaltered, as well as setting up my breadboard exactly as the instructions ...
1
vote
1answer
274 views

GPIO's firing every ~3 milliseconds

I'm currently building a project using adafruits arcade buttons, and seem to be having a bit of an electrical problem. Using a Raspberry Pi 2 , and after confirming that wires aren't touching in ...
1
vote
3answers
3k views

Is it possible to make Javascript interact with the GPIO pins?

I want to make a game with Javascript with LED and pushbutton interaction. My problem is: I don't know how to make Javascript "talk" with the GPIO pins. Any help would be highly appreciated.