It contains following projects
- RestService It contain back end API's. For API's help page redirect to http:///Help.
- EnergyManagementScheduler.WebJob It contain scheduler to run periodic jobs for Anomaly detection, Consumption Alert, Daily and Monthly Consumption, Daily and weekly prediction on half hourly power scout data.
What things you need to install the software and how to install them
- Active Azure subscription.
- Microsoft SQL Server.
- Email host to send emails.
- Google firebase credentials.
- B2C Application with sign-up, sign-in and change password policy.
- Azure storage.
- Add value for following configurations,
- RestService Configuration -
- b2c:Tenant - B2C application id.
- b2c:ClientId - Valid client id, API only accepts tokens from its own clients.
- b2c:SignUpPolicyId - B2c sign-in policy.
- b2c:SignInPolicyId - B2c sign-up policy.
- b2c:ChangePasswordPolicy - B2c change password policy.
- b2c:ClientSecret - B2c app key.
- EmailHost
- EmailHostPassword
- EmailHostPort
- EmailSender
- BlobStorageConnectionString - azure storage connection string.
- NotificationURL - google firebase url.
- NotificationClickAction - google firebase click action.
- PowerGridEntities - Entity framework generated sql server connection string, change data source, user id and password.
- EnergyManagementScheduler.WebJob configuration
- DbConnectionString - sql server connection string.
- NotificationURL - google firebase url.
- NotificationClickAction - google firebase click action.
- MeterKwhCost - default 0.04.
- AnomalyThreshold - default 0.6.
- AzureWebJobsDashboard - azure storage connection string.
- AzureWebJobsStorage- azure storage connection string.
- RestService Configuration -
A step by step series of examples that tell you have to get a development env running
- Clone or download source code.
- Open code in microsoft visual studio and rebuild it.
- Create and publish database.
- Host Api on IIS.
- Run EnergyManagementScheduler.WebJob project.