Questions tagged [javascript]

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

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
992 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
80 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
0answers
39 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
67 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
805 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
311 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
342 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
131 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
0answers
29 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
43 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
160 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
425 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
138 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
266 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 ...