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

darksky weather plugin #77

Merged
merged 1 commit into from Feb 15, 2019

Conversation

Projects
None yet
2 participants
@comtel2000
Copy link
Contributor

comtel2000 commented Feb 14, 2019

just another weather plugin with additional parameter and OC-3 compatible weather station id

@comtel2000

This comment has been minimized.

Copy link
Contributor Author

comtel2000 commented Feb 14, 2019

I still get problems with convert ANSI to UTF8 encoding and escape degree symbols doesn't work anymore.
Is there a way to transfer Umlaute via channel.updateValue(..)?
Here is my dirty workaround:

var summary = body.currently.summary.split('ä').join('ae').split('ü').join('ue').split('ö').join('oe').split('Ä').join('Ae').split('Ü').join('Ue').split('Ö').join('Oe');
//iconv.decode(new Buffer(body.currently.summary), 'ISO-8859-1')
channel.updateValue('SUMMARY', summary, true, force);
@comtel2000

This comment has been minimized.

Copy link
Contributor Author

comtel2000 commented Feb 14, 2019

encoding will be fixed by #79

@thkl thkl merged commit e457f19 into thkl:master Feb 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.