Tuesday, November 6, 2012

Using a Raspberry pi to live stream video to Bambuser

Update: If using Raspberry pi camera module http://www.slickstreamer.info/2013/06/use-raspberrypi-csi-camera-module-to.html

This is a short tutorial how to set up a Raspberry pi to live stream to Bambuser.

We are using adafruits Occidentalis distro it should work with the regular wheezy distro.

Installing ffmpeg
  • sudo apt-get update
  • sudo apt-get install ffmpeg

alternativ use avconv
  • sudo apt-get update
  • sudo apt-get install avconv
Login to Bambuser and get your settings file. You can find it under "Standalone desktop app" and Download your authentication profile.  http://api.bambuser.com/user/fmle_profile.xml

Find the rtmp node and copy url tag and stream key

Get the url and stream id from https://bambuser.com/api/keys

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="title" -f flv [url]/[id]

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="my awesome video"  -f flv rtmp://1234.fme.bambuser.com/b-fme/133713371337133713371337

If using avconv it is the same parameters as for ffmpeg.

We had problem with overheating if we had the raspberry pi in an enclosure.

Marcus & Michael

Simpler way to get url and stream id. Thank you Tom and Bambuser :)

Tuesday, September 25, 2012

Build your own automated candy machine Part 1 Hardware

Instructions how you can build your own automated candy machine like that on http://www.giveawaycandy.com/ or Canduino - Arduino connected to Everymote


Read the story behind the candy machine at Michaels blog

What you Need

Step 1

Disassemble the candy macine.

Step 2

Remove the gear from the handle and mount it on the servo. Use some glue to make sure it do not get lose.

Step 3

Glue the servo to the inside of the base and make sure that it is as centered as possible otherwise it will skip.

Step 4

Cut oft the front of the collector so that the candy do not get jammed.



Step 5 option A 

If using a usb servo controller and controlling from a computer

Use adhesive to fasten the servo controller

Cut out a hole for the USB connection

Step 5 option B

Controlling the candy macine with an Arduino

If you like this article please give us some candy by tweeting "give @sidpiraya candy" and/or "give @_macke_ candy"

Happy hacking!

Tuesday, August 21, 2012

Candy and Raspberry Pi

After our old computer runinng give away candy had a hard drive crash, we needed a new and what better than hava a small, energy efficient and hip computer like Raspberry Pi.

The part of www.giveawaycandy.com that runes on the Raspberry Pi is the part listen to twitter and check if the twitters meet the requirements for releasing a candy i.e. containing "@_macke_" or "@sidpiraya" and "candy". The Raspberry is also responsible to stream the video feed of the candy machine to Bambuser. We are using Adafruit’s Occidentalis distro.

Due to not all of the ruby gem's we where using for the parser compiled on the Raspberry we decided to migrate it to javascript and rune it with nodejs and after about a hour hacking it was done.

New setup with Raspberry Pi

Give it a try and give us some candy :-)
Go to http://giveawaycandy.com for instructions and live stream of the candy machine.

/Marcus & Michael

Monday, July 30, 2012

Canduino - Arduino connected to Everymote

Our favorit candy machine is now connected to Everymote with the help of an Arduino Ethernet.

Candy machine & Arduino

The Arduino is communicating with the Everymote cloud server using WebSocket and the socket.io protocol. All right we maybe didn't implement the full spec for the socket.io protocol just the bare minimum to get it work


  • Arduino Ethernet
  • Continuous Rotation Servo
  • Candy machine
  • M&Ms


For a live demo go to http://www.everymote.com/demo.html

Happy hacking

Tuesday, July 3, 2012

How to install Everymote on a Beaglebone

Everymote tellstick is no running on Beaglebone with Ångström, it will probably work on other linux distribution too.

beaglebone with tellstick


Nodejs version >= 0.6.15
telldus-core version 2.1.1 how to install

Install everymote-tellstick

npm install everymote-tellstick -g

If it successfully installed you can now start it by running


or cloning the git repo and start it by using

node app.js

Auto start

Her is a example on how you can get everymote-tellstick start automaticly at startup by creating a cron job. Start by create starteverymote.sh


sleep 60
echo "started"
echo "telldusd started"

To register the script as a cron job run

crontab -e

and add the flowing last

@reboot sh /dir/to/starteverymote.sh >/dir/to/log/cronout.log

Reboot and it should register all devices to everymote. Go to m.everymote.com and control your devices.

Everymote is still in early development and we suport on, off and dim at the moment.

Wednesday, June 13, 2012

everymote - a remote for web of things

everymote is our take on internet of things (IoT) and web of things.

We believe it should be easy to find information and interact with things and services near you. We believe that is not any difference between virtual and physical things in the era of internet connected things.

On iPhone

everymote is a web app that works in most of the modern browsers. So you can use it from an iPhone, iPad, android, windows phone or a regular computer without the need of installing anything. You only need to go to m.everymote.com and all the things and services that are registered at your location will show up and be ready to use. No configuration need to be done.

Things and services connect to everymote by telling what to display for the client and if it is grant acces to it by location (geo) or IP.  

Access model for everymote

At the moment we have a integration to Telldus tellstick that takes all your devices connected to it and register them to everymote. We also have a remote controle for Spotify that lets you do the basic stuff you usually expect frome a remote control. There is also work on a plugin for web players such as youtify to easy connect to everymote.

If you want to test everymote go to http://www.everymote.com/demo.html and open m.everymote.com in a new browser window or on you phone if it is connected to the same network as your computer.

Team everymote Michael, Marcus and Pablo

Tuesday, March 13, 2012

Real time control of a stepper motor using netduino and node.js

The prototype code for controlling V.2 of marbleart is now uploaded as open source.

The web browser connecting to a node.js server using socket.io and the netduino using a simple tcp connection to the server.  We used a EasyDriver Stepper Motor Driver to drive the stepper motor.

The code can be found at https://github.com/evilmachina/marbleartV2_prototype

Don't forget to change the IP address in TcpLisserner.cs to your instance of the node server.  

Have fun hacking!!