Skip to content

lucamaf/edge-smart-wind-turbine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Edge Smart Wind Turbine

Overview

A smart wind turbine monitoring and control system for edge computing environments.

Local Deployment

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

git clone <repository-url>
cd edge-smart-wind-turbine
npm install

Running Locally

npm start

The application will be available at http://localhost:3000

Online Deployment (GitHub Pages)

  1. Ensure your repository has GitHub Pages enabled (Settings → Pages)
  2. Build the project:
npm run build
  1. Push to your gh-pages branch or configure deployment in GitHub Actions
  2. Access your site at https://<username>.github.io/edge-smart-wind-turbine

MQTT Broker Connection

Configuration

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-client

WebSocket Support

If connecting from a browser, WebSocket support is required. Configure your MQTT broker:

  • Use mqtt:// for Node.js backend connections
  • Use ws:// (or wss:// for secure) for browser connections
  • Ensure your broker has WebSocket listener enabled (typically port 9001)

Usage

const mqtt = require('mqtt');
const client = mqtt.connect(process.env.MQTT_BROKER);
client.subscribe('turbine/data');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors