googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 276 forks source link

Mobile Browser Compatibility #63

Open Luuii opened 10 years ago

Luuii commented 10 years ago

Is there a way to see the created apps on Coder with the mobile browser ? In order for example to control with your tablet o phone device the GPIO Module.

I tried in Chrome under Android and iOS devices and I don't see anything happen with it.

jmstriegel commented 10 years ago

Yes, you can access Coder from a phone or tablet. I've used it in a couple scenarios running mobile Chrome. There are two things to keep in mind:

  1. You need to be on the same network. Make sure your phone is connected to the same wifi access point that your Coder is plugged into.
  2. Bonjour doesn't work on most mobile devices. This is what makes the easy coder.local url work. Instead, you'll need to figure out the ip address of your Coder device. If you can log into it once from a PC and write down the IP, you should be able to connect to that from your mobile device. It's usually something like http://10.0.0.xx or http://192.168.0.xx

Hope this helps.

By the way, if you start doing this a lot, check out the findcoder-appengine folder. It's a hack, but you can run an external appengine project and set your Coder device to ping it with it's IP. Then you go to that public url with your mobile device and if you're behind the same firewall, you'll see links to any Coder devices you have. To set this up, you need to deploy that appengine project (edit app.yaml with your own project id that you create), and you need to edit config.js in your Coder directory to tell it to ping that server.

Luuii commented 10 years ago

It works very well in mobile connectivity. Another question to handle with this issue is: How much devices can manage an a webapp simultaneally in Coder, in other words how many devices can be served with the System of Raspi-Coder, and what knowledge it uses to give a answer this. Thank you ! @jmstriegel