WolframAlpha
xori opened this issue · comments
Evan Verworn commented
Turns out wolfram has a free api. Easy way for bootler to settle arguments.
https://www.npmjs.com/package/node-wolfram
http://products.wolframalpha.com/docs/WolframAlpha-API-Reference.pdf
me> wolfram y=2x^2 + 6x + 21
bootler> (graph)
[Graph] [Equation] [Expansion]
me> wolfram surface area of europe and ontario
bootler> Europe | 5.973×10^6 km^2 (square kilometers)
Ontario, Canada | 1.07639×10^6 km^2 (square kilometers) (11% of total for Canada)
Maybe build in something to upload the image of the answer as the image is removed after 5min from wolfram.
Evan Verworn commented
when the images get removed the error image is ugly-AF. This is a good opportunity to add in an http handler and serve the images.
- Added express to engine.router
- Create global public folder that handlers can hook into
let url = engine.router.serve(Buffer)
engine.router.get('/questionaire/:id', (req, res) => {
res.render('index', data);
});