https://github.com/patrickkfkan/tm1628mpd
https://github.com/patrickkfkan/tm1628mpd
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patrickkfkan/tm1628mpd
- Owner: patrickkfkan
- Created: 2019-10-22T17:54:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T10:06:46.000Z (over 6 years ago)
- Last Synced: 2025-03-04T23:41:49.199Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tm1628mpd
A simple Python package that monitors the status of MPD running on devices with TM1628 4-digit VFD displays. When MPD is playing, it displays the time elapsed on the VFD. Otherwise, it displays the current time.
### Installation
```sh
$ git clone https://github.com/patrickkfkan/tm1628mpd.git
$ cd tm1628mpd
$ sudo pip install .
```
#### Running as a systemd service
To start tm1628mpd as a systemd service, continue from above:
```sh
$ cd systemd
$ sudo ./install.sh
```
You can restart, stop and check status of the service:
```sh
$ systemctl status tm1628mpd # Check status
$ systemctl restart tm1628mpd # Restart
$ systemctl stop tm1628mpd # Stop
```
#### Running from console
If you do not use systemd, you can start tm1628mpd directly from the console:
```sh
$ sudo tm1628mpd
```
### Uninstallation
```sh
$ sudo pip uninstall tm1628mpd
```
If you installed tm1628mpd as a systemd service:
```sh
$ cd /systemd # This is the same path where you ran the script to install the systemd service
$ sudo ./uninstall.sh
```
License
----
GPL 2.0