A smart wind turbine monitoring and control system for edge computing environments.
- Node.js 16+
- npm or yarn
git clone <repository-url>
cd edge-smart-wind-turbine
npm installnpm startThe application will be available at http://localhost:3000
- Ensure your repository has GitHub Pages enabled (Settings → Pages)
- Build the project:
npm run build- Push to your
gh-pagesbranch or configure deployment in GitHub Actions - Access your site at
https://<username>.github.io/edge-smart-wind-turbine
Add MQTT connection settings to your .env file:
MQTT_BROKER=mqtt://broker.example.com:1883
MQTT_USERNAME=your_username
MQTT_PASSWORD=your_password
MQTT_CLIENT_ID=wind-turbine-clientIf connecting from a browser, WebSocket support is required. Configure your MQTT broker:
- Use
mqtt://for Node.js backend connections - Use
ws://(orwss://for secure) for browser connections - Ensure your broker has WebSocket listener enabled (typically port 9001)
const mqtt = require('mqtt');
const client = mqtt.connect(process.env.MQTT_BROKER);
client.subscribe('turbine/data');