Sign in to follow this  
elambert

Can I Pass Arguments In My Datastreamurl Parameter?

Recommended Posts

I was able to get my realtime function working in a new HLED chart, but I'd like to know if it's possible to pass arguments to the perl script I'm using to pass the real time data to my chart. The string I'd like to use is:

 

"datastreamurl": "/perl/ops/garch/led_datafeed.pl -json led_location_dev.json"

 

I've tried replacing the spaces with %20, but still not working.

 

Thanks in advance for your help!

 

-Eric

Share this post


Link to post
Share on other sites

Hi,

 

Considering your perl script as a CGI script, please note that you can pass values to the script as a querystring, something similar to:

 

"/perl/ops/garch/led_datafeed.pl?type=json&source=led_location_dev.json" (the querystring variable names - type, source are used to demonstrate the implementation, you can use your own variable names which your script can relate to and make use of)

 

Please note that the dataStreamURL will ideally fetch data from a CGI script.

Share this post


Link to post
Share on other sites

Hi,

 

Considering your perl script as a CGI script, please note that you can pass values to the script as a querystring, something similar to:

 

"/perl/ops/garch/led_datafeed.pl?type=json&source=led_location_dev.json" (the querystring variable names - type, source are used to demonstrate the implementation, you can use your own variable names which your script can relate to and make use of)

 

Please note that the dataStreamURL will ideally fetch data from a CGI script.

 

Thank you for the reply. I was able to get this working with a little re-coding effort.

 

-Eric

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this