Argonne-National-Laboratory / node-red-contrib-oadr-ven

OpenADR virtual end node for Node-Red
Other
9 stars 6 forks source link

Help getting started #17

Open bbartling opened 3 years ago

bbartling commented 3 years ago

Hello,

I have a default openLeadr VTN running localhost next to Node Red.

Can someone give me a tip on how to get started with the VEN communicating to the VTN?

With the example flows: image

I did incorporate my VEN name which is also configured into my openLeadr VTN script: image

But restarting the FLOW, nothing happens. Any tips greatly appreciated what I am missing, am also a bit new to node red as well.

Hoping to do some testing with open ADR profile B over HTTP using VEN name as login to the openLeadr VTN.

bbartling commented 3 years ago

Actually I think I am figuring this out. I need to hit the inject button. At least on the openleadr side I can see something happening in the command prompt.

image

Is there any chance I could get a tip on what goes on in the openleadr VEN where through simple http method the VEN continuously check ins with the VTN on a 60 second poll rate. How could I mimic the openleadr example VEN with this node red VEN? Any tips on whats needed greatly appreciated, where instead of manually injecting I can just setup to automatically through the node red flow on an interval

bnystrom commented 3 years ago

Ben,

I've been working on a new update to the node-red VEN, but it's not quite ready for release yet. It adds some fixes and better support for the reporting functions.

You'll want to to take a look a the switch "response types" for the "oadrCreatedPartyRegistration". If successful, it will contain a "pollFreqSeconds", which is the VTN telling the VEN how often it should poll. Feed this response back into your polling function. I typically set up a javascript "setInterval" to start polling the VTN. In the example flow, it requires you to start that happening by hitting the inject button on the node, but you could just directly kick that off from the "oadrCreatedPartyRegisteraion" response.

In my flows, I keep a flow context variable that sets the polling rate. The "setInterval" loop checks that variable every time it kicks off. If the context variable gets deleted or set to 0, it knows sto stop polling.

Best Regards Bryan Nystrom

On Tue, Oct 19, 2021 at 10:49 AM Ben Bartling @.***> wrote:

Actually I think I am figuring this out. I need to hit the inject button. At least on the openleadr side I can see something happening in the command prompt.

[image: image] https://user-images.githubusercontent.com/29737117/137945926-502aeeef-731f-43d7-9469-2eb428cfa001.png

Is there any chance I could get a tip on what goes on in the openleadr VEN where through simple http method the VEN continuously check ins with the VTN on a 60 second poll rate. How could I mimic the openleadr example VEN with this node red VEN? Any tips on whats needed greatly appreciated, where instead of manually injecting I can just setup to automatically through the node red flow on an interval

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Argonne-National-Laboratory/node-red-contrib-oadr-ven/issues/17#issuecomment-946858901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANQYLY5PM5ZL4YPVBIA4ZDUHWHO7ANCNFSM5GJO342A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bbartling commented 3 years ago

Great thanks! Ill experiment with your recommendations. Looking forward to a new release of what you mentioned when your update comes out. Would that be soon? Thanks again for the fast response.

bbartling commented 2 years ago

Hi Bryan, any updates on the examples? Thanks!

bbartling commented 2 years ago

Hello is this project still active?