corvis / prana_rc

Python library and CLI to control Prana recuperators via BLE connection (https://prana.org.ua/)
GNU General Public License v3.0
20 stars 6 forks source link

I can't start the server. #36

Open claustro opened 1 year ago

claustro commented 1 year ago

Thank you very much for your work , Unfortunately I am unable to run the server. I have on the same pc home assistant supervised and prana_rc server installed following the provided instructions. ( pip install prana-rc[server-tornado]) on debian version 11.5 The problem is I can't find or ping the server on http://localhost:8881. I tried also with ip without success. Should I start the server after installation?

Thank you Andrea

corvis commented 1 year ago

Yes, you should start the server with prana http-server command.

claustro commented 1 year ago

Thank you very much for your answer!! . I managed to start the server

Jokeru18 commented 1 year ago

I have installed the Prana-RC server on a amrbian device. However I'm getting this error. Any ideea waht's the issue? HTTP server works on my debian machine, but I have other devices that use BT in HA and need to separate this HTTP server.

-> ERROR: [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist

Jokeru18 commented 1 year ago

LE: Might be the fact thet I somehow have an invalid/nonexistent device on hci0?

hci1:   Type: Primary  Bus: USB
    BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
    UP RUNNING PSCAN 
    RX bytes:1330 acl:0 sco:0 events:89 errors:0
    TX bytes:5503 acl:0 sco:0 commands:89 errors:0
    Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH HOLD SNIFF PARK 
    Link mode: SLAVE ACCEPT 
    Name: 'arm-64'
    Class: 0x3c0000
    Service Classes: Rendering, Capturing, Object Transfer, Audio
    Device Class: Miscellaneous, 
    HCI Version: 4.0 (0x6)  Revision: 0x22bb
    LMP Version: 4.0 (0x6)  Subversion: 0x22bb
    Manufacturer: Cambridge Silicon Radio (10)

hci0:   Type: Primary  Bus: UART
    BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
    DOWN 
    RX bytes:0 acl:0 sco:0 events:0 errors:0
    TX bytes:14 acl:0 sco:0 commands:2 errors:0
    Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    Packet type: DM1 DH1 HV1 
    Link policy: 
    Link mode: SLAVE ACCEPT