Home/Support/Support Forum/Processing data with RabbitWeb
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Processing data with RabbitWeb

0 votes
I have an application where the RCM timestamps and stores temperature & humidity data locally on the RCM. I want to be able to read it out as a simple HTML table with columns for date, time, temperature, and humidity using a web browser.
I want to keep a significant history of data on the RCM so I need to store the data in a "packed" format, for example have the timestamp as an unsigned long from the SEC_TIMER. When the table is presented to the user, the unsigned long value needs to be converted to a date/time display format.
I don't see a way for RabbitWeb to do any processing. Is there a way to have RabbitWeb call a C function to process each element before it is put in the table row?
asked Aug 2, 2015 in Rabbit by bflusche New to the Community (3 points)

Please log in or register to answer this question.

2 Answers

0 votes
Hello,

At the below link under "General Documentation" there is downloadable file "Dynamic Web Pages With The Embedded Web Server", once download and extract,you can see the rabbit geek work book, in this document mentioned the possibilities of data processing, also there are some sample applications,I hope this may help you.

http://www.digi.com/support/productdetail?pid=4978&type=documentation


Thanks.
answered Sep 17, 2015 by cpigilam Veteran of the Digi Community (655 points)
0 votes
When I had to do this in the past, I implemented it using an SHTML page instead of RabbitWeb, with a tag of <!--#exec cmd="function_name"-->.

Take a look at Samples/tcpip/http/SSI2.C as an example of this method. The audit_list_print() function shows how to use the "substate" member of the HttpState object passed to the function as an index for the row to copy back to the buffer.

I don't believe it's possible to include an exec call like that in a RabbitWeb page. If you must use RabbitWeb, you might need to make use of Javascript to unpack the data for display.
answered Oct 6, 2015 by TomCollins Veteran of the Digi Community (2,099 points)
...