PI-KVM Mouse Wiggle
Project description
pikvm-mouse-wiggle
Mouse wiggler for the PiKVM.
What?
This is for where you have a system which you use via PiKVM which enacts a screen-saver, sleep or shutdown which you cannot change for whatever reason. pikvm-mouse-wiggle
will connect to your PiKVM's API and simulate a mouse wiggle, just as if you'd uploaded a script via PiKVM's web console.
You can get USB dongles that perform this wiggling for you, but for PiKVM users this option is cheaper.
Installation
Installation is via PyPI:
pip install pikvm-mouse-wiggle
This will give you the main script, pikvm-mouse-wiggle
, and the pikvm_mouse_wiggle
Python module.
Usage
To start mouse-wiggling, specify the IP address (or hostname) of your PiKVM host, and the username and password you use to log into the web interface:
pikvm-mouse-wiggle -H 192.168.0.10 -u admin -p MyPassw0rd123
The script will now move the mouse by a few pixels every 120 seconds. Note that absolute positioning is currently used, so you may find the mouse movement annoying. To remedy this, increase the delay with --delay <seconds>
.
Full usage:
usage: pikvm-mouse-wiggle [-h] -H HOSTNAME [-u USERNAME] [-p PASSWORD] [-d DELAY]
Mouse wiggler for PiKVM
options:
-h, --help show this help message and exit
-H HOSTNAME, --hostname HOSTNAME
Hostname or IP address of the PiKVM device
-u USERNAME, --username USERNAME
Username for PiKVM web interface
-p PASSWORD, --password PASSWORD
Password for PiKVM web interface
-d DELAY, --delay DELAY
Delay between mouse wiggles
You can also wiggle via Python directly if you so choose. Here's an example:
from pikvm_mouse_wiggle import wiggle
wiggle(
"hostname",
"admin",
"MyPassw0rd123",
120,
)
Licence
MIT Licence
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 pikvm-mouse-wiggle-0.0.2.tar.gz
.
File metadata
- Download URL: pikvm-mouse-wiggle-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d5e1b3b6bcd038f010f13c4f734df10fb4db1ca3022a175541cd0a072482a65 |
|
MD5 | 6fef67df0807d43eb9bea8b5bfb946f9 |
|
BLAKE2b-256 | c3ad25886ddfafdc0e3a848f15d4c8849824f6a3d1ea323eeb60684cc8249260 |
File details
Details for the file pikvm_mouse_wiggle-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pikvm_mouse_wiggle-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2705f14ee94d4125aad1c2998c5feab9ba4f6f3a2604bf069b4947c9334bac |
|
MD5 | 793ab6c4ab7bfcc37d3bd40257475e03 |
|
BLAKE2b-256 | 0ee0e12ce8a4e67ddd9f717bcd5d4f278e504abdfd06cd8ae3850ab2698a14ee |