Page 1 of 1

Raspberry Pi Camera Robot - web page display on iPad Mini

PostPosted: Sun Oct 18, 2015 5:51 pm
by bhawkes
Successfully built and all works.

Web page 192.168.41.1 displays OK on iMac if browser is Full-Screen but does not display correctly on iPad Mini - the joysticks are off the bottom of the screen. How do I get it to correctly display on the iPad?

Re: Raspberry Pi Camera Robot - web page display on iPad Min

PostPosted: Mon Oct 19, 2015 1:41 am
by Alan
Hi there,

Welcome to the forums. :) Glad to hear that you're mostly up and running.

To solve your problem on the iPad mini, you may have some joy with rotating the iPad 90 degrees to see if the interface displays better in that orientation.

If that doesn't solve your problem then the web page for the interface will need to be altered slightly. I'm afraid we currently don't have access to an iPad mini for testing, but it should be fairly straightforward for you to modify the web interface yourself. The file you want is called index.html which is stored in the www sub directory of the raspberry_pi_camera_bot directory in the home folder of the Dawn Robotics SD card. The positions and dimensions of the web interface controls are defined in a css style block at the top of index.html so I'd recommend playing with the sizes to try to get them all on screen. When you modify index.html, you'll need to restart the webserver running on the Pi. This is done by running
Code: Select all
sudo service robot_web_server restart


Alternatively, if you stop the service, you can run the web server manually from the command line whilst you're modifiying the interface
Code: Select all
sudo service robot_web_Server stop
cd ~/raspberry_pi_camera_bot
sudo ./robot_web_server.py


Anyway, hope that all makes sense. Please let me know if you need any further info.

Regards

Alan