Author Topic: Clientraw.txt iframed - Help please  (Read 7700 times)

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10088
  • Country: nz
  • Karma: 655
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Clientraw.txt iframed - Help please
« on: April 22, 2016, 10:49:31 PM »
JennyLeez: Tony your clientraw appears to be uploading ok but neither the Map script or data summary is able to read it. Any ideas?
Today at 11:10:08 AM

TonyC: No Jenny. WU and The british Met service can read it ok as the station is showing up on teir maps. I've rebooted both the Server and the WD computer. The only change since Wed is the Server upgraded to a new OS version Wed night.
Today at 12:01:25 PM

TonyC: I seem to recall that we had a problem when I moved from a hosted service to my own server. Using the ip number seemed to fix it.
Today at 12:05:21 PM

TonyC: Would you like me to email you the clientraw.txt file?
Today at 12:12:49 PM

Wolfie33: Hey Guys, just had a quick look, svaed file as text . . its blank. More fiddling, Firefox thinks its in a frame!
Today at 05:58:31 PM

TonyC: clientraw file?
Today at 06:09:47 PM

Wolfie33: Yep
Today at 06:11:19 PM

TonyC: I'm suspicious of my Synology Disstation upgrade from 5.2 to 6.0. They've had 3 updates since it was released last month. The latest which I've just applied is supposed to fix a file date/time problem, but perhaps it hasn't.
Today at 06:17:53 PM

TonyC: *DiskStation*
Today at 06:18:27 PM

TonyC: I don't think I can revert back to 5.2



Living in Wairoa, Northern Hawkes Bay
Website: wairoa.net/weather

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10088
  • Country: nz
  • Karma: 655
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Clientraw.txt iframed - Help please
« Reply #1 on: April 22, 2016, 10:53:14 PM »
JennyLeez: Tony you are sending a different file to WU and Metservice. They are not reading this clientraw.txt

---------------------------------------------------------------------------------
Ok here is the page source. You will see why our scripts can not read it.
I will ask our Guru for his input.
What is creating this page? Weather Display?


Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="">
<meta name="keywords" content="">
<title>Port Robinson, North Canterbury. NZ</title>
</head>
<body style="border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;">
<iframe src="http://xxx.xx.xxx.xxx/clientraw.txt" style="width:100%; height:100%; border:none !important; margin:0px !important; padding:0px !important;"/>
</body>
</html>

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Clientraw.txt iframed - Help please
« Reply #2 on: April 23, 2016, 09:09:34 AM »
Jenny,

If you load the clientraw.txt into firefox using the portrobinson domain name it goes into a frame
If you load it using the ip number instead, it's not in a frame.
#&@%ed if I know why this is so!
Can your map script look up the IP rather than the domain name? It is a fixed ip.
« Last Edit: April 23, 2016, 09:17:30 AM by TonyC »
Davis VP Pro2 wireless with Solar sensor using Weather Display (ver10.37S(Build93) running on a Micro PC Windows 10
Port Robinson, North Canterbury weather station: Port Robinson, NewZealand

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10088
  • Country: nz
  • Karma: 655
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Clientraw.txt iframed - Help please
« Reply #3 on: April 23, 2016, 11:35:21 AM »
Hi Tony,

We are using the IP address. This was how we circled around it when we first added your station onto the map.
That copy and paste above is just the IP number removed.

To quote our Guru; it would appear that the 'holding' server doesn't understand that it should deliver .txt 'raw' and is effectively doing a redirect as .html

In google chrome if you open your clientraw.txt. Right click on the page bringing up the menu. Left click 'View Source' you will see the same as I posted above.

Cheers

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Clientraw.txt iframed - Help please
« Reply #4 on: April 23, 2016, 11:55:34 AM »
I'll Check on the Synology site and post a message to see if anyone else is having problems.
cheers
TC

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Clientraw.txt iframed - Help please
« Reply #5 on: April 23, 2016, 06:40:34 PM »
I'm wondering whether I'm able to do anything either using a .htaccess file in the root directory or make changes to the httpd.conf file. The server is Apache 4.2.
Any of the Gurus know what command lines I should be putting in?
I think it's something to do with the mime type?
I checked and .htaccess is enabled

TC
« Last Edit: April 23, 2016, 07:01:31 PM by TonyC »

Offline Wolfie33

  • Administrator
  • Hero Member
  • *****
  • Posts: 4079
  • Country: nz
  • Karma: 168
  • Gender: Male
    • Opotiki Town Weather
Re: Clientraw.txt iframed - Help please
« Reply #6 on: April 23, 2016, 07:03:59 PM »
Don't know anything about that Tony, but I have just noticed your now active on the Live Map.  :)

a moment later . . . and now your not ??
« Last Edit: April 23, 2016, 07:05:52 PM by Wolfie33 »
Aercus WS2083, Cumulus 1.9.4 on Windoze XP
Sensors on a broomstick in back yard, for now!!
Web:  Opotiki weather

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Clientraw.txt iframed - Help please
« Reply #7 on: April 23, 2016, 07:11:09 PM »
I just created a line in .htaccess
AddType text/plain .txt

Previous to that I'd set the .htaccess to download as a file. I'll have a play.............

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Clientraw.txt iframed - Help please
« Reply #8 on: April 23, 2016, 07:27:46 PM »
I have finally found the solution after some homework on the web.
The answer was to create a .htaccess file and add the single line to it.

AddType application/octet-stream txt

cheers
TC


Share via twitter

xx
Clientraw.txt Format

Started by JennyLeez

25 Replies
21762 Views
Last post May 24, 2012, 08:01:46 AM
by Weather Display
smiley
How to upload the Clientraw.txt File.

Started by JennyLeez

4 Replies
14043 Views
Last post July 27, 2013, 06:10:08 AM
by Weather Display
xx
How to upload Clientraw to another Server.

Started by JennyLeez

0 Replies
6431 Views
Last post December 30, 2013, 11:27:36 AM
by JennyLeez
xx
empty clientraw on primary ftp webserver when second ftp running

Started by choc-a-holic

25 Replies
15138 Views
Last post August 13, 2016, 03:04:50 PM
by choc-a-holic
xx
Android Phone and Tablet Widgets using clientraw.txt from your website

Started by choc-a-holic

3 Replies
5954 Views
Last post September 10, 2012, 08:29:26 AM
by Weather Display