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

Fix custom units from utterance #32

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

emphasize
Copy link
Member

@emphasize emphasize commented Apr 4, 2023

Problem: ATM it is not possible to change the temperature unit per utterance.

This introduces a new property/attribute scale both to WeatherConfig and WeatherIntent from which the units (temperature/wind) is derived and fixes a bug where the spoken unit would be sent as a api request param
10.89.0.6 - - [04/Apr/2023 11:25:36] "GET /v1/owm/onecall?exclude=minutely&lang=de&lat=49.5875&lon=8.35778&units=fahrenheit HTTP/1.1" 200 - # has to metric/imperial

Furthermore weather reports can now also be requested in a different unit.

This is in line with what i intent to add later on, namely pass SkillRessources to the dialog class to be able to translate there.

this closes #31 and replaces #8

@emphasize emphasize requested a review from JarbasAl April 4, 2023 15:25
@JarbasAl JarbasAl merged commit 7905e94 into OpenVoiceOS:dev Apr 6, 2023
@JarbasAl JarbasAl added the bug Something isn't working label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Temperature in Celcius and Fahrenheit are the same
2 participants