#1 Re: Report Bugs » Quick fix : Control server - server.py » 2015-11-20 09:59:51

I think the problem cause by some wrong configuration of my mac. Maybe caused by DHCP or DNS.
Because the unix command $ping `hostname` can't get the right result.
Suggest to ignore this errors.

Best Regards,

$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> print socket.gethostname()
wuulong-pro
>>> print socket.gethostbyname(socket.gethostname())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno 8] nodename nor servname provided, or not known


$ hostname
wuulong-pro

$ping `hostname`
ping: cannot resolve wuulong-pro: Unknown host

#2 Report Bugs » Quick fix : Control server - server.py » 2015-11-18 13:53:46

wuulong
Replies: 2

Hi,

        When I run control server on the MAC 10.11. I got some errors related to socket.gethostbyname in the server.py
        Seems this is the useless function. so I just quick fix it like this. Then the USB version of control server works fine for me.
        Hope this information help for others too.
        Wuulong

--------------------------------------
       
    # Print server configurations.
    #ip = socket.gethostbyname(socket.gethostname())
    ip="localhost"
    print '"PLEN - Control Server" is on "%s:%d".' % (ip, args.port)

#3 Report Bugs » Issues - Control server with bluetooth support on mac » 2015-11-18 13:42:49

wuulong
Replies: 1

Hi PLEN2,
        Thanks your good job to invent PLEN2. We love it.

        I just got the PLEN2 recently. Here are the progress, also the issue

    I have successfully use Motion Editor(WEB) to access PLEN2 through control server on USB. I am using MAC 10.11.
   
    I am trying to use Motion Editor (WEB) to acccess PLEN2 through control server on bluetooth interface. But it seems to reply TIMEOUT while the connect.
   
    Is that expected to be successs? At the same time, the PLEN connect (iPhone) version can success play motion on the PLEN2.
   
    Thanks. Wuulong
    
    Here is the detail msg.
-------------------------------------------------------------------------------
control_server>  python server.py -d ble
===============================================================================
______    ________________________________________________________________
/      `  |                                                                |
| @  @ | <  "PLEN - Control Server" is a HTTP server for controlling PLEN. |
`:====:'  |________________________________________________________________|
===============================================================================
"PLEN - Control Server" is on "localhost:17264".
===============================================================================
Bottle v0.12.9 server starting up (using WSGIRefServer())...
Listening on http://localhost:17264/
Hit Ctrl-C to quit.

[ CONNECT ] TIMEOUT
127.0.0.1 - - [18/Nov/2015 21:20:55] "GET /connect HTTP/1.1" 200 50
[ CONNECT ] TIMEOUT
127.0.0.1 - - [18/Nov/2015 21:21:07] "GET /connect HTTP/1.1" 200 50
[ CONNECT ] TIMEOUT

Board footer

Powered by FluxBB