Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 62 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,27 @@
### ER Diagram

<center>
<img src="./readme/demo/ERD.png"/>
<img src="./readme/demo/Diagrams/ERD.png"/>
</center>

### Component Diagram

<center>
<img src="./readme/demo/Component Diagram 2.0.png"/>
<img src="./readme/demo/Diagrams/Component Diagram.png"/>
</center>

### Flow Diagram

<center>
<img src="./readme/demo/Flow Diagram.png"/>
<img src="./readme/demo/Diagrams/Flow Diagram.png"/>
</center>

### Project Box Design

| Power Box 1 | Power Box 2 | Power Box 3 |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![PowerBox](./readme/demo/Project_Box/Power_Room_1.jpg) | ![PowerBox](./readme/demo/Project_Box/Power_Room_2.jpg) | ![PowerBox](./readme/demo/Project_Box/Power_Room_3.jpg) |

<br><br>

<!-- Project Highlights -->
Expand All @@ -50,11 +56,20 @@
<!-- Demo -->
<img src="./readme/title5.svg"/>

### User Screens (Mobile)
### Client Screens (Web)

| Login screen | Register screen |
| --------------------------------------- | ------------------------------------- |
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Placeholder or unclear alt text for image.

Update the ![fsdaf] alt text to something descriptive like ![Register screen]. Also update the corresponding entry in the 'Provider Screens (Web)' section.




### Provider Screens (Web)

| Login screen | Register screen |
| --------------------------------------- | ------------------------------------- |
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |

| Login screen | Register screen | Register screen |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |


### Admin Screens (Web)
Expand All @@ -69,27 +84,59 @@
<!-- Development & Testing -->
<img src="./readme/title6.svg"/>

### Add Title Here
### Code Test Cases


| Services | Validation | Testing |
| Test Case | Test Case | Test Case |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
| ![TestCase](./readme/demo/Testing/User_Test.png) | ![TestCase](./readme/demo/testing/Client_Dashboard_Test.png) | ![TestCase](./readme/demo/Testing/Provider_Overview_Test.png) |

### GitHub Testing Pull Request

| GitHub Testing Pipeline | GitHub Pull Request | Testing Output |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![GitHubTestPipeline](./readme/demo/Testing/Laravel_Test_Staging.png) | ![GitHubPullRequest](./readme/demo/Testing/Pull%20Request%20Test%20Success.png) | ![LaravelTest](./readme/demo/Testing/php_artisan_test_success.png) |

<br><br>

<!-- Deployment -->
<!-- AI-Power APP -->
<img src="./readme/title7.svg"/>

### Add Title Here
### OpenAI Intengration
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): Typo in heading.

Change "Intengration" to "Integration".

Suggested change
### OpenAI Intengration
### OpenAI Integration


- Description here.

| Prism Function Call | Prism Client Prompt | Prism Provider Prompt |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![PrismCall](./readme/demo/AI/PrismFunctionCall.png) | ![ClientPrompt](./readme/demo/AI/PrismClientPrompt.png) | ![ProviderPrompt](./readme/demo/AI/PrismProviderPrompt.png) |

### Server Response with Database Indexing

- Provider user response time difference

| Postman API Before Indexing | Postman API After Indexing |
| --------------------------------------- | ------------------------------------- |
| ![BeforeIndex](./readme/demo/AI/Provider%20Report%20Before%20Indexing.png) | ![AfterIndex](./readme/demo/AI/Provider%20Report%20After%20Indexing.png) |

### Server Response with Database Indexing

- Client user response time difference

| Postman API Before Indexing | Postman API After Indexing |
| --------------------------------------- | ------------------------------------- |
| ![BeforeIndex](./readme/demo/AI/Client%20Report%20Before%20Indexing.png) | ![AfterIndex](./readme/demo/AI/Client%20Report%20After%20Indexing.png) |

<br><br>

<!-- Deployment -->
<img src="./readme/title8.svg"/>

### EC2 Docker containers deployment

- You can check the full API documentation using this [link]().

