https://github.com/smarthome-go/infrared-node-rs
Raspberry-Pi microservice for Smarthome that allows IR control (Rewritten in Rust)
https://github.com/smarthome-go/infrared-node-rs
infrared infrared-control raspberry-pi
Last synced: about 2 months ago
JSON representation
Raspberry-Pi microservice for Smarthome that allows IR control (Rewritten in Rust)
- Host: GitHub
- URL: https://github.com/smarthome-go/infrared-node-rs
- Owner: smarthome-go
- License: gpl-2.0
- Created: 2022-08-21T18:57:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T19:32:42.000Z (over 3 years ago)
- Last Synced: 2025-03-02T14:26:40.087Z (over 1 year ago)
- Topics: infrared, infrared-control, raspberry-pi
- Language: Rust
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Infrared Node - Rust Rewrite
This is a new and improved version of [infrared-node](https://github.com/smarthome-go/infrared-node)
## Usage
```
pi@raspberrypi ~> ifrs --help
infrared-node-rs 0.1.0
Raspberry-Pi microservice for Smarthome that allows IR control
USAGE:
ifrs [OPTIONS]
OPTIONS:
-c, --config-path
The path where the configuration file should be located
-d, --discover
Discover mode is used to set up new buttons of a remote
-h, --help
Print help information
-V, --version
Print version information
pi@raspberrypi ~>
```
## Configuration
The default configuration file can be found [here](./src/default_config.toml).
```toml
# Smarthome server configuration
[smarthome]
url = "http://smarthome.box" # Fully-qualified root URL of the main server
token = "your-token" # Authentication token for (navigate to `http://url/profile` to obtain a token)
# Hardware configuration
[hardware]
enabled = false # If the infrared scanner should be initialized on startup
pin = 0 # The BCM pin number on which the infrared scanner is attached
# Button actions can be configured here
[[actions]]
name = "default" # A name which describes your action well
triggers = [101] # A list of numbers (the codes which match the action), multiple codes can correspond to one action
homescript = "print('Homescript')" # The Homescript code which is executed when the action was matched (validated on startup)
```