Raspberry Pi Cluster for Home Cloud Services
Be part of a team to create home clouds on Raspberry Pis.
This project is a mini project and may require additional activities to qualify for a long-term project. Nevertheless, it can be made suitable due to comparison and integration with enough activities. We explain why it is a mini-project and how you can make it a full project. This project only requires the use of a single Raspberry Pi 4 with 8GB of storage.
At http://piplanet.org we discuss setting up a Raspberry Pi cluster. Instead of burning a cluster, you will use the burn command to burn a single PI 4. Now that the basic cluster is set up, we like you to explore any available “home cloud” setup on your PI and document it. In addition, you will implement a simple one-line deployment command line tool supported by an API that deploys whatever you develop on the hosts specified by the ip adress. This includes
- Create a proper method to deploy the frameworks on the cluster given the IP’s or the name of the machines.
- Provide a mechanism to verify if the deployment was successful
- Provide a set of unit tests using
pytestto execute some basic use cases.
- Develop a python API that supports the deployment while exposing it through a command line
- Explore the development of a REST API that facilitates the deployment reusing the developed Python API.
- Develop a manual
- Develop a high-quality report with benchmarks.
In order for you to participate in this project, you will need:
You need to have financial resources to buy yourself the material for creating a single PI. You will need at least 3 Pis with 8GB memory. Each of them costs $75, but you also need a power supply costing $35, power cables, network cables, and at least one HDMI cable suitable to connect an HDMI monitor to a PI. More details about parts can be found at https://cloudmesh.github.io/pi/docs/hardware/parts/
In addition, we will explore the integration of at least one additional PI (e.g. one will be stationary, your manager Pi) . This could be another PI or a PI Zero with WiFi. You have two options here. A use the Pi Zero and hook it up to a battery so you can move the PI to record an attached sensor such as temperature, humidity, pressure and record the values for it when moving around. Another thing would be to measure the strength of the WiFi network and other networks you may discover. Populate the information to your manager PI and create a secure Web page that reports the results that you then observe from another computer. Furthermore, identify at least one home automation hardware that you can connect to the PI, such as Alexa or Google switches, Garage door openers (commercial), and so on.
Significant Python knowledge
Be highly motivated
Be willing to have meetings on this project once or twice a week
SHowcase significant progress over the lifetime of the project.
be knowledgeable with GitHub (a repository will be provided to which Dr. von Laszewski will contribute)
Conduct task management in GitHub (Gregor will explain)
Be honest and not hiding problems or implementation bugs.
You must be able to do a videoconference and be able to share your screen (I typically use google meet or zoom).
There is a great deal of flexibility in this project, and we like that you explore your ideas but work with Gregor to identify if they are feasible and complex enough. Gregor has a “secret” PI notebook that can be used to interface with the sensors and is easy to use. However, we do not have yet anything about interfacing to commercial products.
Services that may be considered for this project (likely multiple, expand the list):
- nfs (only if you have multiple PIs)
- Alexa (switches, garage doors, other sensors)
- Google (has similar things you can control via google)
- seafile (?)
- syncthing (?)
- Garage door opener myq https://www.myq.com/
- Alexa switches https://www.amazon.com/Electrical-Wall-Switches-Works-Alexa-Dimmers/s?keywords=Electrical+Wall+Switches&rh=n%3A6291358011%2Cp_n_amazon_certified%3A16741513011&c=ts&ts_id=6291358011
- Turbidity Sensor https://www.google.com/search?q=turbitity+sensor&oq=turbitity+sensor&aqs=chrome..69i57.8102j0j9&sourceid=chrome&ie=UTF-8
- Water Quality sensors
- Air Pollution Sensors
- Environmental sensors in general
- Motion detection sensors
- Camera sensor
- Sleep sensor
- sunshine (blind control)
- drought for control of water to plants (outdoor/indoor)
- Geiger counter
- Radiation monitor https://www.google.com/search?q=turbitity+sensor&oq=turbitity+sensor&aqs=chrome..69i57.8102j0j9&sourceid=chrome&ie=UTF-8
- GPS sensor (cool to get geo locations)
- Earthquake monitor / logger (if you live in earthquake prone zone) naturally, you can simulate an earthquake for testing by shaking.
- In the first week, collect a list of all Google like services and other home products that could be integrated into this project.
- Study the GitHub repositories from cloudmesh-pi-burn and cloudmesh-pi-cluster and cloudmesh-common intensely. Find out how to burn a single PI.
- Try out and document the various cloud services. Evaluate if they work and how to use elementary features of them
- Identify commercial hardware that can be accessed from the PI and showcase how to use it.
- Develop a FastAPI based secure REST service that uses such hardware (such as Alexa switches). Showcase and document how to access them from Python and how to access them from your secure REST service. Develop a command line interface for it (Gregor will help to set this command line interface up)
- Communicate regularly with Gregor on ideas that you have
- An absolute must is the development of the documentation. This project may have more documentation needs than others
- Optional: Discuss the integration of MQTT. Showcase
- Discuss the difference between accessing from prebuild cell phone/web access vs accessing from python/web API that you create.
In case of questions, please contact Gregor at