crapher / pyhomebroker

Apache License 2.0
101 stars 42 forks source link

Error en la autenticacion de un broker #1

Closed cirote closed 4 years ago

cirote commented 4 years ago

Buenos dias Diego. Muchas gracias por el excelente trabajo !!!! Queria informar que no es posible conectarse al broker 88. El sistema reporta un mensaje de broker inexistemte, a pesar de que esta en la lista de brokers. Saludos

Traceback (most recent call last): File "Conectar.py", line 99, in example_online() File "Conectar.py", line 31, in example_online hb = HomeBroker(int(broker), File "C:\Users\PC\AppData\Local\Programs\Python\Python38\lib\site-packages\pyhomebroker\home_broker.py", line 89, in init self._broker = self.get_broker_data(broker_id) File "C:\Users\PC\AppData\Local\Programs\Python\Python38\lib\site-packages\pyhomebroker\home_broker.py", line 120, in get_broker_data raise BrokerNotSupportedException('Broker not supported. Brokers supported: {}.'.format(supported_brokers)) pyhomebroker.exceptions.BrokerNotSupportedException: Broker not supported. Brokers supported: 12, 20, 81, 127, 164, 203, 209.

Repl Closed

crapher commented 4 years ago

No subi la version a PyPI todavia para no generar una nueva version por cada nuevo broker. Si queres podes usar la version del git instalandola con:

pip install git+https://github.com/crapher/pyhomebroker --upgrade --no-cache-dir

El unico detalle asegurate de tener git instalado en la compu.

Otra opcion es buscar el archivo _brokers.py de tu instalacion y reemplazarlo con el _brokers.py de GitHub que tiene el broker 88.