This blog is a follow up to both the Nordic Thingy:52 node.js/Raspberry Pi demos and the https://devzone.nordicsemi.com/blogs/1160/walkthrough-of-nordic-thingy52-nodejs-raspberry-pi/ blog posts. It will go through how you can set up and develop Python Thingy:52 applications on the Raspberry Pi.
Please follow the setup as explained in Node.js walkthrough to make sure the Raspberry Pi is setup as assumed for this blog post. We will be running the Raspbian operating system.
The Thingy:52 Raspberry Pi python implementation...
This blog post is a follow up to the Nordic Thingy:52 node.js/Raspberry Pi demos blog post, and will described how you can run and what to expect from each of the Node.js examples that have been provided in the GitHub repository. It will also described an additional example of how you can use the Node.js library to post a tweet based on sensor data.
If you are looking for a Python interface instead of Node.js, please have a look at the following blog post for some more...
The Thingy connects to the Raspberry Pi with Bluetooth and uses it as an internet gateway. The Raspberry Pi runs the node.js scripts. The provided examples, which you can download below the video, include:
In this guide, you will have two choices:
Choose the one that fits your needs. Cross-compilation is the fastest choice.
In addition to the already installed tools in Raspbian, you'll need
These can be installed using apt:
sudo apt-get install git kernel-package -y
“kernel-package” is needed for generating the .deb package, and git is used to fetch the repository from Raspberry Pi’s github account. We'll fetch the default branch, which holds 3.18.11 at the time of writing this blog post.