Skip to main content

shed-pi

Introduction

A package to run a Raspberry Pi in an outbuilding such as a garden shed, for the internet of sheds.

Automated use cases:

  • Weather station
  • Garden lighting
  • Security

TODO:

  1. Fix: Bug: The script startup gets an incorrect time (Hasn't yet got the internet time)
  2. Instructions on pinout

Wish list:

  • Poetry (Not started)
  • ASGI backend server (Daphne)
  • Native webcomponent FE with Bootstrap
  • pip install raspberry pi
  • modular components that are easy to install from a software and hardware perspective
  • Provide systemd script to 3rd parties
  • venv is crucial before installing any third party packages!
  • Pre commit config with ci integration

Installation

Enable interfaces

For any temperature sensors the 1 wire interface is required

sudo raspi-config
  1. Select the option: "Interface Options"

  2. Select the Option I7: "1-Wire"

  3. Agree to installing the 1-Wire script

  4. Reboot

sudo reboot

Sanity check that the 1 Wire data is available:

ls /sys/bus/w1/devices/

Check the value read, be sure to change "28-000003ebbf13" to the values listed above:

cat  /sys/bus/w1/devices/28-000003ebbf13/w1_slave

Script auto start with systemd

Create a file in systemd

nano /lib/systemd/system/shed-pi.service

With the contents

[Unit]
Description=Shed-Pi
After=multi-user.target
StartLimitIntervalSec=0
 
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/shed-pi/temp_logger.py
StandardInput=tty-force
 
[Install]
WantedBy=multi-user.target

Enable the service, (CAVEAT: didn't work when manually starting, works on reboot)

sudo systemctl daemon-reload
sudo systemctl enable shed-pi.service
sudo systemctl start shed-pi.service
sudo systemctl status shed-pi.service

Read the logs

tail -f /var/log/shed-pi.log

Metadata

Release files for shed-pi 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shed-pi 0.0.1
File Size Uploaded Provenance
shed_pi-0.0.1.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shed-pi 0.0.1
File Interpreter ABI Platform
shed_pi-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / shed_pi-0.0.1.tar.gz

Download URL shed_pi-0.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0a072f48cdce1df91f7a43e4c7191972f543aeb79ea2c330ac4fa4d56e4501ae
BLAKE2b-256 checksum
How to use checksums
be0863c7a7a1e6825fe7c68b4bc4048c0dd79df6f2ec5b972ecf3a713a37a8c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / shed_pi-0.0.1-py3-none-any.whl

Download URL shed_pi-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
410d73947478b59b8001f183ac84c77915832d3fc3d73817c110fc789539e777
BLAKE2b-256 checksum
How to use checksums
5f64803a765423f6d921d1735c2fee82e517a2e95d2dc4440014913d15e5768f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Security for shed-pi 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page