Ovos-backend-client

Latest version: v0.1.0

Safety actively analyzes 622867 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

38.7077507

9.1365919

'timezone': 'Europe/Lisbon'}


OpenWeatherMap Proxy

python
from selene_api.api import OpenWeatherMapApi
owm = OpenWeatherMapApi()
data = owm.get_weather()
dict - see api docs from owm onecall api



Wolfram Alpha proxy

python
from selene_api.api import WolframAlphaApi

wolf = WolframAlphaApi()
answer = wolf.spoken("what is the speed of light")
The speed of light has a value of about 300 million meters per second

data = wolf.full_results("2+2")
dict - see api docs from wolfram



Remote Settings

To interact with skill settings on selene

python
from selene_api.settings import RemoteSkillSettings

in ovos-core skill_id is deterministic and safe
s = RemoteSkillSettings("skill.author")
in mycroft-core please ensure a valid remote_id
in MycroftSkill class you can use
remote_id = self.settings_meta.skill_gid
s = RemoteSkillSettings("skill.author", remote_id="|whatever_msm_decided")
s.download()

s.settings["existing_value"] = True
s.settings["new_value"] = "will NOT show up in UI"
s.upload()

auto generate new settings meta for all new values before uploading
s.settings["new_value"] = "will show up in UI"
s.generate_meta() now "new_value" is in meta
s.upload()




Selene Cloud

by hijacking skill settings we allows storing arbitrary data in selene and use it across devices and skills

python
from selene_api.cloud import SeleneCloud

cloud = SeleneCloud()
cloud.add_entry("test", {"secret": "NOT ENCRYPTED MAN"})
data = cloud.get_entry("test")


an encrypted version is also supported if you dont trust selene!

python
from selene_api.cloud import SecretSeleneCloud

k = "D8fmXEP5VqzVw2HE" you need this to read back the data
cloud = SecretSeleneCloud(k)
cloud.add_entry("test", {"secret": "secret data, selene cant read this"})
data = cloud.get_entry("test")


