Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sipfront/odroid-status
Check Sipfront test status via API on Odroid C4 and signal state via GPIO
https://github.com/sipfront/odroid-status
Last synced: 16 days ago
JSON representation
Check Sipfront test status via API on Odroid C4 and signal state via GPIO
- Host: GitHub
- URL: https://github.com/sipfront/odroid-status
- Owner: sipfront
- Created: 2024-01-20T02:28:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-23T23:44:11.000Z (11 months ago)
- Last Synced: 2024-11-12T10:13:54.752Z (3 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
In this repo, you can find a collection of scripts to query the [Sipfront](https://sipfront.com) API and trigger
the output of a GPIO pin.# Installation
1. Copy this repo to /usr/local/odroid-status.
```
sudo cp -r $(pwd) /usr/local/odroid-status
```
1. Copy the systemd service files in etc/* to /lib/systemd/system/
```
sudo cp $(pwd)/etc/*.service /lib/systemd/system/
```
1. Configure the test and project to watch
```
sudo cfg="/usr/local/odroid-status/etc/config.inc"
sudo cat > "$cfg" << EOF
SF_API_KEY=your-api-key
SF_API_SECRET=your-api-secret
SF_TEST_ID=your-test-id-to-check
SF_PROJECT_ID=your-project-id-to-check
EOF
sudo chmod 600 "$cfg"
```1. Enable the relevant services
```
sudo systemctl daemon-reload
sudo systemctl enable sipfront-check-test.service
# or if you monitor a whole project:
# sudo systemctl enable sipfront-check-project.service
```