Internet of Things
Budapest, February 2015
…and Firefox OS
@janjongboom
Telenor R&D
Mozilla things
(we're hiring)
I hate JavaScript!
Why Firefox OS?Why not?
Why Firefox OS?Why not?
Rich ecosystem
Why Firefox OS?Why not?
Rich ecosystem
Low level APIs
PrerequisitesRaspberry Pi B+ (v1)
Breadboard Some LEDs
Jan's awesome Firefox OS Build
1 navigator.gpio.setPinMode(2, 'output') 2 .then(pin => { 3 pin.writeDigital(true); 4 5 setTimeout(() => pin.writeDigital(false), 500); 6 });
1 navigator.gpio.setPinMode(26, 'input') 2 .then(pin26 => { 3 4 setInterval(() => { 5 pin26.readDigital().then(v => { 6 // do something 7 }); 8 }, 50); 9 10 });
DownsideConnectivity? Camera? Accelerometer?
JanOSFork of Firefox OS
Same OS as Rpi Runs without display
1 # enable 2 echo 1 > /sys/devices/platform/gonzo-sysfs/red_led 3 4 # disable 5 echo 0 > /sys/devices/platform/gonzo-sysfs/red_led 6 7 # get status 8 cat /sys/devices/platform/gonzo-sysfs/red_led
This SaturdayWorkshop All the devices All the sensors
This SaturdayWorkshop All the devices All the sensors
Thank you!http://janos.io