![](https://matrix-client.matrix.org/_matrix/media/r0/download/matrix.org/SrqxZnxzRNSqJaydKGRQCFKo)


Admin Api (local backend only!)

since local backend does not provide a web ui a [admin api](https://github.com/OpenVoiceOS/OVOS-local-backend#admin-api) can be used to manage your devices

python
from selene_api.api import AdminApi
admin = AdminApi("secret_admin_key")
uuid = "..." check identity2.json in the device you want to manage
manually pair a device
identity_json = admin.pair(uuid)
set device info
info = {"opt_in": True,
"name": "my_device",
"device_location": "kitchen",
"email": "notificationsme.com",
"isolated_skills": False,
"lang": "en-us"}
admin.set_device_info(uuid, info)
set device preferences
prefs = {"time_format": "full",
"date_format": "DMY",
"system_unit": "metric",
"lang": "en-us"}
admin.set_device_prefs(uuid, prefs)
set location data
loc = {
"city": {
"code": "Lawrence",
"name": "Lawrence",
"state": {
"code": "KS",
"name": "Kansas",
"country": {
"code": "US",
"name": "United States"
}
}
},
"coordinate": {
"latitude": 38.971669,
"longitude": -95.23525
},
"timezone": {
"code": "America/Chicago",
"name": "Central Standard Time",
"dstOffset": 3600000,
"offset": -21600000
}
}
admin.set_device_location(uuid, loc)

0.1.1a5

Changes in this Release
Changelog

[0.1.1a5](https://github.com/OpenVoiceOS/ovos-backend-client/tree/0.1.1a5) (2024-02-09)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a4...0.1.1a5)

**Implemented enhancements:**

- feat/refresh\_oauth\_token [\65](https://github.com/OpenVoiceOS/ovos-backend-client/pull/65) ([JarbasAl](https://github.com/JarbasAl))

**Fixed bugs:**

- OAuthApplicationDatabase update\_application infinite recursion [\60](https://github.com/OpenVoiceOS/ovos-backend-client/issues/60)

[V0.1.1a4](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a4) (2024-01-16)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a3...V0.1.1a4)

**Fixed bugs:**

- Database: Fix update\_application\(\) method [\62](https://github.com/OpenVoiceOS/ovos-backend-client/pull/62) ([forslund](https://github.com/forslund))

[V0.1.1a3](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a3) (2024-01-04)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a2...V0.1.1a3)

**Fixed bugs:**

- Fix path errors in Database init [\58](https://github.com/OpenVoiceOS/ovos-backend-client/pull/58) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a2](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a2) (2023-12-30)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a1...V0.1.1a2)

**Fixed bugs:**

- Fix location config reference [\57](https://github.com/OpenVoiceOS/ovos-backend-client/pull/57) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a1](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a1) (2023-12-29)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.0...V0.1.1a1)

**Merged pull requests:**

- packaging/update\_imports [\56](https://github.com/OpenVoiceOS/ovos-backend-client/pull/56) ([JarbasAl](https://github.com/JarbasAl))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

0.1.1a4

Changes in this Release
Changelog

[0.1.1a4](https://github.com/OpenVoiceOS/ovos-backend-client/tree/0.1.1a4) (2024-01-16)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a3...0.1.1a4)

**Fixed bugs:**

- Database: Fix update\_application\(\) method [\62](https://github.com/OpenVoiceOS/ovos-backend-client/pull/62) ([forslund](https://github.com/forslund))

[V0.1.1a3](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a3) (2024-01-04)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a2...V0.1.1a3)

**Fixed bugs:**

- Fix path errors in Database init [\58](https://github.com/OpenVoiceOS/ovos-backend-client/pull/58) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a2](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a2) (2023-12-30)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a1...V0.1.1a2)

**Fixed bugs:**

- Fix location config reference [\57](https://github.com/OpenVoiceOS/ovos-backend-client/pull/57) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a1](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a1) (2023-12-29)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.0...V0.1.1a1)

**Merged pull requests:**

- packaging/update\_imports [\56](https://github.com/OpenVoiceOS/ovos-backend-client/pull/56) ([JarbasAl](https://github.com/JarbasAl))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

0.1.1a3

Changes in this Release
Changelog

[0.1.1a3](https://github.com/OpenVoiceOS/ovos-backend-client/tree/0.1.1a3) (2024-01-04)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a2...0.1.1a3)

**Fixed bugs:**

- Fix path errors in Database init [\58](https://github.com/OpenVoiceOS/ovos-backend-client/pull/58) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a2](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a2) (2023-12-30)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a1...V0.1.1a2)

**Fixed bugs:**

- Fix location config reference [\57](https://github.com/OpenVoiceOS/ovos-backend-client/pull/57) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a1](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a1) (2023-12-29)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.0...V0.1.1a1)

**Merged pull requests:**

- packaging/update\_imports [\56](https://github.com/OpenVoiceOS/ovos-backend-client/pull/56) ([JarbasAl](https://github.com/JarbasAl))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

0.1.1a2

Changes in this Release
Changelog

[0.1.1a2](https://github.com/OpenVoiceOS/ovos-backend-client/tree/0.1.1a2) (2023-12-30)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.1a1...0.1.1a2)

**Fixed bugs:**

- Fix location config reference [\57](https://github.com/OpenVoiceOS/ovos-backend-client/pull/57) ([NeonDaniel](https://github.com/NeonDaniel))

[V0.1.1a1](https://github.com/OpenVoiceOS/ovos-backend-client/tree/V0.1.1a1) (2023-12-29)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-backend-client/compare/V0.1.0...V0.1.1a1)

**Merged pull requests:**

- packaging/update\_imports [\56](https://github.com/OpenVoiceOS/ovos-backend-client/pull/56) ([JarbasAl](https://github.com/JarbasAl))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.