A web connected patio awnings controller on Raspberry Pi
Project description
pi_anwing_webthing
A web connected patio awnings controller on Raspberry Pi
Currently supported are TB6612FNG driven motors such as DGO-3512ADA. The concrete motor configuration(s) are defined by using a config file. For TB6612FNG driven motors the filename has to include the term tb6612fng such as tb6612fng_motors.config
# name, gpio_forward, gpio_backward, step_duration_in_sec
lane1, 2, 3, 0.5
lane2, 19, 26, 0.5
lane3, 5, 6, 0.5
lane4, 10, 9, 0.5
Regarding the hardware setup and wiring please refer example hardware setup
To install this software you may use PIP package manager such as shown below
sudo pip install pi_anwing_webthing
After this installation you may start the webthing http endpoint inside your python code or via command line using
sudo anwing --command listen --port 9500 --filename /etc/anwing/tb6612fng_motors.config
Here, the webthing API will be bind to the local port 9500
Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using the listen command is no longer necessary.
sudo anwing --command register --port 9500 --filename /etc/anwing/tb6612fng_motors.config
The anwing service exposes an http webthing endpoint supporting the anwing properties. E.g.
# webthing has been started on host 192.168.0.23
curl http://192.168.0.23:9500/properties
{
...
}
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
Built Distribution
File details
Details for the file pi_anwing_webthing-0.0.7.tar.gz
.
File metadata
- Download URL: pi_anwing_webthing-0.0.7.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c348c574a09ab77c768f1d9e42b70ffe4444e976234a9f171888fd32f3e055 |
|
MD5 | 34b0da7f517b40966a0da3deb1cda4f2 |
|
BLAKE2b-256 | 994cb54e436e55edd3d8bea8f6fa695edc31c724584fcadc45aee452512932fb |
File details
Details for the file pi_anwing_webthing-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pi_anwing_webthing-0.0.7-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f903e79b3ad304cd8b8c88b2aa256c72a538f352ca4eead4197dce851e61b3 |
|
MD5 | 07f065bf36d332d8cc4973b32315fdf6 |
|
BLAKE2b-256 | 3fc2adf1f2185385211926b599eb4a691e25bb25728b1a214b33d5660eb82938 |