Skip to main content

Client for embedded systems to facilitate remote configuration.

Project description

mac-remote-command

Client for embedded systems to facilitate remote configuration.

MAC Remote Command facilitates the configuration of embedded remote and local systems by connecting to an remote web service. A reference implementation is available and free to use at https://mac-commander.deta.dev/. The source code for the web service is available on GitHub at FlantasticDan/mac-commander. MAC Remote Command optionally includes support to display it's detect Local IP and MAC Address via an OLED Status Display.

Installation

For standard use:

pip install mac-remote-command

For optional use with an OLED Status Display:

pip install mac-remote-command[oled]

Note OLED Status Display is only compatiable on Linux devices with an I2C bus.

Use

Currently the remote command functionality of the package is undeveloped. Right now it only offers a pinging service to publically broadcast it's local and public IP address as referenced by it's MAC Address:

python -m mac_remote.ping

Starting Remote Ping On Boot (Ubuntu)

Linux allows Python modules to be executed as part of a startup service. These instructions assume MAC Remote Command is installed in a virtual environment.

  1. Create a start-mac-remote-ping.sh script which activates the virtual environment and then starts the MAC Remote Command:
#!/bin/bash
cd <directory>
. venv/bin/activate
python -m mac_remote.ping
  1. Modify the script so it is executable: sudo chmod x+ start-mac-remote-ping.sh
  2. Create a service the run the script at startup by writing the following file at /etc/systemd/system/mac-remote-ping.service:
[Unit]
Description=MAC Remote Command Pinger
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=<username>
ExecStart=/path/to/start-mac-remote-ping.sh

[Install]
WantedBy=multi-user.target
  1. Enable the startup service: systemctl enable mac-remote-ping
  2. Reboot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mac-remote-command-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

mac_remote_command-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file mac-remote-command-0.1.0.tar.gz.

File metadata

  • Download URL: mac-remote-command-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for mac-remote-command-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24c8a96451b304bfda5b4c99869edb2530356faf6778a9bb989f4526637b189e
MD5 261fe1c514e23015952910b5e7ab5e22
BLAKE2b-256 10995b381e928cdd166b71cc2430811b171d43806766dcc609e0d83346462e01

See more details on using hashes here.

File details

Details for the file mac_remote_command-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mac_remote_command-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for mac_remote_command-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1179d7ababc83252fc672c32df56830c7f9ddca699206eae359b59a33b97a7f
MD5 2104bda14c5767dfba00a394220fee76
BLAKE2b-256 37fce13df37d4ed19fdee593fce5b0e86171642e096bd5b33b4a8789b059598a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page