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
for weather and wolfram alpha support should be added for ovos api - https://github.com/OpenVoiceOS/ovos_api_service
example weather integration
import requests from ovos_utils import ovos_service_api class OvosWeather: def __init__(self): self.api = ovos_service_api.OVOSApiService() self.api.register_device() def get_weather_onecall(self, query): self.api.get_session_challenge() headers = {'session_challenge': self.api.get_session_token(), 'backend': 'OWM'} reqdata = {"lat": query.get("lat"), "lon": query.get("lon"), "units": query.get("units"), "lang": query.get("lang")} url = 'https://api.openvoiceos.com/weather/onecall_weather_report/' + self.api.get_uuid() r = requests.post(url, data=reqdata, headers=headers) return r.json()
this should also be made the default to ensure functionality is always available, users will still be able and encouraged to use their own keys
The text was updated successfully, but these errors were encountered:
blocked by OpenVoiceOS/ovos_api_service#1 and OpenVoiceOS/ovos_api_service#2
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
for weather and wolfram alpha support should be added for ovos api - https://github.com/OpenVoiceOS/ovos_api_service
example weather integration
this should also be made the default to ensure functionality is always available, users will still be able and encouraged to use their own keys
The text was updated successfully, but these errors were encountered: