Example program to connect to the Danish Dataudveksleren over AMQP
Requires nodejs to run. Install instructions here.
run npm i https rhea
this will install the required libraries.
Open getData.js and change the following to what you get from dataudveksleren:
- SERVICE_ACCOUNT_ID = "CHANGE TO YOUR SERVICE ACCOUNT ID";
- CLIENT_SECRET = "CHANGE TO YOU CLIENT SECRET";
- TENANT_ID = "CHANGE TO YOUR TENANT ID";
- AMQP_URL = "amqp://CHANGE/TO/YOUR/AMQP/URL";
run node getData.js to run the program.
You can use this program to decode ETSI encoded messages.