{"id":23386935,"url":"https://github.com/nilsdeckert/spacebucket","last_synced_at":"2025-04-11T05:08:26.466Z","repository":{"id":269065510,"uuid":"173995801","full_name":"NilsDeckert/Spacebucket","owner":"NilsDeckert","description":"\"A spacebucketis is an enclosed growth chamber that can be used to garden many kinds of plants. It is a versatile gardening tool that can be adapted to the users needs. Every variable of the bucket environment can be tweaked and upgraded at any time.\"  -spacebuckets.com","archived":false,"fork":false,"pushed_at":"2021-03-27T17:00:44.000Z","size":41,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T05:08:21.068Z","etag":null,"topics":["automation","mqtt","python","python3","raspberry-pi","raspberry-pi-2","raspberry-pi-zero-w","spacebucket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NilsDeckert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-05T18:03:03.000Z","updated_at":"2024-07-20T16:07:08.000Z","dependencies_parsed_at":"2024-12-20T17:39:27.256Z","dependency_job_id":null,"html_url":"https://github.com/NilsDeckert/Spacebucket","commit_stats":null,"previous_names":["nilsdeckert/spacebucket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilsDeckert%2FSpacebucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilsDeckert%2FSpacebucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilsDeckert%2FSpacebucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilsDeckert%2FSpacebucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NilsDeckert","download_url":"https://codeload.github.com/NilsDeckert/Spacebucket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345266,"owners_count":21088244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","mqtt","python","python3","raspberry-pi","raspberry-pi-2","raspberry-pi-zero-w","spacebucket"],"created_at":"2024-12-22T01:13:50.734Z","updated_at":"2025-04-11T05:08:26.447Z","avatar_url":"https://github.com/NilsDeckert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spacebucket\n\nBuilding a fully automated spacebucket using a Raspberry Pi 2 and Raspberry Pi Zero W.\n\nHave a look at the [wiki](https://github.com/NilsDeckert/Spacebucket/wiki) for a more detailed insight into the idea\n\nFor this project I'm using two Raspberry Pis, a Zero W (publisher) to capture sensor data and to pass it to the Pi 2 (subscriber). The Raspberry Pi 2 then processes the received data, controls fans and light accordingly and uploads the data to a database for later use (e.g. visualizing it in a graph).\n\n![Imgur](https://i.imgur.com/KGCkV81.png)\n\n### Table of contents\n\n1. [Introduction](#spacebucket)\n\n2. [Getting started / Setup](#getting-started)\n\n   - [Publisher](#publisher)\n   \n     - [Sensor](#temperature-and-humidity-sensor)\n     \n     - [mqtt](#mqtt)\n     \n     - [MySQL](#mysql)\n  \n   - [Subscriber](#subscriber)\n   \n     - [433MHz Transmitter](#433mhz-transmitter)\n     \n     - [mqtt](#mqtt)\n     \n     - [MySQL](#mysql)\n\n   - [Where to put which file](#files-on-the-publisher)\n\n3. [Usage](#usage)\n\n   - [Command line arguments](#command-line-arguments)\n\n   - [Commands](#commands)\n\n---\n\n# Getting started\n\n**Note: As of right now, the following part is not complete by any means and will be updated every now and then. How ever, I am listing useful ressources I used in the wiki for anyone who wants to try or has a similar project. Cheers!**\n\n## Prerequisites / Setup\n\n---\n\n## Publisher:\n\n#### Temperature and humidity sensor:\nThe DHT11-sensor uses the **Adafruit_Python_DHT** library. To use it you have to install the python-dev module first:\n\n```shell\nsudo apt-get install build-essential python-dev\n```\nthen download the library and install it\n```shell\ngit clone https://github.com/adafruit/Adafruit_Python_DHT.git\ncd Adafruit_Python_DHT/\nsudo python setup.py install\n```\n\n#### mqtt:\n```shell\nsudo pip3 install paho-mqtt\n```\n\n#### MySQL:\n```shell\npython3 -m pip install mysql-connector \n```\n\n---\n\n## Subscriber:\n\n#### 433MHz transmitter\n\nTo use the 433MHz transmitter install [433Utils by Ninjablocks](https://github.com/ninjablocks/433Utils):\n```shell\ngit clone --recursive https://github.com/ninjablocks/433Utils.git\ncd 433Utils/RPi_utils\nmake all\n```\nand then compile the outlet.cpp:\n```shell\ncd ../../\nsudo g++ -DRPI /433Utils/rc-switch/RCSwitch.cpp outlet.cpp -o outlet -lwiringPi\n```\n\n#### mqtt:\n```shell\nsudo pip3 install paho-mqtt\n```\n\n#### MySQL:\n```shell\npython3 -m pip install mysql-connector \n```\n\n### Files on the publisher:\n* mqtt_publisher.py\n* pw.py\n### Files on the subscriber:\n* mqtt_subscriber.py\n* outlet.cpp\n* emailinfo.py\n* pw.py\n\n### pw.py\n\nChange the `pw.py` on both devices to fit your database\n\n## Usage\n\nIf you've set up the software and the hardware correctly, start the software on both devices:\n\n### Subscriber:\n```shell\nsudo python3 mqtt_subscriber.py\n```\n\n### Publisher:\n\n```shell\nsudo python3 mqtt_publisher.py\n```\n\n### Command line arguments:\n\nWhen starting the scripts you can use command line arguments:\n\n```\nsudo python3 mqtt_subscriber.py -h\n```\n\n```\nusage: mqtt_subscriber.py [-h] [-d]\n\noptional arguments:\n  -h, --help   show this help message and exit\n  -d, --debug  Toggle debug output\n```\n\n### Commands:\n\nWith the publisher program running, you can also use commands to interven in the program:\n\nTo list all available commands type:\n```\nhelp\n```\n\nTo read the current sensor data and send it to the subscriber, use\n```\nforce measure\n```\nThe cycle in which the software measures the data will not be shifted by this\n\nYou can manually adjust the fanspeed using:\n```\nfanspeed\n```\nfollowed by a number between 0 and 1000 in the next line.\n\nWith debug mode enabled, you can use\n```\nsimulate temperature\n```\nand\n```\nsimulate humidity\n```\nfollowed by a number of choice to simulate the corresponding value and send it to the subscriber\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsdeckert%2Fspacebucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilsdeckert%2Fspacebucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsdeckert%2Fspacebucket/lists"}