Poppy Web interface using "Poppy_monitor"

Dear community !

I am trying to install the very promising monitoring web tool for poppy from -> https://github.com/bumblebeefr/poppy-monitor

I installed it on the poppy I have, pypot… etc VERSION 1.1 :smile:

Now I am trying to configure apache2 to run the Poppy_monitor web application when I do: http://poppy.local/poppy_monitor/index.html

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…

could you help ?
thx

you should poke @Bumblebee and @daweeed

Yeap, you are right.

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.

I don"t know if I am clear :wink:

Just to clarify the request from @ribas, when he said Version 1.1 this is just a normal Poppy humanoid installed with the poppy-install.

This is just an up to date poppy!

:slight_smile:
In fact, I installed the poppy_monitor with the pypot lib associated with. Now I would like to call the "index.html’ page included in @Bumblebee code…

but I can’t reach this page http://poppy.local/index.html

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.

Sorry if I look like a rookie :wink:

The files for the wireless config are in /var/www/web (usual directory for files to serve)

I didn’t test Bumblebee’s code, but be careful, I think they use a modified version of pypot (maybe it has been pulled now…)

arrf!!! I looked in the HTML folder … grrr…
for the pypot lib, I downloaded the one proposed by @Bumblebee

I keep you inform and thx for the quick answers !
:smile:

Hi,

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 :slight_smile: it seems that poppy is disconnected .

I will investigate why (either the lib pypot version or something abot localhost:8080)

I keep you inform

Yes I just did it today!

3 Likes

Oki, I am going to ask a question that will let no doubt on my poor knowledges and my stupidity

  • if I install the latest version of pypot , I should gget the poppy monitor working. fine … but how do I the git command to grab the updated code.

I always get wrong when doing pull/request from command line (I use a GUI normally!).

can someone help me to to the git update comand ?
cheers!

If you have installed your Poppy with the poppy-install script you can do (inside a terminal):

cd $HOME/dev/pypot
git pull

and that’s it. Of course your Poppy need to be connected to the internet in order to be able to pull the last version from the repository!

2 Likes

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’ve added an example on how to launch the rest server on gihub : https://github.com/bumblebeefr/poppy-monitor/blob/master/README.md

1 Like

You are just an hero !

I followed all your instrucitons and I have a nice web interface fully functionnal !

Big Thx to @Pierre and to @Bumblebee for your work.

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.

I would love to talk to you to better understand your code and be able to bring my contributions.
how can we talk ?

cheers !