Menial is a project I started late 2015 as procrastination. It’s already evolved so much since I started it around October so I’ll break this down into a couple of posts. This is the initial idea.
I intended for Menial to be a virtual assistant. Somewhat like Siri or Google Now but programmed by the community. Each function of Menial is written in Python by users of the website and executed server-side. Users can choose to make their ‘modules’ public and can activate other peoples’ modules on their own account. Each module needs to have an activation phrase so for the example below the activation phrase could be ‘recycle’. Any query containing “recycle” will match with and execute the module below.
I’ll run through a use case.
Wellington recycling collection is glass one week, cardboard/paper/plastic the next. It was always a hassle to look up what week we were on. This sounds like a job for Menial! I wrote a quick (messy) function on Menial that was pretty much as follows.
Pretty straight forward but how do you actually run a ‘query’ against your account on the website? Well, I made an API. I also made a Pebble app that uses the Pebble microphone and voice-to-text API so I can talk to my watch like a spy. At this stage I set up the Pebble Menial app using my API key so that Menial knows which account is being queried. So the process is as follows.
Pretty basic.