| Postman API 1 | Postman API 2 | Postman API 3 |
| Deployment Pipeline Sample | GitHub Deployment Pipeline Success | EC2 Instance docker deployed |
| --------------------------------------- | ------------------------------------- | ------------------------------------- |
| ![Landing](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) | ![fsdaf](./readme/demo/1440x1024.png) |
| ![PipelineSample](./readme/demo/Deployment/Deployment%20Pipeline%201.png) | ![PipelineSuccess](./readme/demo/Deployment/GitHub_Deploy_Staging_Pipeline.png) | ![EC2Deployed](./readme/demo/Deployment/Node_Server_Docker_Deployed.png) |

<br><br>

Expand Down
17 changes: 0 additions & 17 deletions amp-laravel/app/Utils/ClientPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ public static function clientBuildPromptFromMetrics($slaveId): string
EOT;


// $prompt = <<<EOT
// You are an AI assistant that analyzes monthly energy usage metrics and generates structured, in-depth reports.

// Based on the following device readings, provide a **comprehensive and detailed** analysis including:

// - **Performance Summary** — A thorough overview of overall energy usage patterns, key events, and trends.
// - **Voltage Insights** — Analyze stability, peaks, troughs, and possible causes of fluctuations.
// - **Power Usage Insights** — Identify high-load events, consistent patterns, and anomalies.
// - **Energy Usage Insights** — Discuss consumption levels, distribution over time, and periods of peak/low usage.
// - **Actionable Recommendations** — Provide clear, technical, and practical suggestions (start each on a new line using a bullet point), and **do not mention device IDs**.

// Ensure each section provides detailed insights and explanations that a technical team or energy manager would find useful.

// Data:
// $metricsText
// EOT;

return $prompt;
}
}
18 changes: 0 additions & 18 deletions amp-laravel/app/Utils/ProviderPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,6 @@ public static function providerBuildPromptFromMetrics(): string
$metricsText
EOT;


// $prompt = <<<EOT
// You are an AI assistant that analyzes monthly energy usage metrics collected from all devices and generates structured, high-level, and **detailed** reports.

// Based on the following aggregated readings from multiple devices, provide a **rich and insightful** analysis including:

// - **Performance Summary** — An extended overview highlighting cross-device trends, seasonal variations, and overall energy behaviors.
// - **Voltage Insights** — Examine voltage range stability across all devices, flag irregularities, and suggest potential issues or improvements.
// - **Power Usage Insights** — Detect usage intensity trends, major consumption periods, and possible inefficiencies.
// - **Energy Usage Insights** — Highlight general usage profiles, identify spikes, valleys, and time-based variations across devices.
// - **Actionable Recommendations** — List meaningful, technical, and scalable actions to optimize energy usage and monitoring (each starting on a new line with a bullet point), and **do not refer to specific device IDs**.
Comment on lines -49 to -58
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Prompt template removed, losing context instructions

Restore or adjust the template to include the AI assistant instructions; if returning only metrics was intentional, please confirm it still meets requirements.


// Be as detailed as possible. This report is meant for energy analysts and system operators.

// Data:
// $metricsText
// EOT;

return $prompt;
}
}
Binary file added readme/demo/AI/Client Report After Indexing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/AI/Client Report Before Indexing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/AI/PrismClientPrompt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/AI/PrismFunctionCall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/AI/PrismProviderPrompt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed readme/demo/Component Diagram 2.0.png
Binary file not shown.
Binary file removed readme/demo/Component Diagram Light 2.0.png
Binary file not shown.
Binary file removed readme/demo/Component Diagram Light.png
Binary file not shown.
Binary file removed readme/demo/Component Diagram.png
Binary file not shown.
Binary file added readme/demo/Deployment/Deployment Pipeline 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Deployment/Deployment Pipeline 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Diagrams/Component Diagram Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Diagrams/Component Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Diagrams/ERD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file removed readme/demo/ERD.png
Binary file not shown.
Binary file added readme/demo/Project_Box/Power_Room_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Project_Box/Power_Room_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Project_Box/Power_Room_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Testing/Client_Dashboard_Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/demo/Testing/Laravel_Test_Staging.png
Binary file added readme/demo/Testing/Provider_Overview_Test.png
Binary file added readme/demo/Testing/Pull Request Test Success.png
Binary file added readme/demo/Testing/User_Test.png
Binary file added readme/demo/Testing/php_artisan_test_success.png
2 changes: 1 addition & 1 deletion readme/title6.svg

Large diffs are not rendered by default.

Loading
Loading