Site Management
Learn how to effectively manage your project sites in Weather Shield, from creation to monitoring and maintenance.
Site Types
Weather Shield supports various types of energy production sites, each with specific monitoring needs:
typescript
type ProjectSiteType =
| 'solar_array' // 1.2x weather sensitivity
| 'wind_farm' // 1.3x weather sensitivity
| 'hydroelectric' // 1.1x weather sensitivity
| 'coal' // 0.9x weather sensitivity
| 'natural_gas' // 0.9x weather sensitivity
| 'nuclear' // 0.8x weather sensitivity
| 'geothermal' // 0.9x weather sensitivity
| 'biomass' // 0.9x weather sensitivity
| 'other'; // 1.0x weather sensitivity
Creating Sites
Using the Map Interface
- Click "Project Site Map" in the dashboard
- Enter drawing mode using the polygon tool
- Click to place boundary points
- Double-click to complete the polygon
typescript
interface ProjectSite {
id: string;
name: string;
description: string;
type: ProjectSiteType;
coordinates: number[][]; // [longitude, latitude] pairs
user_id: string;
}
Required Information
- Site Name
- Site Type
- Location (drawn polygon)
- Description (optional)
Best Practices
-
Accurate Boundaries
- Include all equipment
- Follow property lines
- Mark access points
-
Descriptive Names
- Location-based naming
- Unique identifiers
- Consistent format
-
Complete Information
- Detailed descriptions
- Accurate site type
- Contact information
Managing Sites
Site Dashboard
The site dashboard provides:
- Current weather conditions
- Risk assessment
- Active alerts
- Historical data
Editing Sites
typescript
interface SiteUpdate {
name?: string;
description?: string;
type?: ProjectSiteType;
coordinates?: number[][];
}
// Example site update
const updateSite = async (siteId: string, updates: SiteUpdate) => {
try {
const result = await projectSiteService.updateProjectSite(siteId, updates);
return result;
} catch (error) {
console.error('Error updating site:', error);
throw error;
}
};
Site Statistics
View important site metrics:
- Weather patterns
- Risk history
- Alert frequency
- Downtime events
Site Organization
Filtering and Sorting
typescript
interface SiteFilters {
riskLevel: RiskCategory[];
weatherConditions: string[];
alertStatus: 'active' | 'none';
siteType: ProjectSiteType[];
}
Grouping Options
- By risk level
- By site type
- By region
- By alert status
Site Monitoring
Dashboard Views
-
Overview
- All sites status
- Risk distribution
- Active alerts
-
Detailed View
- Individual site metrics
- Historical data
- Trend analysis
Alert Configuration
typescript
interface SiteAlertConfig {
site_id: string;
thresholds: {
temperature: {
min: number;
max: number;
};
wind_speed: number;
precipitation: number;
};
notifications: {
email: boolean;
sms: boolean;
webhook: string[];
};
}
Data Management
Export Options
- Site Data
typescript
interface ExportConfig {
sites: string[];
dateRange: {
start: Date;
end: Date;
};
format: 'CSV' | 'JSON' | 'PDF';
metrics: string[];
}
- Bulk Operations
typescript
interface BulkOperation {
operation: 'export' | 'update' | 'delete';
sites: string[];
options?: Record<string, any>;
}
Import Options
typescript
interface ImportConfig {
format: 'CSV' | 'JSON' | 'KML';
options: {
skipDuplicates: boolean;
updateExisting: boolean;
validateData: boolean;
};
}
Site Security
Access Control
typescript
interface SitePermissions {
view: boolean;
edit: boolean;
delete: boolean;
manage_alerts: boolean;
export_data: boolean;
}
interface SiteRole {
name: string;
permissions: SitePermissions;
}
Audit Trail
Track all site changes:
- Creation date
- Modifications
- Access logs
- Alert history
Best Practices
Site Setup
-
Location Accuracy
- Precise boundaries
- Correct coordinates
- Clear markers
-
Data Quality
- Complete information
- Regular updates
- Verified contacts
-
Alert Configuration
- Appropriate thresholds
- Correct notification paths
- Regular testing
Maintenance
-
Regular Reviews
- Verify site details
- Update contacts
- Check configurations
-
Data Cleanup
- Archive old data
- Remove duplicates
- Update outdated info
-
Performance Checks
- Monitor response times
- Verify data accuracy
- Test integrations
Troubleshooting
Common Issues
-
Site Creation Problems
- Invalid coordinates
- Missing required fields
- Duplicate names
-
Update Failures
- Permission issues
- Invalid data
- Network errors
-
Data Sync Issues
- Cache problems
- API timeouts
- Database errors