1
0
mirror of https://github.com/gryf/linak-ctrl.git synced 2026-04-25 16:01:31 +02:00

5 Commits

Author SHA1 Message Date
gryf 3abdbfaa6a Removed license classifier in favor of SPDX entry. 2025-04-18 16:07:12 +02:00
gryf ab18c7d90f Move from setup.cfg to pyproject.toml. 2025-03-26 19:34:52 +01:00
gryf 4ae101603e Readme update. 2022-04-13 17:44:42 +02:00
gryf 13d2f008ad Make the package instead of bare module. 2022-04-13 17:39:43 +02:00
gryf 8793e55695 Fix typo in the url. 2022-04-08 18:20:03 +02:00
6 changed files with 51 additions and 46 deletions
+3
View File
@@ -0,0 +1,3 @@
.venv
*.egg-info
build
+6 -6
View File
@@ -36,7 +36,7 @@ Or, you can install it system-wide:
.. code:: shell-session
$ sudo pip install linak-ctrl
# sudo pip install linak-ctrl
And finally, you could also install dependences from your system repositories,
and use script directly, by placing it somewhere in your ``$PATH``.
@@ -52,7 +52,7 @@ number, and in centimeters, and information if desk is moving.
.. code:: shell-session
$ linak_ctrl.py status
$ linak_ctrl/__init__.py status
Position: 767, height: 78.80cm, moving: False
Note, that height was measured manually and may differ depending if desk have
@@ -63,7 +63,7 @@ information from USB2LIN06 device every 0.2 seconds:
.. code:: shell-session
$ linak_ctrl.py status -l
$ linak_ctrl/__init__.py status -l
Position: 2161, height: 100.25cm, moving: True
Position: 2109, height: 99.45cm, moving: True
Position: 2026, height: 98.17cm, moving: True
@@ -81,14 +81,14 @@ my case). For example:
.. code:: shell-session
$ linak_ctrl.py move 1000
$ linak_ctrl/__init__.py move 1000
For displaying debug information verbosity can be increased using ``--verbose``
parameter:
.. code:: shell-session
$ linak_ctrl.py -v move 1000
$ linak_ctrl/__init__.py -v move 1000
Current position: 771
Current position: 792
Current position: 825
@@ -101,7 +101,7 @@ Adding more `-v` will increase amount of information:
.. code:: shell-session
$ linak_ctrl.py -vv move 1000
$ linak_ctrl/__init__.py -vv move 1000
array('B', [4, 56, 17, 8, 3, 3, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 232, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0])
Current position: 771
array('B', [4, 56, 17, 0, 21, 3, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 232, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0])
+42
View File
@@ -0,0 +1,42 @@
[build-system]
requires = ["setuptools >= 77.0"]
build-backend = "setuptools.build_meta"
[project]
name = "linak-ctrl"
version = "1.0.5"
requires-python = ">= 3.10"
description = "Control Linak powered desks using USB2LIN06 cable."
dependencies = [
"pyusb>=1.3.1"
]
readme = "README.rst"
authors = [
{name = "Roman Dobosz", email = "gryf73@gmail.com"}
]
license = "BSD-3-Clause"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking"
]
[tool.setuptools]
py-modules = ["linak_ctrl"]
[project.urls]
Repository = "https://github.com/gryf/linak-ctrl"
[project.scripts]
linak-ctrl = "linak_ctrl:main"
[tool.distutils.bdist_wheel]
universal = true
-2
View File
@@ -1,2 +0,0 @@
pbr
pyusb>=1.1.1
-34
View File
@@ -1,34 +0,0 @@
[metadata]
name = linak-ctrl
summary = Control Linak powered desks using USB2LIN06 cable.
description-file = README.rst
author = Roman Dobosz
author-email = gryf73@gmail.com
home-page = https://gihtub.com/gryf/linak-ctrl
license = BSD
classifier =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: End Users/Desktop
License :: OSI Approved :: BSD License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: System :: Networking
[install]
record = install.log
[options.entry_points]
console_scripts =
linak-ctrl= linak_ctrl:main
[options]
install_requires =
pyusb
[bdist_wheel]
universal = 1
-4
View File
@@ -1,4 +0,0 @@
import setuptools
setuptools.setup(setup_requires=['pbr>=2.0.0'], pbr=True)