Comments (4)
Hi lhj2387 ,
It is most likely a fault in one of the deprecated libraries, I would suggest solving this, by adding a try ... except statement in the Alexa.py script, to retry connecting every 30 seconds.
from amazon-alexa-as-lg-tv-remote.
Hi lhj2387 ,
It is most likely a fault in one of the deprecated libraries, I would suggest solving this, by adding a try ... except statement in the Alexa.py script, to retry connecting every 30 seconds.
Hi FeLiNa22
Thank you for your quick response.
If you don't mind, may I ask where to put try&except statement in Alexa.py?
I appreciate your help in advance :)
from amazon-alexa-as-lg-tv-remote.
I would suggest wrapping it around this function
def initiate():
#websocket.enableTrace(True)
api = ' enter-api-here '
ws = websocket.WebSocketApp("ws://iot.sinric.com/",header={'Authorization:' + base64.b64encode('apikey: '+ api +' ')},on_message = on_message,on_error = on_error, on_close = on_close)
ws.on_open = on_open
ws.run_forever()
from amazon-alexa-as-lg-tv-remote.
Hi FeLiNa22, i'm from brazil, it that too much you could improve your code to Sinric Pro? The normal Sinric doesn't work here , the skill is not available =/
from amazon-alexa-as-lg-tv-remote.
Related Issues (18)
- Issue running setup.py HOT 6
- Tested on [LG] webOS TV OLED65B6P HOT 2
- The initiating new websocket connection doens't work HOT 2
- Test on Uh661 HOT 1
- Sinric Pro HOT 1
- No handlers could be found for logger "ws4py" HOT 1
- Can not find TV when TV is connected to a device running the script HOT 1
- Power ON don't work HOT 5
- LG TV UN74003LB Issue
- Sinric.com Moves to sinric.pro HOT 1
- Syntax error running Alexa.py HOT 2
- Can't turn TV on HOT 7
- promting allow to connect every request HOT 2
- python3 version HOT 1
- Not working after all steps HOT 1
- Syntax eroror HOT 2
- Open Apps? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-alexa-as-lg-tv-remote.