flopp999 / Tibber-Domoticz

Script to communicate with Tibber. Help me with a buy-me-a-coffee
https://www.buymeacoffee.com/flopp999
GNU General Public License v3.0
8 stars 4 forks source link

Subscription not working due to Websockets missing #41

Closed swejmansson closed 2 years ago

swejmansson commented 2 years ago

Had some issues to get the plugin up and running. Iยดm running on Pi3, Buster, python 3.7 and Domoticz 2020.1. Followed the instructions and gql was installed, but websockets was missing. Had to install it manually.... sudo pip3 install gql[websockets]

Now its fine ๐Ÿ‘

flopp999 commented 2 years ago

Thanks for inform about this. In the Beta I have added Websockets to requirements.txt but good that this issue exist if someone else have same problem, until Beta is Main. I will leave this open until I set Beta as Main.

flopp999 commented 2 years ago

sudo pip3 install gql[websockets]

Do you know if that is that different than sudo pip3 install websockets?

swejmansson commented 2 years ago

No, not really. I found it in the doc for gql. Looked through my terminal now and found the first time i tried to install websockets I was using "pip" and nor "pip3". Then it didnt work..... For med Linux is alot google, trial and error ๐Ÿ˜›

This was the sequence to get it working: image

flopp999 commented 2 years ago

I am just a amateur but what I see is with [ ] it will get the requirements from gql "<10,>=9" means less then 10 but higher or equal to 9. I will update my requirements.txt with "websockets<10,>=9"

swejmansson commented 2 years ago

That will most likely do the trick ๐Ÿ‘Œ