SigFox to Twitter

I have an Arduino MKRFOX1200 board (check my previouse article on http://www.valeriovaccaro.it/wordpress/2017/05/mkrfox1200/) working with the testing firmware, so I can publish some messages on the net using SigFox protocol, now it’s time to check how to use this messages in an automatic way.

First idea is to have a Twitter account with all data from my sensors (useful for public data) in order to receive messages on mobile phone.

SigFox callback

Every time a message is received from the SigFox network one or more callbacks can be triggered in order to send an email or move some data performing a GET or a POST or a PUT request on  specified URL.

You can easily add a callback on the SigFox developer website, on the Device Type tab.

Just configure the callback in this way:

  • Channel –  URL
  • Url pattern – http://wpc.uk.to:1880/sigfox
  • Use HTTP method – PUT
  • Content type –  application/json
  • Body  like in the following box.

Confirm this configuration and you will have a callback for each received message.

Node-RED

How to receive the callback messages? The idea is to use Node-RED to receive the message, format it and write automatically on Twitter.

Remember to configure the Twitter node and deploy.

Twitter

The tweets can be red on the page of the box https://twitter.com/SigFoxBot.

You can try to send messages following this tutorial using my server for a fast test or proof of concept, please don’t abuse about it!

Email this to someoneShare on FacebookShare on Google+Share on LinkedInTweet about this on TwitterPin on PinterestPrint this page

Leave a Reply

Your email address will not be published. Required fields are marked *