473,769 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16 '05 #1
2 1710
I can see two ways to implement it: make own Java applet/ActiveX control
that periodically downloads the data and displays it to an user, and put it
on the page -- or write a Javascript code. The latter would be much simpler
than you think, you just need to call a function which downloads certain
image and substitutes it with an existing one, and calls itself in 10
seconds. Then on the server side you read xml and write the (very
lightweight B&W GIF) image with the value of your meter every 10 seconds.

What do you want persistent connection with: the XML file or web page?

As far as the trend display goes, you need to store the N most recent values
somewhere -- if N is little it can be in a global server variable (unsure if
ASP supports them) and if it's larger, store to a file or database. Then
when you make your value image you can also write the trend image. If the
image to display would be significant in size you'll need to consider other
options -- but they depend on exact size and type (graphical/textual).
Anyway, I would use an applet.

Ask further if I weren't clear enough.
U¿ytkownik "BCM" <BC*@none.com > napisa³ w wiadomo¶ci
news:41******@n ews.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 16 '05 #2
BCM,

Is your project to write this fully custom or do you entertain off-the-shelf
solutions to this problem? Live meter data on the web can be quite easy
depending on your time, budget, infrastructure, etc.

I'd be happy to make some quick suggestions that you could find useful but I
don't want this to turn into a commercial.

--
Jim

"BCM" <BC*@none.com > wrote in message news:41******@n ews.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 16 '05 #3

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

Similar topics

2
1968
by: Ryan | last post by:
We have an MIS system which has approx 100 reports. Each of these reports can take up to several minutes to run due to the complexity of the queries (hundreds of lines each in most cases). Each report can be run by many users, so in effect we have a slow system. I want to seperate the complex part of the queries into a process that is generated each night. Then the reports will only have to query pre-formatted data with minimal...
0
906
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 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...
3
2683
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD" listing in my address book and (optionally) their name listed on my "news" page of my birtle.com website (listed as "Jane Smith is a Programming GOD") for at least a month. Why not take a moment to read more and possibly boost your ego to all time...
1
1243
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 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...
1
1309
by: Martin_Hurst | last post by:
Judging by what's going on at LinuxWorld Expo, MySql got an interview, but I don't see any Postgresql presence? Did Postgresql have any workshop or booth there? ----- Forwarded by Martin Hurst/CAMP/DC/CNG on 01/22/2004 10:18 AM ----- "LinuxWorld Enterprise Linux To: "linuxgram" <linuxworldnewsletter@mailbox.sys-con.com> Advice" cc:
4
2933
by: bfulford | last post by:
I have a macro that needs to have a progress meter displayed since it is long running. I moved the Macro's instructions to a table and pulled those records into a recordset that is looped through. PROBLEM -- The form, with a progress meter and labels to inform the user as to which step of a series of instructions is being done and the overall progress, seems to lock from repainting after the first docmd.openquery because the form is never...
23
42163
ADezii
by: ADezii | last post by:
Many Access Users fail to realize that it has a built-in Progress Meter that can display the relative completion percentage of various processes. It is fairly limited, but nonetheless, does provide visual feedback indicating the percent completion of a certain task. The Meter itself, when activated, rests on the left hand corner of the Status Bar and is controlled via the SysCmd() Method. It is straightforward, simple to use, and involves only...
2
3204
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears out of the text box, but the meter will stay at its current position until text is entered back into the textbox. Once text is re-entered, the meter will display the results again. I would like everything to reset when the button is pushed, but I...
2
4183
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same warning from OneCare, one is for Adware, the other is for a trojan, I clean both, but almost immediatly, I get the same warning? My Windows Defender is also shut down, not by me as I have no idea how to do this(or to turn it back on), but am still...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.