Commit Graph

30 Commits (b1082d4b27491b820ee37f8b493dee46596bd002)

Author SHA1 Message Date
Åke Forslund e40ad7e4dc Add subscription endpoint to DeviceApi
====  Tech Notes ====
The DeviceApi now has a `get_subscription()` method returning the entire
subscription structure and the property `is_subscriber` returning True
if the device is connected to a paying account and False if it's a free
account.
2017-08-15 09:03:30 +02:00
Ethan Ward c9893806ea #824 Change has_been_paired to load the current identity file (#825)
* Change has_been_paired to load the current identity file

* Add clarifying comment and fix pep8
2017-06-13 17:32:14 -05:00
Åke Forslund b38af90fac fix pep8 2017-06-13 14:17:21 +02:00
penrods 582b77891e One more pass at onboarding, including a major bug fix:
* BUGFIX: The big bug was calling is_paired() during wake_word_in_audio().  When not paired, that call hit the server, taking about a second.  Since it happened multiple times a second, the audio buffers got backed up hugely.  This resulted in weird behavior later as the buffers get cleared out.
* Added mycroft.api.has_been_paired(), which just looks for the pairing key (it does not validate it is still active with the server, like is_paired())
* The enclosure now checks for internet connectivity and kicks off the wifisetup process, not the wifisetup client itself.
* During the "onboarding" process, the microphone is muted using the new "mycroft.mic.mute" message.  After pairing completes, the "mycroft.mic.unmute" is expected to be sent from the pairing skill.  Unmuting again after a re-pairing is harmless.
* mute_and_speak() is smart enough to not unmute itself when complete if muted before
* util.check_for_signal() now accepts -1 as the lifetime.  This means it never times out.
* util.stop_speaking() is more intelligent about shutting down the spoken text (including text that has been split at periods) and visemes
2017-06-13 05:35:06 -05:00
penrods 84dd10e243 Fixing pep8 whitespace errors... grrr 2017-06-07 11:45:06 -05:00
penrods ffc3f6ec60 Implementing changes to out-of-the-box experience, providing an "onboarding" process.
* Added a mycroft.api.is_paired() method
* Added mycroft.util.is_speaking and mycroft.util.wait_while_speaking() methods
* RESET now waits for the spoken notice to complete
* Stopped the "Checking for updates" and "Skills updated" prompts (commented out for now, probably will eliminate)
* Wifi setup filters out hidden ("x00") networks
* Visemes should keep up better if they get behind (will skip)
* Mimic is now searched for on the users path
* Onboarding process:
  - wifi setup starts automatically
  - User is walked through the process
  - wake word and button pressing are ignored
  - At end, a short tutorial is given
2017-06-07 11:45:06 -05:00
Augusto Monteiro 'Sparky 346a314c98 - Device api find is passing self to get 2017-05-18 16:53:10 -03:00
penrods 99b7280e24 Renaming DeviceApi.find() to DeviceApi.get()
Developers do not expect a function called "find" to execute an API request, this is a "get".  (I verified this with several other devs.)  Renamed and added a Deprecated comment for now.  Also:
* Added missing standard mycroft-core copyright.
* Added docstrings for basic objects and the STTApi in particular.
2017-05-18 16:51:54 -03:00
Arron Atchison de00192dc6 all lil peps fixed 2017-02-15 15:37:52 -06:00
Augusto Monteiro 540cd893c2 #487 - Integrating location microservice with mycroft core 2017-02-01 23:40:13 -03:00
Augusto Monteiro d13b539644 #452 - Ensuring that refresh_token is an isolated method to avoid duplication
- Storing old_params on self
- Reordering methods
- Removing 403 check on get_response
2017-02-01 23:40:13 -03:00
Augusto Monteiro bfc47bc16a #452 - Refresh token if request return unauthorized 2017-02-01 23:40:13 -03:00
Steve Penrod 746bc0bd88 Fixes issue #461 (#462)
Changed the default network timeout to just over 3 seconds to establish the connection, then 15 seconds for all reads.  These values are as per the suggestion of http://docs.python-requests.org/en/master/user/advanced/.
2017-01-20 15:49:23 -06:00
Augusto Monteiro 66e63e5616 Issues 391 - Refactoring VersionManager 2016-12-17 10:27:01 -05:00
Augusto Monteiro 56456090be Issues 391 - Sending core and enclosure version to tartarus 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans a5d8b6112b Issues 350 - Ensuring repairing process 2016-12-17 10:27:01 -05:00
Matheus Lima 1a1599147f Issues 383 - Adding limit parameter to Google STT Integration 2016-12-17 10:27:01 -05:00
Augusto Monteiro ce7c385bfd Issues 380 - Creating method on DeviceIdentity to check if is expired 2016-12-17 10:27:01 -05:00
Augusto Monteiro 10931a8649 Issues 380 - Implemeting refresh token 2016-12-17 10:27:01 -05:00
Jonathan D'Orleans 58ba7f2558 Issues 356 - Tartarus integration
- Adding proxy flag to be used in WA and OWM skill
- Integrating Tartarus login session
- Refactoring OWM to use Tartarus api and removing owm repackaging
- Fixing WA data response
2016-12-17 10:16:29 -05:00
Jonathan D'Orleans f43d38dae7 Issues 356 - Adding get_data for Api response so it can overrided 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans e330a367c9 Issues 356 - Adding query param to request and fixing stt path 2016-12-17 10:16:29 -05:00
Jonathan D'Orleans 741350afa4 Issues 356 - Adding data stream support along with json 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans 8d2d77d661 Issues 356 - Fixing STT query language parameter 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans c71c054258 Issues 351 - Creating STT module and classes 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans b1a4a9c22b Issues 351 - Making Identity static and unique 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans 15d43d951c Issues 356 - Fixing device activation endpoint 2016-12-17 10:15:24 -05:00
Jonathan D'Orleans 14050d70e8 Issues 354 - Implementing activation process 2016-12-17 10:14:42 -05:00
Jonathan D'Orleans 3304474a22 Issues 354 - Pairing device with remote server
- Getting pairing code from server
- Treating Api response after request
- Simplifying enclosure mouth events control, upgrade and test process
2016-12-17 10:12:10 -05:00
Jonathan D'Orleans 3280d57b18 Issues 351 - Tartarus Integration
- Creating API to communicate with remote server
- Updating Identity data
- Adapting RemoteConfiguration load to new server
2016-12-17 10:11:15 -05:00