Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get SimPixel to connect #33

Open
emdeex opened this issue Mar 6, 2020 · 3 comments
Open

Trying to get SimPixel to connect #33

emdeex opened this issue Mar 6, 2020 · 3 comments

Comments

@emdeex
Copy link

emdeex commented Mar 6, 2020

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
Copy link
Member

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
Copy link
Author

emdeex commented Mar 6, 2020

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
Copy link
Collaborator

mwcz commented Mar 12, 2020

Glad you like it! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants