Farmware convenience functions for use in FarmBot OS.
Project description
Farmware Tools
Tools for use by Farmware. Starting with FarmBot OS v6.4.2, this package is installed automatically and available for Farmware to import. See the sections below for other installation configurations.
Example
from farmware_tools import device
device.log('hello')
If the above code is run within a Farmware,
FarmBot OS
will send a hello
log to the
FarmBot Web App.
If the above code is run elsewhere, the output will be the command that would have been sent to FarmBot OS:
{'kind': 'send_message', 'args': {'message': 'hello', 'message_type': 'info'}}
Documentation
In addition to the Farmware development documentation, a list of available functions is available via the Python console:
from farmware_tools import app, device
help(app)
help(device)
Local installation (for local Farmware development)
pip install farmware-tools
user-level install: pip install --user farmware-tools
upgrade: pip install --user --upgrade farmware-tools
install a specific version: pip install --user farmware-tools==1.0.0
Specifying a version in a Farmware manifest
"farmware_tools_version": "v1.0.0"
By including this line in a Farmware manifest, FarmBot OS will automatically install the specified version and make it available to import from within the Farmware.
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 farmware_tools-3.5.6.tar.gz
.
File metadata
- Download URL: farmware_tools-3.5.6.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db6a8ef9284657d5baf46faf9e7a108aa591e7e9d5b2aed5158b50e912987c3 |
|
MD5 | 9cdac7ebf25866ff62dea8d69c1f2904 |
|
BLAKE2b-256 | a0394b3e1a2e46d4e1c34339c9ae764dc75e318423627ceef15c16b4ef452169 |
File details
Details for the file farmware_tools-3.5.6-py3-none-any.whl
.
File metadata
- Download URL: farmware_tools-3.5.6-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9345671af048a5e890db77e5e59237ead0b2620138b040f87e15d6ee27bdb9 |
|
MD5 | 05371d3f45496dde933963bbd64af606 |
|
BLAKE2b-256 | a4c830a8893052381924b392b61b69781d3ecac4426d6d7c313e771fd8653202 |