Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
9
votes
1answer
986 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 ...
3
votes
1answer
2k 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 ...
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
1answer
49 views

How to implement the push button example using rpio?

Background I am trying to learn how to use the rpio library (https://github.com/jperkin/node-rpio) in my nodejs application. What do I want to do So far I have been able to test the blink led ...
2
votes
0answers
588 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 ...
2
votes
1answer
79 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?
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
2answers
93 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
vote
1answer
299 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
4k 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.
1
vote
1answer
51 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 ...
1
vote
1answer
39 views

Talk via JavaScript to the UART

I want to send Data to the UART from JavaScript. No question (yet) about initialising the UART, but how to send data from JavaScript?
1
vote
2answers
227 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 ...
1
vote
1answer
853 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 ...
1
vote
0answers
34 views

Problem open /dev/mem with nodejs for the pi4

I am writing code to access /dev/mem on the raspberry pi 4. I'm using nodejs with the package rpio. Rpio uses a "C" language interface. I have modified the *.h file to reflect changes in the hardware ...
1
vote
0answers
59 views

I have a float switch, can I read GPIO and see if it's opened or closed?

It's something like this. It gives either High or Low when only when it is closing the circuit. Reading already closed circuit does not seem to work. If I connect to ground it always give LOW no ...
1
vote
0answers
775 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 ...
1
vote
1answer
307 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 ...
1
vote
1answer
320 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
2answers
130 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'...
1
vote
0answers
154 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 ...
0
votes
1answer
859 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 ...
0
votes
1answer
24 views

Use Raspberry Pi 3 with its camera module to live stream and also store that video on cloud

I have a Raspberry Pi 3 and camera module, I want to use that camera and live stream our internet and also store that video on cloud in chunks of specific time period (like store videos of 1 hour ...
0
votes
1answer
534 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
1answer
224 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
1answer
108 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 ...
0
votes
0answers
27 views

How do I control a GPIO pin with a HTML button?

I am trying to send a temporary signal through one of the GPIO pins on my Pi 4, like to light up an LED for 1 second then turn off. Is there are way to do this by clicking on a button on my HTML web ...
0
votes
0answers
33 views

NPM dependencies aren't installing correctly

I'm trying to use PM2 or Forever on a Raspberry Pi 3B, but when I try running the command pm2, I get this error: Error: Cannot find module 'read' Require stack: - /home/pi/.nvm/versions/node/v12.10.0/...
0
votes
0answers
30 views

Lagging/freezing

We are receiving signals from hardware components that we need to measure very precisely down to the millisecond. It is all working very well until a minor freeze occurs roughly about once every 3 to ...
0
votes
1answer
152 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
1answer
417 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
1answer
137 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 ...
0
votes
0answers
259 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
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
675 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
681 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
votes
1answer
50 views

Newcomer to RPi from web developing (HTML/CSS/Javascript). Do I have any advantages? [closed]

I'm looking to get in to the wonderful world of RPi. I can make a website with HTML/CSS/JavaScript/PHP so does that give me any kind of advantage over a true RPi newbie? For my first project I'd like ...