{"id":19624643,"url":"https://github.com/nature40/sensorboxes-images","last_synced_at":"2026-05-15T00:09:57.278Z","repository":{"id":97594519,"uuid":"167554371","full_name":"Nature40/Sensorboxes-Images","owner":"Nature40","description":"Configuration, scripts and ressources for Sensorboxes Images ","archived":false,"fork":false,"pushed_at":"2021-01-28T10:25:12.000Z","size":42948,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-09T11:59:33.309Z","etag":null,"topics":["images","pimod","raspberry-pi","sensorbox"],"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/Nature40.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-01-25T13:46:44.000Z","updated_at":"2021-01-28T10:25:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec4cfe00-8da7-4b1f-8768-8d3a49aff517","html_url":"https://github.com/Nature40/Sensorboxes-Images","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nature40%2FSensorboxes-Images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nature40%2FSensorboxes-Images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nature40%2FSensorboxes-Images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nature40%2FSensorboxes-Images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nature40","download_url":"https://codeload.github.com/Nature40/Sensorboxes-Images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240925818,"owners_count":19879733,"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":["images","pimod","raspberry-pi","sensorbox"],"created_at":"2024-11-11T11:38:34.351Z","updated_at":"2026-05-15T00:09:57.237Z","avatar_url":"https://github.com/Nature40.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Natur 4.0: Sensorboxes\n\n[![Build Status](https://travis-ci.org/Nature40/Sensorboxes-Images.svg?branch=master)](https://travis-ci.org/Nature40/Sensorboxes-Images)\n\nThis repo collects software and hardware descriptions and links used in Natur 4.0 Sensorboxes. It contains distribution definitions (using pimod) and configuration files for sensorboxes.\n\n## Overview\n\nAn installation currently consist of those parts:\n\n - [LiftSystem](https://github.com/Nature40/Satellite-LiftSystem): stateless ESP32 Board and Motor Driver to run the Lift\n - LiftBox: various Sensors, running up and down\n - PlanetBox: various sensors, Harddrive as data sink, LTE uplink\n\n## Configuration\n\nTo setup an installation one has to install the prepared images to the devices and configure them. The configuration mainly consists of adapting the static config (`/boot/sensorproxy.yml`) as well as the measurement cycle (`/boot/meterings.yml`).\n\nMore details can be found in [pysensorproxy Readme](https://github.com/nature40/pysensorproxy).\n\n## Network Auto Configuration\n\nThe IP addresses are autoconfigured using a set of scripts ([Wi-Fi](https://github.com/Nature40/Sensorboxes-Images/blob/master/Mesh/etc/network/interfaces.d/adhoc.sh), [Wireguard](https://github.com/Nature40/Sensorboxes-Images/blob/097da475bb3748acea959cec190717a0ae4b5ee1/Base/etc/wireguard/nature40.conf.sh)) run at bootup. The prefixes are assigned statically, while the dynamic part is computed using the Rasperry Pi Serial number. \n\n  - Ad-hoc Wi-Fi Network: 169.254.X.X\n  - B.A.T.M.A.N Mesh: 10.254.X.X\n  - Wireguard: 172.16.X.X\n \nAn IP adress list used for Nature 4.0 [can be found here (private)](https://github.com/Nature40/Sensorboxes-Config/blob/master/hosts).\n\n## Useful commands\n\n##### pysensorproxy daemon control\n\n```bash\n# control daemon\nsudo systemctl start sensorproxy\nsudo systemctl stop sensorproxy\nsystemctl status sensorproxy\n\n# view logs\njournalctl -u sensorproxy\n\n# follow current log\njournalctl -fu sensorproxy\n\n# run standalone instance\nsudo sensorproxy -vv --config /boot/sensorproxy.yml --metering /boot/meterings.yml\n```\n\n## Build Distro\n\nA distribution can be build by using pimod. This tutorial will use the provided `docker-compose` file.\n\n```bash\n# first update / init the submodules\ngit submodule update --init --recursive\n\n# download the required raspbian image\nwget http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-07-12/2019-07-10-raspbian-buster-lite.zip\nunzip 2019-07-10-raspbian-buster-lite.zip\n\n# build the Base, Mesh and Sensorbox image\ndocker-compose run pimod pimod.sh Base.Pifile\ndocker-compose run pimod pimod.sh Mesh.Pifile\ndocker-compose run pimod pimod.sh Sensorbox.Pifile\n```\n\n```bash\n$ docker-compose run pimod pimod.sh Sensorbox.Pifile\n### FROM 2018-11-13-raspbian-stretch-lite.img\n### TO LiftCar.img\n### PUMP 100\n100+0 records in\n100+0 records out\n104857600 bytes (105 MB, 100 MiB) copied, 0.929542 s, 113 MB/s\ne2fsck 1.43.4 (31-Jan-2017)\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure\nPass 3: Checking directory connectivity\nPass 4: Checking reference counts\nPass 5: Checking group summary information\nrootfs: 39646/110880 files (0.1% non-contiguous), 258346/443392 blocks\nresize2fs 1.43.4 (31-Jan-2017)\nThe filesystem is already 443392 (4k) blocks long.  Nothing to do!\n\nDisk /dev/loop0: 1.9 GiB, 1971322880 bytes, 3850240 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes\nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: dos\nDisk identifier: 0x7ee80803\n\nDevice       Boot Start     End Sectors  Size Id Type\n/dev/loop0p1       8192   98045   89854 43.9M  c W95 FAT32 (LBA)\n/dev/loop0p2      98304 3645439 3547136  1.7G 83 Linux\nloop deleted : /dev/loop0\n### RUN raspi-config nonint do_serial 0\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnature40%2Fsensorboxes-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnature40%2Fsensorboxes-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnature40%2Fsensorboxes-images/lists"}