473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Live Meter Data on the Web - Advice Please

BCM
I've been asked to display some meter data on the web and I need preliminary
advice.

We have several hundred meters on site, with a system that writes out xml
files at 10 second intervals containing their data. (These files are
overwritten every 10 seconds, not appended to.)

First, I need to display two numeric pieces of this data just as numbers in
a web page. Naturally that's easy enough: where I'm stumped is REFRESHING
that data when it's updated every 10 seconds. Of course I don't want to
refresh the whole page, but only update a particular number when its
associated xml file is updated.

I've seen this done client side with javascript, but it was pretty cludgey.
Can ASP.NET help me here with a kind of persistant connection to these xml
files? (I thought the DataSet did such business out of the box, but it
doesn't as far as I can tell.)

Second, I need to use this data later for graphic trend displays. In other
words, I need to show in graph or chart form how each of these meters is
performing over time. Since the xml files are overwritten, I obviously have
to persist each piece of data somehow. I can think of any number of ways to
do this, but none of them seem too elegant. Any advice anyone might have
will help me think this through.
Nov 18 '05 #1
1 1224
well you can only refresh the whole page... but what you could do is put a
server side cache on parts that are not subject to frequent change.
for the part that displays your meter reading make sure its not cached.

unfortunately asp.net does not have a way to maintain a connection. if you
want sort of over the wire without refresh.. then you will have to go in for
a winforms control... or something like an applet.

for graphs you will need historical data. instead of writing reading to xml
file and over writing them each time.. why dont you insert them in the
database with a current timestamp. that way you can have your graph data as
well (you will need historical data for graph)

on graph components
http://www.google.co.uk/search?sourc...sp%2Enet+chart

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"BCM" <BC*@none.com> wrote in message news:41********@news.unc.edu...
I've been asked to display some meter data on the web and I need preliminary advice.

We have several hundred meters on site, with a system that writes out xml
files at 10 second intervals containing their data. (These files are
overwritten every 10 seconds, not appended to.)

First, I need to display two numeric pieces of this data just as numbers in a web page. Naturally that's easy enough: where I'm stumped is REFRESHING
that data when it's updated every 10 seconds. Of course I don't want to
refresh the whole page, but only update a particular number when its
associated xml file is updated.

I've seen this done client side with javascript, but it was pretty cludgey. Can ASP.NET help me here with a kind of persistant connection to these xml
files? (I thought the DataSet did such business out of the box, but it
doesn't as far as I can tell.)

Second, I need to use this data later for graphic trend displays. In other
words, I need to show in graph or chart form how each of these meters is
performing over time. Since the xml files are overwritten, I obviously have to persist each piece of data somehow. I can think of any number of ways to do this, but none of them seem too elegant. Any advice anyone might have
will help me think this through.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: BCM | last post by:
I've been asked to display some meter data on the web and I need preliminary advice. We have several hundred meters on site, with a system that writes out xml files at 10 second intervals...
2
by: BCM | last post by:
I've been asked to display some meter data on the web and I need preliminary advice. We have several hundred meters on site, with a system that writes out xml files at 10 second intervals...
0
by: BCM | last post by:
I've been asked to display some meter data on the web and I need preliminary advice. We have several hundred meters on site, with a system that writes out xml files at 10 second intervals...
5
by: sandeepphagwara | last post by:
how to integrate bse/nse live data on your web site thanks
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.