Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

Putting web site text into a live window

Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Putting web site text into a live window

Thread Tools
 
Search this Thread
 
Old 13th Sep 2002, 16:05
  #1 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: somewhere near you
Posts: 88
Likes: 0
Received 0 Likes on 0 Posts
Putting web site text into a live window

What I would like to do is take a number ( the wind strength) off a local website, and put it in an updating window on my PC desktop.

The network has a weather system, that updates about every ten seconds, producing a line like this

Wind North-Easterly, 9 km/hr, temperature 23.2, Pressure 1026mb and falling very slowly

I would like to take the 9, from the 9 km/hr, every ten seconds and display it on my desktop somehow. The line above can be accessed as a website, or saved as a text file to my network directory. But for each of these, I either have to referesh the page continually, or for the file version, go to telnet, and type fetch bcast (bcast is the name of the file)

So is there some way to get a continually updating one?

Thanks for any help

Rob

Last edited by rob_frost; 13th Sep 2002 at 16:11.
rob_frost is offline  
Old 13th Sep 2002, 16:54
  #2 (permalink)  
 
Join Date: Nov 2000
Location: St Albans (Herts UK)
Posts: 74
Likes: 0
Received 0 Likes on 0 Posts
Not very straight forward this. Any application needs to connect to the URL and then be capable of parsing(tokenizing) the HTML coming back in the HTTP response in order to extract the information you are after. It then has to display the desired information in some format.

As a Java man this is not at all difficult to do .
Perhaps some VB/C#ers would like to offer an alternative solution.
???pax is offline  
Old 13th Sep 2002, 22:51
  #3 (permalink)  
Nightrider
Guest
 
Posts: n/a
Rob...also I can understand the idea of your wishes...but you are not really asking here for help to hack a website, this is what you are intending to do, aren't you????
 
Old 14th Sep 2002, 13:22
  #4 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: somewhere near you
Posts: 88
Likes: 0
Received 0 Likes on 0 Posts
No I'm not. I had no idea you would even go about it like this.

The web page I want to copy a bit off is here

I want to know the local wind so I can see when it is worth flying my kite. Looking out of the window is not very helpful because the wind varies quite a bit from where I would look to where I could fly a kite. A window showing the updated wind would be useful.

Does that satisfy you? If I wanted to know how to hack a website, I would never do it through my real name so obviously... I could get traced very very quickly..
rob_frost is offline  
Old 14th Sep 2002, 16:30
  #5 (permalink)  
Nightrider
Guest
 
Posts: n/a
Rob...don't be upset...according to UK law, and there are others who may confirm that this is not only the law here, "hijacking" data from another website is already hacking...

You may, however, ask the school to allow you to access their wind-data...they may tell you how to address the location of these data on their database und you can than easily integrate these values on your website.
 
Old 14th Sep 2002, 16:40
  #6 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: somewhere near you
Posts: 88
Likes: 0
Received 0 Likes on 0 Posts
Its ok I have asked about it, and they have no problems.

Is there any way i can get get a browser to refresh every 10 seconds? This seems simpler ( but less effective) than putting the original file into a new website of my own.
Or is it only possible to chose the refresh rate if you are the page editor, not the viewer?
rob_frost is offline  
Old 15th Sep 2002, 00:23
  #7 (permalink)  
 
Join Date: Mar 2001
Location: Florida, USA
Posts: 632
Likes: 0
Received 0 Likes on 0 Posts
Makes me think back to my earlier days of "Basic"

10 CLR
20 PRINT "WIND SPEED = 10"
30 GOTO 10

Used to tap similar into my Sinclair ZX81 computer - had an on board memory of 1Kb - fantastic stuff (who on Earth could ever write a programme big enough to use a full kilobyte??)
GoneWest is offline  
Old 15th Sep 2002, 01:41
  #8 (permalink)  
Nightrider
Guest
 
Posts: n/a
I had a look at the site. The way it is written, the website refreshes at a given rate set with a METATAG. This you cannot change.
However, everytime you hit the refresh button on your browser you will see the latest read out from their unit, it appears to be a constant dataflow as you can refresh in less than 2 seconds and you have a change in the reading.
Due to this I doubt that they store the data in a database as this would create a huge one within a very short time.

If they are so friendly to allow you to copy their data to your website, why not approach them again and ask the one who programmed the site...he can give you the exact code for that particular element you want, also I doubt he will allow you access "behind" the doors as this will open their server and make it vulnerable to attacks...
Perhaps you see now why I tried to warn you about this idea.
 
Old 16th Sep 2002, 20:45
  #9 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: somewhere near you
Posts: 88
Likes: 0
Received 0 Likes on 0 Posts
Yeah, I see what you mean, but I'm pretty sure they wouldn't give me anything I could do any damage with

The annoying thing is it can be done very easily on a BBC, but on a wonderful super fast PC, you need to do all sorts of things I have no idea about.

The refresh button will have to do i think.
rob_frost is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.