Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ssl.https dependency #90

Closed
vevais opened this issue Aug 7, 2019 · 3 comments
Closed

Problem with ssl.https dependency #90

vevais opened this issue Aug 7, 2019 · 3 comments

Comments

@vevais
Copy link

vevais commented Aug 7, 2019

I get the following error after following your instructions and trying to implement the translation widget. What am I missing?
2019-08-08-004201_1366x768_scrot

My Lua-version is 5.3.5 and I use awesome v4.3

@vevais
Copy link
Author

vevais commented Aug 7, 2019

I got it to work after installing luasec and luajson. However I can't seem to find where to put the API key in translate.lua, as the is no API_KEY variable as mentioned in the wiki.

@streetturtle
Copy link
Owner

Hi, you should get it from here: https://translate.yandex.com/developers/keys and then either use it in secrets.lua or paste directly in the widget.
I'm currently working on the improvement which will allow to pass all the parameters to the widget in the constructor in rc Lua. I'll post here when it's merged.
And I'll update the readme as well. Thanks for raising an issue.

@streetturtle
Copy link
Owner

I was wrong in the previous comment - translate widget is a bit different from other widgets, so my change to externalize the config of the widget in the rc.lua is not applicable here, so the best way to provide the api key is to paste it in secrets.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants