ManiacalLabs / SimPixel

WebGL Pixel Art Visualizer
http://simpixel.io
GNU General Public License v3.0
9 stars 7 forks source link

Trying to get SimPixel to connect #33

Open emdeex opened 4 years ago

emdeex commented 4 years ago

I'm running bibliopixel demo on a Pi4 (192.168.0.182)... it appears to be working, but I can't get a webpage to load from my laptop (192.168.0.33)

I can see:

netstat -neap | grep python
tcp        0      0 0.0.0.0:1337            0.0.0.0:*               LISTEN      1000       95404      25941/python3
tcp        0      0 192.168.0.182:1337      192.168.0.33:54317      ESTABLISHED 1000       94886      25941/python3

So it seems the port is open on the Pi.. and the connection is being made from the laptop. But all I get is "could not connect" from Chrome. And http://simpixel.io/ says "could not connect"

adammhaile commented 4 years ago

First thing first, our official support is over here: https://forum.maniacallabs.com/ This is just for actual bug reports against the code itself.

That being said - In SimPixel are you updating the address to point to your Pi4?

image

In general we don't recommend using SimPixel cross-device. It's possible but there's a million things that could block the websocket connection. For example, some versions of FireFox have started to block it completely because we aren't using encrypted websockets 🤦‍♂ Not something that's really fixable - but if you go all local that doesn't matter.

In general, this is the beauty of BiblioPixel - you can test your code on a laptop or whatever using SimPixel and then drop it on a Pi and it just works - swap to a hardware output driver and you are good to go.

emdeex commented 4 years ago

Thanks, sorry... noted about the forum... love the code BTW...

I did get it to work, I was trying to get simpixel.io to connect using http://xxx .... when the correct prefix was ws://xxx It works great now... very cool !

mwcz commented 4 years ago

Glad you like it! :D