ViaBlimp
How do you do the below things:
- Is there any way by which you can get to know when your code execution is complete if you kept your code running and then went remote?
- If you are spiking and you need a webhook url? How do you get one?
- You have a scrapy script running or a long deep network program or a code running somewhere on cloud. Any way you can get the failure/error/completion messages on your phone when any specific event happens ?
- Can the log of your code come on your phone?
Viablimp is the solution to all these problems.
Viablimp — http://viablimp.com
ViaBlimp is a productivity enhancer tool which connects your facebook messenger to your coded application through a unique url. You get a unique url on messaging the bot and any ping/hit on this url with data will send this data on your facebook account.
Its a facebook bot which gives you a unique webhook url and token(for pip and npm modules). When this webhook url is hit with data, you get the pretty json response on your messenger account.
There is also pip and npm module available for viablimp. Just message the bot here (https://m.me/viablimp) to get the token. Python code using viablimp:
# Python
>>> import viablimp
>>> logger = viablimp.token('BGSFH3HJ7I') # The Token which you get from the viablimp facebook chatbot
>>> logger.message(STRING/OBJECT TO LOG)
Node:
let viablimp = require('viablimp');
let log = new viablimp('OLDQRKPW2A'); //Here OLDQRKPW2A is the token received
let loggingObject = {'A': 1}
log.message(loggingObject).then(data=>{
console.log(data);
}).catch(error=>{
console.log(error);
})
log.message('Hey There')
These 3 lines are what we need to send anything from our python code to our facebook messenger. (Same with Node). We can use it as a logging in the code deployed on servers for any breaks or get to know when the length program execution completes! All that by a message from viaBlimp bot on facebook!
Visit http://viablimp.com to see more details and also to test the bot!
Future Initiatives
- Making Viablimp ruby gem.
- Adding Gmail support for sending the mail apart from facebook message.
- Creating Viablimp bot for slack.
For any improvements, comment, feedback — you can contact the author at me@abhinavrai.com