https://github.com/johnpc/divoom-time-gate
TypeScript script to display Home Assistant status on Divoom Time Gate screens
https://github.com/johnpc/divoom-time-gate
Last synced: 3 months ago
JSON representation
TypeScript script to display Home Assistant status on Divoom Time Gate screens
- Host: GitHub
- URL: https://github.com/johnpc/divoom-time-gate
- Owner: johnpc
- Created: 2025-12-28T22:55:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-10T18:11:25.000Z (5 months ago)
- Last Synced: 2026-01-11T05:27:40.823Z (5 months ago)
- Language: TypeScript
- Size: 122 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Divoom Time Gate
TypeScript script to display Home Assistant status on Divoom Time Gate screens.
## Features
- **Screen 1**: Heated stairs status (OFF/1 ON/2 ON)
- **Screen 2**: Smart locks status (LOCKED/X/2 LOCKED)
- **Screen 3**: Garage door status with timestamp
- **Screen 4**: Weather information
- **Screen 5**: Lights count
## Setup
### Local Development
1. Install dependencies:
```bash
npm install
```
2. Copy `.env.example` to `.env` and configure:
```bash
cp .env.example .env
```
3. Run the script:
```bash
npm start
```
### Docker
1. Create `.env` file with your configuration
2. Run with docker-compose:
```bash
docker-compose up -d
```
Or pull from Docker Hub:
```bash
docker pull mrorbitman/divoom-time-gate:latest
```
## Environment Variables
- `DIVOOM_IP` - IP address of your Divoom Time Gate
- `HOME_ASSISTANT_URL` - Your Home Assistant URL
- `HOME_ASSISTANT_TOKEN` - Home Assistant long-lived access token
- `SLEEP_DURATION` - Update interval in seconds (default: 300)
## Development
- `npm start` - Run the script
- `npm run preview` - Generate images without sending to device (dry-run mode)
- `npm run build` - Compile TypeScript
- `npm run lint` - Check for linting errors
- `npm run format` - Format code with Prettier
Generated images are saved to the `generated/` directory for review.