Simple Pi In The Sky device Integration
Project description
Pi In The Sky - Device
This is the Pi In The Sky (pits) device-side software.
Installation
To install the device software directly from GitHub, or build against it:
pip3 install git+https://github.com/philcali/pits-device.git
You can also use the guided install from your work station to remotely configure a RPi via ssh. Some pre-requisites are:
- Need to be able to
sudo
if selected to assume root - Make your life easier with
ssh-copy-id user@ip
for pub key auth - Have the
aws
CLI on your workstation with permission to create things, roles, S3 buckets, and policies - Run
sh
locally to enter the guide:
mkdir -p $HOME/bin \
&& wget -O $HOME/bin/pitsctl https://raw.githubusercontent.com/philcali/pits-device/main/service/main.sh \
&& chmod +x $HOME/bin/pitsctl \
&& pitsctl -h
Usage
The pitsctl
entry point can handle three targets:
install
: Installs or updates software and agents for running the camera controlremove
: Removes all configuration, cloud resources, software and agentsinspect
: Inpects the installation on the device
Usage: pitsctl - v0.1.1: Install or manage pinthesky software
-h: Prints out this help message
-t: Define the target, applicable values are 'install', 'remove', 'inspect'
-m: Client machine connection details
-r: Assume root permission for management
-v: Prints the version and exists
Example Install
Runs the install wizard on a pi from a client machine
pitsctl -t install -rm pi@10.0.0.1
Runs the install wizard
pitsctl
Example Inpsect
Runs an inspector and outputs a summary
pitsctl -t inspect -rm pi@10.0.0.1
Runs the inspection wizard
pitsctl -t inspect
Example Remove
Runs the removal wizard on a pi from a client machine
pitsctl -t remove -rm pi@10.0.0.1
Runs the removal wizard
pitsctl -t remove
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinthesky-0.1.1.tar.gz
(14.0 kB
view hashes)
Built Distribution
pinthesky-0.1.1-py3-none-any.whl
(16.1 kB
view hashes)
Close
Hashes for pinthesky-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5331371cbda6432a203d1f8613532235ab735a24f60f313f35a30348e599521d |
|
MD5 | 6baba8169c0b5a8db7bdfdfcb52669ad |
|
BLAKE2b-256 | f059157b1bad0417220247a5f6d4b47b470c0e6751b4e9a14923a3c22a9d33c2 |