This module is intended to provide a python3 module and a CLI tool to manage
light phases on a RLIEH sat system
Rlieh-satlight is a part of the [RLIEH project](http://www.emnet.cc/portfolio/rlieh/)
and can be used on any system running python.
## .ini file sample
```ini
[hardware]
type = sat
ip = 192.168.1.43
pwm_channel = 0
; type = controller
; pin = 18
; light pwm values (percent)
[light_thresholds]
dawn = [0, 20]
sunrise = [20, 75]
noon = [75, 100, 75] ; unused
sunset = [75, 20]
dusk = [20, 0]
; light modulation phases duration (in mn)
[light_duration]
dawn = 10
sunrise = 10
sunset = 10
dusk = 10
```
## Install
### From source
```bash
git clone https://work.ipeos.com/gitlab/rlieh/rlieh-sat-light-client.git
cd rlieh-satlight
python3 setup.py install
```
coming soon to https://github.com/owatte/rlieh-satlight.git
### From pip
coming soon
```
pip3 install rlieh-satlight
```
## Usage
### as Py module
```python
>>> from rlieh_sat.core import RliehSatLight
>>> light = RliehSatLight('/home/pi/conf/matouba.ini', 'dawn')
>>> light.request()
```
### as CLI tool
```bash
$ rlieh-satlight -h
usage: rlieh-satlight [-h] -i INI -p PHASE
Manage light on RLIEH sat.
optional arguments:
-h, --help show this help message and exit
-i INI, --ini INI ini file full path
-p PHASE, --phase PHASE light phase
```
#### Simple call example
*dawn* phase on *matouba* tank
```
$ rlieh-satlight -i /home/pi/conf/matouba.ini -p dawn
```
#### Tip : create an alias
If you manage several tanks, the best way is probably to create aliases
```bash
$ alias matouba_dawn='rlieh-satlight -i /home/pi/conf/matouba.ini -p dawn'
```
## Licence
Released under The [GPL v3 License](COPYING.md).
Copyright (C) 2018 EmNet
Metadata
Release files for rlieh-satlight 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rlieh_satlight-0.0.4.tar.gz | 17.5 kB | Without provenance | Details for rlieh_satlight-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rlieh_satlight-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for rlieh_satlight-0.0.4-py3-none-any.whl |
Total release size: 34.2 kB
Release files / rlieh_satlight-0.0.4.tar.gz
| Download URL | rlieh_satlight-0.0.4.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8007395c26156f5ea046af8d93770558ef5f27c9ba5badc58c44a5ee21a23dc0
|
|
BLAKE2b-256 checksum How to use checksums |
0bb193b865418d6c4f384e2e461d42ce30d315ee374c9dc1719301eef749bfd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / rlieh_satlight-0.0.4-py3-none-any.whl
| Download URL | rlieh_satlight-0.0.4-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3fddcbe70adde4d1e80565957aadd211f09e98973a8ee7275222dd44a361a0c
|
|
BLAKE2b-256 checksum How to use checksums |
fef120679df95f15c30f25c96fe16c4c0c7971d887941ee7c4da0d94c9ea97ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for rlieh-satlight 0.0.4
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.