News How To Build The Xmas Lights From Stranger Things with Raspberry Pi

I haven't been into PCs as much over the last few years, but I came back here to spec out a new PC build I plan to buy. Looking around at the site at articles like this, I can see that this site has lost focus. I guess YouTube is the only place to go for PC enthusiasts anymore. This braindead junk definitely shouldn't be on a site with the reputation of Tom's.
 
I haven't been into PCs as much over the last few years, but I came back here to spec out a new PC build I plan to buy. Looking around at the site at articles like this, I can see that this site has lost focus. I guess YouTube is the only place to go for PC enthusiasts anymore. This braindead junk definitely shouldn't be on a site with the reputation of Tom's.

Given that multiple MOBO reviews can't even accurately count numbers of ports...you may be on to something
 
Everything seem pretty straight forward but I run into issue's with the make run-server and make run-worker.

After make run-server I get this:
make: docker-compose: Command not found
make: *** [Makefile:19: run-server] Error 127

and after make run-worker I got this:
Can't open /dev/mem: Permission denied

So I ran worker with sudo and the lights blinked for a few seconds and then this message repeatedly pops up. I'm guessing it's because the server command isn't working.

ERROR:root:Invalid URL 'web/next?key=': No schema supplied. Perhaps you meant http://web/next?key=?

Any suggestions?
 
Installed docker-compose and got closer. But now I think I'm really stuck.

Step 4/7 : RUN pip install -r requirements.txt
---> Running in 2831c096731d
Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6fa4390 (most recent call first):
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 132
make: *** [Makefile:19: run-server] Error 1
 
The project is designed to install in a Docker container.
Is there a page that describes how to install Docker?
And the appropriate image and use it?

It doesn't need to be in a container. It just needs Docker-Compose.


sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose
dpkg list docker*

The Docker page leaves off docker-compose from the install.
 
So I ran worker with sudo and the lights blinked for a few seconds and then this message repeatedly pops up. I'm guessing it's because the server command isn't working.

ERROR:root:Invalid URL 'web/next?key=': No schema supplied. Perhaps you meant http://web/next?key=?

Any suggestions?

The code is trying to retrieve an environment variable, SERVER_HOST, which doesn't exist. And it needs a schema.
I added SERVER_HOST to my environment, and modified app.py to
return 'http://' + host + '/next?key=' + key

cd ~/stranger/stranger_things_lights/
source .venv/bin/activate
export SERVER_HOST=$HOSTNAME
sudo -E env PATH="$PATH" make install-pi
sudo -E env PATH="$PATH" make run-server

Now it gets past that, flashes the initialization of the lights, but still loops on an error connecting to the server.

fetching http://raspberypi4/next?key=
ERROR:root:HTTPConnectionPool(host='raspberypi4', port=80): Max retries exceeded with url: /next?key= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb04c2a50>: Failed to establish a new connection: [Errno 111] Connection refused'))

It should be something other than port 80. I think port 5000, but I have played around with that without success.
 

TRENDING THREADS