Raspberry Pi on the IoT

Conclusions

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

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
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.

  • 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.

  • 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.

  • Safe Messaging with TLSA

    Decoupled application design gets in the way of secure communication, but a little known feature of DNS can provide message security.

  • IoT with RabbitMQ

    Connect multiple protocols and servers together on your IoT projects.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News