This guide provides step-by-step instructions for using the FilantropiaSolar v1.0 production application.
# Navigate to project directory
cd FilantropiaSolar
# Activate virtual environment (if using one)
source venv/bin/activate # On macOS/Linux
# or
venv\Scripts\activate # On Windows
# Run the application
python main.pyWhen you run the application for the first time:
-
Data Loading: The system will automatically load:
- Historical PV data from
PV Plants Datasets.xlsx - Weather data from
weather_files/Lisbon_weather.csv - This may take 1-2 minutes depending on data size
- Historical PV data from
-
Model Training: Machine learning models will be trained:
- Random Forest, Gradient Boosting, and Linear Regression models
- Training happens automatically for each Lisbon installation
- Progress is shown in the status label
-
Ready State: Once complete, the status will show "Data loaded successfully"
- Options: Lisbon_1, Lisbon_2, Lisbon_3, Lisbon_4
- Purpose: Each represents a different PV installation in Lisbon
- Recommendation: Start with Lisbon_1 for testing
- Format: YYYY-MM-DD (e.g., 2024-03-15)
- Options:
- Past dates: Analyze historical performance
- Today: Current day predictions using real-time weather
- Future dates: Forecast based on weather predictions
- Tip: Click "Today" button to quickly set current date
- Default: 10.0 kWp
- Range: Any positive number
- Purpose: Scales energy production to your specific installation size
- Example: If you have a 5 kWp system, enter 5.0
The results display provides comprehensive information:
- Total Energy Production: Sum of all hourly predictions for the day
- Average Specific Energy: Energy per kWp installed capacity
- Average Ranking: Overall quality rating for the day
- Average Temperature: Daily temperature average
- Average Cloud Cover: Percentage cloud coverage
- Average Solar Radiation: Key parameter affecting solar production
- 24-hour view: Energy production for each hour
- Ranking: Quality rating (1-5) for each hour
- Format: "Hour XX: YY.YY kWh (Rank Z)"
- ±7 days: Shows 15 days total (7 before + target day + 7 after)
- Target marker: "← TARGET" indicates your selected date
- Comparison: Compare target day with surrounding dates
- Blue bars: Daily energy production
- Colored edges: Ranking quality (see legend)
- Red line: Temperature overlay
- Green dashed line: Target date marker
- "TARGET" label: Highlights selected date
- Red (Rank 1): Poor conditions (0.1-0.2 kWh/kWp)
- Orange (Rank 2): Fair conditions (0.2-0.4 kWh/kWp)
- Gold (Rank 3): Good conditions (0.4-0.6 kWh/kWp)
- Green (Rank 4): Very good conditions (0.6-0.8 kWh/kWp)
- Dark Green (Rank 5): Excellent conditions (≥0.8 kWh/kWp)
- Select Installation: Choose "Lisbon_1"
- Set Date: Click "Today" button
- Set Capacity: Enter your system size (e.g., 5.0 for 5kWp)
- Generate: Click "Generate Prediction"
- Review Results:
- Check daily total energy production
- Note the average ranking for planning energy usage
- Look at hourly breakdown to identify peak hours
- Select Installation: Choose your preferred installation
- Set Date: Enter tomorrow's date (YYYY-MM-DD)
- Set Capacity: Enter your system capacity
- Generate: Click "Generate Prediction"
- Plan Activities:
- Rank 4-5 hours: Schedule energy-intensive tasks
- Rank 1-2 hours: Minimize electrical usage
- Use weekly trend to compare with other days
- Select Installation: Choose installation to analyze
- Set Date: Enter a past date (e.g., 2023-06-15)
- Set Capacity: Enter system capacity
- Generate: Click "Generate Prediction"
- Compare: Use the plot to see how the selected day compares with surrounding dates
- Select Installation: Choose your installation
- Set Date: Pick any date of interest
- Generate: Click "Generate Prediction"
- Analyze Trend: Look at the ±7 days view in both text and chart
- Identify Patterns:
- Find best days for high energy consumption
- Schedule maintenance on low-production days
- Plan battery charging/discharging cycles
| Rank | Specific Energy | Recommended Usage |
|---|---|---|
| 5 | ≥0.8 kWh/kWp | Maximum energy consumption, run all appliances |
| 4 | 0.6-0.8 kWh/kWp | High energy usage, washing machines, dryers |
| 3 | 0.4-0.6 kWh/kWp | Moderate usage, normal household activities |
| 2 | 0.2-0.4 kWh/kWp | Light usage only, avoid heavy appliances |
| 1 | 0.1-0.2 kWh/kWp | Minimal solar production, rely on grid/battery |
- Rank 5 hours: Run dishwashers, washing machines, electric cars charging
- Rank 4 hours: Most appliances, heat pumps, air conditioning
- Rank 3 hours: Normal usage, computers, lights, TV
- Rank 2 hours: Light usage, avoid heating/cooling systems
- Rank 1 hours: Essential devices only, rely on stored energy
- Rank 5 hours: Schedule energy-intensive manufacturing
- Rank 4 hours: Normal operations, office equipment
- Rank 3 hours: Reduced load operations
- Rank 2 hours: Essential services only
- Rank 1 hours: Switch to backup power/grid
- Check: Ensure Excel files are in the project directory
- Solution: Verify
PV Plants Datasets.xlsxand weather files exist - Location: Files should be in the main project folder
- Cause: Internet connection or API issues
- Solution: Check internet connection
- Fallback: System uses default weather values when API fails
- Cause: Model training failed or insufficient data
- Solution: Ensure historical data contains enough records
- Minimum: At least 50 data points needed for training
- Format: Must use YYYY-MM-DD format
- Examples: 2024-03-15, 2023-12-01
- Avoid: MM/DD/YYYY, DD/MM/YYYY formats
- Solution: Close and restart the application
- Check: Ensure Python tkinter is properly installed
- Alternative: Try running on a different machine
- Use recent dates: Newer weather data provides better accuracy
- Correct capacity: Enter accurate kWp rating for your system
- Stable internet: Ensures reliable weather data retrieval
- Regular updates: Restart application periodically to refresh models
- Close unused applications: Free up system memory
- Stable power: Avoid interruptions during model training
- SSD storage: Faster file access improves loading times
- Generate Prediction: Create the forecast you want to save
- Click Export: Use "Export Results" button in output panel
- File Location: CSV file saved in project directory
- Filename Format:
predictions_{installation}_{date}.csv - Content: Complete hourly data with all weather and energy parameters
- Models: Trained models saved in
models/directory - Logs: Application logs in
logs/application.log - Exports: Exported data in project root directory
- Multiple Installations: Compare different installations by switching between them
- Date Ranges: Analyze seasonal patterns by testing different months
- Capacity Scaling: Test different system sizes to plan upgrades
- Seasonal Comparison: Compare same dates across different years
- Weather Impact: Observe how weather changes affect rankings
- System Planning: Use predictions for sizing battery systems or grid connections
- Morning Check: Analyze today's forecast to plan daily activities
- Weekly Planning: Check next 7 days for energy-intensive task scheduling
- Regular Monitoring: Compare actual vs predicted performance
- Peak Hour Identification: Use hourly breakdown to find best production times
- Load Shifting: Move flexible tasks to high-ranking hours
- Storage Planning: Charge batteries during peak production periods
- Trends Over Time: Look for patterns in weekly views
- Weather Correlation: Notice how weather affects production
- Seasonal Variations: Understand yearly cycles for long-term planning
Need Help? Check the main README.md for detailed technical information or create an issue on the project repository.