Giter Site home page Giter Site logo

100% CPU ? about alexapideprecated HOT 12 CLOSED

alexa-pi avatar alexa-pi commented on August 18, 2024 1
100% CPU ?

from alexapideprecated.

Comments (12)

doubledrat avatar doubledrat commented on August 18, 2024

I think it's because it's constantly looping waiting for the button press. It did it to me too. One of the branches may have been coded differently so as to avoid this issue.

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

Thanks doubledrat

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

the AVS Java version runs ~ .02 %

from alexapideprecated.

sammachin avatar sammachin commented on August 18, 2024

The Amazon Java version uses a GUI and requires you to click a button on the screen to talk though wheras mine is using hardware. However I might well not be polling the GPIO in the most efficient method as it was ported over from the CHIP which had very crude initial GPIO support, will look to improve this in V2

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

I have my AVS version set up to boot headlessly, start automatically with a few xdotool scripts and use a pushbutton via an RPi.GPIO python routine. Works flawlessly!

from alexapideprecated.

sammachin avatar sammachin commented on August 18, 2024

I've incorporated some pull requests so we're managing the GPIO better now, on my test box when idle the AlexaPi script doesn't even register in TOP and when its actively recording its only about 3-4%

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

Cool, I'll try it now! Any idea why though.. even when responding to queries as expected, the python version is reported as being "Offline" which prevents musics and TuneIn play back for example. Thanks for your efforts!

from alexapideprecated.

sammachin avatar sammachin commented on August 18, 2024

Yeah I'm using the very early version of the API before things like online/offline support was a thing, this is more an issue for setting alarms or control from the companion app.

The music issue is separate again when I wrote this version the API didn't document things like Music, someone has figured some of it out so I'm going to try and put music support into v1.1 that I'm working on with this API but I might skip ahead and put it in V2.0 which will use the brand new AVS API but there's a few dependancies I'm waiting on for that. Either way I hope to have music (and hopefully alarms/timers) in the next few weeks, Online support might be a little longer

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

Great, thought I was doing something wrong. I sure appreciate the ease of setup of your version.
Hey I'm in Canada (that Amazon hasn't really heard of apparently) so most of the online music stuff doesn't work anyway :/

from alexapideprecated.

sammachin avatar sammachin commented on August 18, 2024

I'm in the UK so in a similar position to you, I find Tune in and Spotify
works on my real Echo

On Tue, Apr 19, 2016 at 3:48 PM, jchisholm59 [email protected]
wrote:

Great, thought I was doing something wrong. I sure appreciate the ease of
setup of your version.
Hey I'm in Canada (that Amazon hasn't really heard of apparently) so most
of the online music stuff doesn't work anyway :/


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/sammachin/AlexaPi/issues/54#issuecomment-211959339

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

Great, my Echo is in the mail. 'Course you can't actually "officially" buy one in Canada from Amazon..grrr..

from alexapideprecated.

jchisholm59 avatar jchisholm59 commented on August 18, 2024

Wow much better, running at .02!
Cheers

from alexapideprecated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.