Skip to main content

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

Metadata

Release files for pikvm-mouse-wiggle 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pikvm-mouse-wiggle 0.0.2
File Size Uploaded
pikvm-mouse-wiggle-0.0.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pikvm-mouse-wiggle 0.0.2
File Interpreter ABI Platform
pikvm_mouse_wiggle-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / pikvm-mouse-wiggle-0.0.2.tar.gz

Download URL pikvm-mouse-wiggle-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9d5e1b3b6bcd038f010f13c4f734df10fb4db1ca3022a175541cd0a072482a65
BLAKE2b-256 checksum
How to use checksums
c3ad25886ddfafdc0e3a848f15d4c8849824f6a3d1ea323eeb60684cc8249260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.7

Release files / pikvm_mouse_wiggle-0.0.2-py3-none-any.whl

Download URL pikvm_mouse_wiggle-0.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f2705f14ee94d4125aad1c2998c5feab9ba4f6f3a2604bf069b4947c9334bac
BLAKE2b-256 checksum
How to use checksums
0ee0e12ce8a4e67ddd9f717bcd5d4f278e504abdfd06cd8ae3850ab2698a14ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page