https://github.com/limit-zero/projector-button
https://github.com/limit-zero/projector-button
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/limit-zero/projector-button
- Owner: limit-zero
- Created: 2019-04-25T21:43:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:57:08.000Z (over 3 years ago)
- Last Synced: 2025-01-09T08:29:21.289Z (over 1 year ago)
- Language: JavaScript
- Size: 816 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Projector Power Button
This project requires [Yarn](https://yarnpkg.com/en/docs/install) and [NodeJS 10](https://nodejs.org/en/download/).
## Installation
- Clone this repository (`git clone https://github.com/limit-zero/projector-button.git`)
- From the project root, install dependencies via `yarn install`
- Setup the required environment variables (see below)
- When developing, run `yarn dev`
- When serving in production, run `yarn serve`
- The service is now available on `http://localhost:4999` or whatever port you configure
## Setup
You must specify your projector's `USERNAME` and `PASSWORD` values using environment variables. The easiest way to set these is to create a `.env` file in the root of the project:
```
USERNAME=usernamehere
PASSWORD=passwordhere
```
You can also change the default port using the `PORT` environment variable.
## Usage
Once the service is running, you can power on a projector by visiting `http://localhost:/[projector-host-name]`.
For example: `http://localhost:4999/your-projector.your-domain.com`