Skip to content

AirPyrt

Samuel Elliott edited this page Aug 30, 2019 · 4 revisions

AirPyrt is a tool written in Python for controlling AirPort devices, including querying / updating ACP properties.

GitHub: https://github.com/x56/airpyrt-tools

Installation

To install AirPyrt, run:

git clone https://github.com/x56/airpyrt-tools.git
cd airpyrt-tools
python setup.py install --user

Using

You need to use the IPv4 address to connect.

Get property

python -m acp -t {ipv4-address} -p {password} --getprop {property}

{ipv4-address} should be the IPv4 address of the AirPort device.
{password} should be the admin password of the AirPort device.
{property} should be the 4 character code to specify which property you want to get. See ACP Properties for more information.

Example:

python -m acp -t 10.0.1.1 -p password --getprop syNm
AirPort Extreme

Set property

python -m acp -t {ipv4-address} -p {password} --setprop {property} {value}

{ipv4-address} should be the IPv4 address of the AirPort device.
{password} should be the admin password of the AirPort device.
{property} should be the 4 character code to specify which property you want to set. See ACP Properties for more information.
{value} should be the new value of the property.

Example:

python -m acp -t 10.0.1.1 -p password --setprop syNm AirPort\ Extreme

Restart

python -m acp -t {ipv4-address} -p {password} --reboot

{ipv4-address} should be the IPv4 address of the AirPort device.
{password} should be the admin password of the AirPort device.

Example:

python -m acp -t 10.0.1.1 -p password --reboot
Clone this wiki locally