# Wire67 Dashboard

## Overview
The Wire67 Dashboard is a web-based interface designed to monitor and control devices over MQTT. It provides real-time updates and a user-friendly experience for managing device states.

## Project Structure
```
wire67-dashboard
├── public
│   ├── index.php          # Main entry point for the web dashboard
│   ├── css
│   │   └── wiegand-mqtt.min.css     # Styles for the web dashboard
│   └── js
│       ├── app.js         # Main JavaScript functionality
│       └── mqtt-client.js  # MQTT client logic
├── .gitignore              # Git ignore file
└── README.md               # Project documentation
```

## Installation
1. Clone the repository

2. Install dependencies using Composer:
   ```
   composer install
   ```

3. Configure your MQTT settings:
   - Copy `config/config.example.php` to `config/config.php` and fill in your MQTT broker details.
   - Create a `.env` file from `.env.example` and set your environment variables.

## Usage
- Start a local server (e.g., using PHP's built-in server):
  ```
  php -S localhost:8000 -t public
  ```

- Open your web browser and navigate to `http://localhost:8000/index.php` to access the dashboard.

## Features
- Real-time monitoring of device status via MQTT.
- Control commands can be sent directly from the dashboard.
- Responsive design for optimal viewing on various devices.

## Contributing
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

## License
This project is licensed under the MIT License. See the LICENSE file for more details.