Raspberry Pi on the IoT


The volume of Python code for this project is manageable; the setup shown here looks more complicated than it really is. Nevertheless, it still involves a good deal of trial and error, because the documentation does not explain the setup from the command line very well, as it does for the web console.

At the end of the day, I created a 15-line shell script and an Ansible Playbook, which was also very manageable, for provisioning the Rasp Pi. The logical consequence of the Greengrass concept is that you can run any code on your own devices at no cost.

Because practical deployments often involve a large number of devices, a simple approach to centralizing code distribution is extremely important, which is what this solution accomplishes. The entire communication is secured by TLS, which is not the case with many self-made solutions, and you can update the Greengrass software with an over-the-air agent (OTA).

The Author

Konstantin Agouros works as Head of Open Source and AWS Projects at Matrix Technology AG, where he and his team advise customers on open source and cloud topics. His new book Software Defined Networking: Practice with Controllers and OpenFlow has been published by de Gruyter.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Programming Snapshot – Alexa

    Asking Alexa only for built-in functions like the weather report gets old quickly, and add-on skills from the skills store only go so far. With a few lines of code, Mike teaches this digital pet some new tricks.

  • WiFi Thermo-Hygrometer

    A WiFi sensor monitors indoor humidity and temperature and a Node-RED dashboard reports the results, helping you to maintain a pleasant environment.

  • Java 8

    In mid-March, Oracle released the eighth version of Java. In addition to small tweaks, the long-awaited release extends the core language, adding elements of functional programming – the first significant development since Java 5.

  • IoT with RabbitMQ

    Connect multiple protocols and servers together on your IoT projects.

  • JavaScript Alternatives

    JavaScript is the stuff of which many interactive web clients is made, but it comes with a fair amount of historical ballast. The creators of four alternative scripting languages seek to ditch the ballast.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95