digitaltwinconsortium / OCPP-Charging-Dashboard

A dockerized web app for displaying Electric Vehicle charging station status, following the OCPP standard data model.
MIT License
15 stars 2 forks source link

Setting up in the Azure #2

Open yagurdmitriy opened 2 years ago

yagurdmitriy commented 2 years ago

Is it possible to provide small instructions for setting it up on Azure? What Azure resources does it need to work with https://github.com/digitaltwinconsortium/iot-edge-ocpp-central-system?

barnstee commented 2 years ago

will do...

barnstee commented 2 years ago

Better?

yagurdmitriy commented 2 years ago

@barnstee Thanks for your answer

I've meant that Is it need some additional configurations in Azure besides deploying (IoT Hub, SignalR, Storage Account, SendGrid, Azure SQL DB)? Will it work from the box just after creating in Azure and adding credentials thru environment variables, or does it needs additional settings for Azure?

I deployed services and added credentials to env: IoT Hub, SignalR Storage Account SendGrid Azure SQL DB

But I couldn't start the container before I added to the Azure Storage the container with the name 'keys' I was receiving exceptions 'RequestFailedException: The specified container does not exist.'.

Also, I've added the new EventHub and the additional Storage container with the name 'telemetrycheckpoints' that use EventProcessorHost. And also, I updated the code and renamed iotHubTelemetryConsumerGroup to '$Default' because I use a basic tier and cant add a new one.

It is starting and I can authorize to the app but on the Dashboard, nothing happens. Does it need additional message routing for the IoT hub , for the SignalR and something else?

Thank you for your help

barnstee commented 1 year ago

Thanks for the additional detail, I have added extra docs now. Once you follow these steps and you have telemetry flowing from the OCPP Central System, telemetry data should start pouring in. Can you double check that telemetry is arriving in IoT Hub via the Azure Portal?