Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute tgtg-scanner.service #355

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ python src/main.py -f -J >> items.json

Creates a formatted JSON file containing all your favorite items and their available information.

### Systemd unit file

If you wish to use tgtg-scanner as an boot-enablable systemd-unit you can copy the unit file from ````contrib```` to the defined paths.
````cp contrib/tgtg-scanner.service /usr/lib/systemd/system/```` or ````cp contrib/tgtg-scanner.service /etc/systemd/system/````


### Metrics

Enabling the metrics option will expose an HTTP server on the specified port supplying the currently available items. You can scrape the data with Prometheus to create and visualize historic data or use it with your home automation.
Expand Down
7 changes: 7 additions & 0 deletions contrib/tgtg-scanner.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=TGTG-Scanner

[Service]
ExecStart=/usr/local/bin/python3.9 /opt/tgtg-notifier/tgtg/src/main.py
SyslogIdentifier=tgtg-scanner
Restart=always