The issue is that I don’t understand the way you have setup the Apache2 config file in Version 1.1. I have some doubts on where I should put the folder ‘poppy_monitor’ and which apache2 config file I should modify…
my question is more about how did you configure the apache config file in Version 1.1.
I am asking you this as I went under /etc/apache2/… and I did not find any information about the webserver (popy.local) that redirect you to the wireless configuration.
this is normal, as I guess I need to change the apache2 config.
but when I look at the config file of apache, I can’t neither find how you call the ‘wireless config’ service.
If I remember well, the poppy_install script install the web root at /etc/www/web/ (or something like that). So if you copy all the poppy-monitor repo in /etc/www/web/poppy-monitor/ it should be available at http://poppy.local/poppy-monitor/
Hope it will help! If it doesn’t I will look deeper that. Just let me know.
Wonderful trick !
I did it and I have now the monitoring page.
For the moment, the web page (poppymonitor) doing nothing it seems that poppy is disconnected .
Hi,
The HTTP REST server have to be launched on poppy (in ipython notebook for example) and you have to modify the url in poppy-monitor to point to it. In your case it’s probably http://poppy.monitor:8080 if you start the rest server on the 8080 port.
I have only one issue, if I create an ipython notebook with the code to start the tornado server… Ipythonnotebook shouts (issue with JSON). I had to start the tornado server in python directly:
poppy@poppy:~/dev$ python
Python 2.7.9 (default, Jun 4 2015, 16:36:58)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from poppy.creatures import PoppyHumanoid
>>> from pypot.server import HTTPRobotServer
>>> robot = PoppyHumanoid()
>>> robot.http = HTTPRobotServer(robot, '0.0.0.0', "8080", cross_domain_origin="*")
>>> robot.http.run()
Bottle v0.12.8 server starting up (using TornadoServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.