This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Wolfram|Alpha app

I have just fixed Wolfram|Alpha app. Currently it's only available on my github com.wolframalpha repo
It requires Wolfram|Alpha API app ID which can be obtained on their developer portal.
App ID is then set in app settings.

Example voice command:
question 1 plus 1

Feedback welcome.

Comments

  • Wow, sweet!!!!
    I'm testing this right now!!  <3
  • Fire69Fire69 Member
    edited March 2016
    In athom-cli I get this error:

    Error: Cannot find module 'node-wolfram'
        at Function.Module._resolveFilename (module.js:336:15)
        at Function.Module._load (module.js:278:25)
        at Module.require (module.js:365:17)
        at require (module.js:384:17)
        at requestWolfram (/app.js:21:16)
        at /app.js:91:5
        at Array.some (native)
        at Object.onSpeech (/app.js:88:19)
        at Object.emit (events.js:110:17)
        at /opt/homey-client/system/types/manager/apps/bootstrap/homey-app/manager/speech-input.js:1:190
    I don't receive a response to the question.

    Also, I had to turn of the 'announce searching' option, because Homey got stuck in a loop. :smiley: 
  • OK, it's working now.
    You need to do a 'npm install' before starting the app (to install dependencies I suppose?)

    Working pretty good!
    What are the triggers?  Because it answers even when I don't use 'question' :)
  • there are "question", "wolfram" and "what" triggers https://github.com/matjaz/com.wolframalpha/blob/master/app.json#L54

    I don't expirience triggering issues (still on .17), can you try debug which trigger is triggered? homey.log speech.triggers
    thanks!
  • It's ok, if 'what' is also a trigger without 'question' it's working as expected  :smile: 

    Really like the app, thanks! :smiley: 
  • MoekMoek Member
    Fire69 said:
    It's ok, if 'what' is also a trigger without 'question' it's working as expected  :smile: 

    Really like the app, thanks! :smiley: 
    Just curious, doesn't the "what" trigger interfere with questions like "what is the time or date"?
  • MoekMoek Member
    Moek said:
    Fire69 said:
    It's ok, if 'what' is also a trigger without 'question' it's working as expected  :smile: 

    Really like the app, thanks! :smiley: 
    Just curious, doesn't the "what" trigger interfere with questions like "what is the time or date"?
    Nevermind, those triggers are of course "time" and "date" . :blush: 
  • It has an importance of 0.5 so it shouldn't.
  • MoekMoek Member
    Thx @MatjaLipu !
  • @ MatjaLipu. Great job 
    thx
  • what to do now? There's two Wolframm-apps:
    https://apps.athom.com/app/com.wolframalpha.knowledge
    :)
    Or was the job at Athom filled in by @MatjaLipu ?
  • This is the same app.
    Athom developed Wolfram app some time ago, but it was broken due API changes. I have fixed it (see pull request) using latest API. I did for same Chromecast app.
    However I have independently developed YouTube app.

    No, I did not fill or even apply for a job because I am not Dutch.
  • Wolfram was deleted from the appstore. Downloaded it from
    https://github.com/athombv/com.wolframalpha
    but running gave:
    TypeError: Cannot read property 'indexOf' of undefined
    at /app.js:77:16
    at /node_modules/node-wolfram/dist/index.js:46:20
    at Parser.<anonymous> (/node_modules/xml2js/lib/xml2js.js:484:18)
    at emitOne (events.js:77:13)
    at Parser.emit (events.js:169:7)
    at Object.onclosetag (/node_modules/xml2js/lib/xml2js.js:445:26)
    at emit (/node_modules/sax/lib/sax.js:639:35)
    at emitNode (/node_modules/sax/lib/sax.js:644:5)
    at closeTag (/node_modules/sax/lib/sax.js:903:7)
    at Object.write (/node_modules/sax/lib/sax.js:1444:13)

    --- INFO: com.wolframalpha.knowledge has been killed ---

    Tried adding some console.log's but didn't see what goes wrong? Guess it's not just me, anyone got this working?
This discussion has been closed.