Chris Veilleux
98b7d12756
add logic to call new Selene endpoint for Pantacor device registration.
2022-03-14 14:12:34 -05:00
Kris Gesling
131a9ed03f
PEP8
2021-11-04 20:53:00 +09:30
Kris Gesling
99be84df2e
Add Github Action for pushing to gitlab
2021-10-04 16:20:35 +09:30
Bart Ribbers
e20443b824
Use XDG Base directories for settings, cache and runtime data
...
Improve deprecation warning message
2021-08-05 10:04:45 +02:00
Kris Gesling
2c598fd96b
Merge branch 'dev' into feature/mark-2
2021-06-15 12:01:18 +09:30
Kris Gesling
e75a05557b
docstring cleanup
2021-05-11 15:10:32 +09:30
Chris Veilleux
450ba58acf
remove spurious print statement
2021-02-24 10:39:33 -06:00
Chris Veilleux
9e3595cbdf
Remove the newline character at the end of the pantacor device ID before sending it to Selene
2021-02-23 15:34:09 -06:00
Chris Veilleux
8cda5b9c9c
Change how pantacor device is identified to Selene
2021-02-21 20:09:08 -06:00
Chris Veilleux
5fe7949bfd
Added code to pass the packaging_type config to the pairing code endpoint. This was done to know if a device uses a Pantacor image. Selene will use this information to retrieve device information from Pantacor using their API.
2021-02-02 19:27:01 -06:00
Chris Veilleux
dfd776cab9
add a geolocation api for things like time and weather in requested locations
2019-09-26 16:24:11 -05:00
Åke Forslund
347e8c9d1e
Work on copy when managing the skills manifest
...
Fixes possible modification of input data when adding device uuid to the
manifest before sending.
2019-09-20 15:02:51 +02:00
Åke Forslund
09c0651872
Apply skill uuid directly after reload from disc
...
The uuid is now applied to the path after it has been checked and
reloaded if needed.
2019-09-18 08:48:40 +02:00
Chris Veilleux
fa1db1b9cf
changed device API to hit new settings retrieval endpoint.
2019-09-17 11:24:10 +02:00
Chris Veilleux
5c742d2ed0
complete rethink of how settings and settingsmeta are handled in core.
2019-09-17 11:24:10 +02:00
Åke Forslund
0801eda839
Fix delete_skill_metadata incorrect parameter name
...
change from the old uuid to the newer skill_gid fixing the invalid
reference to skill_gid.
2019-08-10 08:10:44 +02:00
Chris Veilleux
d1915d3f95
Merge pull request #2180 from forslund/feature/is_paired-fail-early
...
Make is_paired fail early if no uuid in identity
2019-07-29 13:57:31 -05:00
Åke Forslund
e87cf16a0d
Make is_paired fail early if no uuid in identity
...
Refactors code so no request is sent to backend if the local identity
file is empty / has no uuid. Since if this part is missing core already
knows that it's not paired correctly.
2019-07-23 11:36:55 +02:00
Åke Forslund
28e20617fd
Remove 'update' field from skills data
...
Filter out update field from skills data when sending skills manifest
since backend will reject fields with unexpected data
2019-07-01 12:24:18 +02:00
Åke Forslund
f5aec8566d
Handle badly formatted skills.json data
...
- Handle missing blacklist field
- Handle missing skills field
- Raise error if input is of incorrect type
2019-06-09 11:20:03 +02:00
Åke
626c69bc1d
Skill settings cleanup ( #2140 )
...
* Handle DelayRequests when uploading blank settingsmeta
* Move Api methods to DeviceApi
This includes delete, put and get skill settings/meta
* Cache skill settings for 30 seconds
The skill settings are cached to reduce number of requests to the backend and increase skill loading speed.
* Remove _request_other_settings method
The endpoint is not used anymore
* Fix issue when the settingsmeta fails to load
Remove an old reference to "BLANK_META" left behind in the exception handler for failing to load settingsmeta.
2019-06-05 18:45:15 -05:00
Steve Penrod
afa3ca3215
Pass the device id as part of the refresh sequence ( #2134 )
...
Having the device uuid in the packet along with the refresh token is
useful when debugging and recovering from unusual protocol failure
scenarios.
2019-05-22 16:37:03 -07:00
Åke Forslund
716c16a027
Finalize skill_gid in skills manifest.
...
Before sending the skills manifest to the backend attach device uuid as needed.
2019-05-21 17:47:12 +02:00
Åke Forslund
1400af2b16
Fix pycodestyle errors
2019-05-15 13:46:43 +02:00
Åke Forslund
e63bce2a97
Clean the skills.json before sending it up.
...
- Only include the 'version', 'blacklist' and 'skills' field.
- remove duplicate entries (with the same name) in 'skills' section
2019-04-07 00:36:25 +02:00
Steve Penrod
22323827c5
Correcting a typo
...
This typo has been lingering waiting for an adjacent change.
I just want it out of my commit list. :)
2019-02-13 12:22:27 -06:00
Åke Forslund
38701a9790
Remove inheritance from object
...
Inheriting from object isn't necessary in python3.
2019-01-11 09:24:21 +01:00
Åke
cb5b9e85bf
Handle failing refresh tokens ( #1894 )
...
Catch the HTTPError caused by the server returning a 401 status code when an expired refresh code is used to refresh the token.
2018-12-05 14:41:06 -06:00
Åke Forslund
a5545bcb03
Add skills json upload endpoint to api
2018-10-24 13:28:33 +02:00
Åke
5ea6e69f59
Reorganizing to make button press more responsive ( #1830 )
...
The delay while loading files have caused the Mark-1 Button to respond very slowly. This moves the sleep out of the loading section and is handled by the token refresh instead.
2018-10-02 21:20:26 -05:00
Åke
62aa41ce2d
Load identity if no refresh token exists ( #1821 )
...
This means that no refresh will occur if a refresh isn't possible and
the credentials will be loaded from disk if the process hasn't done so
once.
2018-09-28 12:26:31 -05:00
Steve Penrod
6181fe1484
Reduce much of the noise in the logs ( #1819 )
...
This eliminates a lot of the noise in the log files. Later I'll add features in the CLI to
assist watching the messagebus messages rather than writing them all to logs.
Also corrected some language and formatting in settings.py docstrings.
2018-09-28 12:48:34 +02:00
Åke
a3fb64af47
Bugfix/identity lock ( #1820 )
...
Description
Fix issues with identity-locking.
How to test
Remove identity file, pair device and check that mycroft can answer questions such as what is the weather and how tall is abraham lincon.
2018-09-28 03:26:04 -05:00
Åke
506d7ed843
Add locking when accessing the IdentityManager ( #1801 )
...
Adds the mycroft.util.combo_lock ComboLock class for interprocess/Thread
lock.
Loading updated to be more reliable:
- Flush and sync file
- wait 1.2 seconds before load
Split the logic from the locking so the lock can be avoided when calling
update from save or load from get.
2018-09-28 01:26:33 -05:00
Steve Penrod
31f09af745
Remove deprecated API.find*() methods
...
The API.find/find_setting/find_location() methods were replaced by
API.get/get_setting/get_location() some time ago. Permanently removing
the deprecated functions.
2018-08-19 15:16:18 -05:00
Åke Forslund
a2993e4ba6
Remove backwards compatibility with python 2.7
2018-04-27 08:51:47 -05:00
Åke Forslund
851e3b2aa4
Add comments and docstring for the send method
...
Add docstring explaining the basics of the send method.
2018-04-05 11:20:55 +02:00
Matthew D. Scholefield
9f843993b6
ETags support for all requests
2018-04-03 17:01:03 -05:00
Matthew D. Scholefield
eb100706df
Add proper messages when the backend replies incorrectly
2018-03-28 11:48:05 -05:00
Michael Nguyen
7692389317
remove logs
2018-03-22 13:33:10 -05:00
Michael Nguyen
6dbb2182ff
added mycroft deepspeech factory in stt
2018-03-22 13:28:24 -05:00
penrods
c88447a274
Add code to load appropriate config pieces
2018-01-08 17:09:58 -06:00
penrods
5fd05ad509
Add platform type/build to info sent to register
...
Add platform information (type and build #) to the messages
send to the server to pair and to update version info.
2018-01-08 17:09:58 -06:00
Matthew D. Scholefield
f56a2def72
Revert "Merge pull request #1305 from MycroftAI/feature/send-platform"
...
This messes up Pairing so it will be reverted until there is a backend
change to support it
This reverts commit 71611ca6be
, reversing
changes made to c7da63c536
.
2017-12-22 14:43:55 -06:00
Åke
71611ca6be
Merge pull request #1305 from MycroftAI/feature/send-platform
...
Add platform type/build to info sent to register
2017-12-22 18:46:33 +01:00
penrods
e4ca6e3a64
Add code to load appropriate config pieces
2017-12-22 02:34:01 -06:00
Åke
277e8bc506
Merge pull request #1320 from forslund/feature/oauth-token
...
Add oauth token endpoint to device api
2017-12-21 17:56:43 +01:00
Åke Forslund
2c0237cb8d
Add oauth token endpoint to device api
...
When a token has been generated for the provided developer credentials
id the method will return it as json, if it doesn't exist HTTPError will
be raised (404 not found)
2017-12-21 14:52:48 +01:00
Åke Forslund
5c47ed8cd8
Allow aarch64 architecture to download arm binary
...
aarch64 linux systems should provide backwards compatibility for armv7
compiled binaries.
2017-12-20 15:46:33 -06:00
Åke Forslund
41c2f43022
Handle unknown architectures better
2017-12-20 15:46:33 -06:00