Skip to content

Client library for Raspberry Pi's for communicating with Podnet.

License

Notifications You must be signed in to change notification settings

Podnet/podnet_rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Podnet RPi

PyPI License PyPI Version Wheel Status

Client library for Raspberry Pi devices for communicating with the Pod Network.

Introduction

Get started with Podnet with 3 lines of code.

Podnet allows your Internet of Things devices to seamlessly talk to the cloud and with each other. This helps you focus on building your IoT device and leave the networking bit on us :)

Installation

Right now the installation process is very long. We are working on building a setup script that makes it easy for everyone to install Podnet Library on their Raspberry Pi devices. This guide assumes that you have already logged into your Raspberry Pi via SSH.

  1. Update your RPi
pi@raspberrypi:~$ sudo apt-get update && sudo apt-get upgrade -y
  1. Clone the repository to your RPi device
pi@raspberrypi:~$ git clone https://github.com/Podnet/podnet_rpi.git
  1. Fetch all submodules
$ cd podnet_rpi/

$ git submodule update --init
  1. Install dependencies
$ cd podnet_rpi/libraries/RF24/

$ sudo make install

$ sudo apt-get install python-dev libboost-python-dev
  1. Manually link Boost library for Python 3
$ sudo ln -s /usr/lib/arm-linux-gnueabihf/libboost_python-py<version>.so /usr/lib/arm-linux-gnueabihf/libboost_python3.so

Possible values of can be 34, 35, 36 depending upon the python installation.

  1. Install setuptools
$ sudo apt-get install python3-setuptools
  1. Install RF24 library for Python
$ cd pyRF24/

$ python3 setup.py build

$ sudo python3 setup.py install
  1. Install RF24Network Library
$ cd ~/podnet_rpi/libraries/RF24Network/

$ sudo make install
  1. Install RF24Network Library for Python
$ cd ~/podnet_rpi/libraries/RF24/pyRF24/pyRF24Network/

$ python3 setup.py build

$ sudo python3 setup.py install
  1. All dependencies are finally installed, we can proceed to install podnet_rpi package
$ pip install podnet_rpi

Examples

Execute examples from examples/ directory.

How to Contribute

  1. Clone repo and create a new branch: $ git checkout https://github.com/alichtman/stronghold -b name_for_new_branch.
  2. Make changes and test
  3. Submit Pull Request with comprehensive description of changes

About

Client library for Raspberry Pi's for communicating with Podnet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages