Author Topic: space-weather.php  (Read 21196 times)

0 Members and 1 Guest are viewing this topic.

Offline hcorrin

  • Senior Contributor
  • ****
  • Posts: 197
    • Ballaugh Weather
Re: space-weather.php
« Reply #100 on: September 06, 2024, 11:31:34 AM »
So what happens if you change true to false in that line

Offline Vasco

  • Forecaster
  • *****
  • Posts: 687
    • PWS
Re: space-weather.php
« Reply #101 on: September 06, 2024, 11:42:20 AM »
When I commented it out altogether I lost the cURL header but also the first 4 characters ":Pro" of the text, so the title started "duct" instead of "Product"  :-)

I think I could have overcome that, but mine host has suggested other alterations to the script and it seems to be OK now  :grin:

Current script looks for a line break between cURL header and data, but in my case (using proxy) I seem to have two headers so I got the second header info reproduced. Change wxspace.php (around line 535 in Notepad++):
Code: [Select]
  $i = strpos($data,"\r\n\r\n");
  $headers = substr($data,0,$i);
  $content = substr($data,$i+4);
to
Code: [Select]
  $i = $cinfo['header_size'];
  $headers = substr($data,0,$i);
  $content = substr($data,$i);
« Last Edit: September 07, 2024, 03:28:37 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 882
  • #conligwx
    • conligwx.org
Re: space-weather.php
« Reply #102 on: December 12, 2024, 05:09:16 PM »
Anyone getting Error 018 on two of the images?

 [ You are not allowed to view attachments ]

Error 018: fetching timestamp failed for URL (remote_image) 404 not found?


K6GKM?


I spoke too soon.

 [ You are not allowed to view attachments ]


Seems its at least updated with an explaination.
« Last Edit: December 12, 2024, 05:13:19 PM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX • ADSB.im • Pi 4 • AirSpy mini • Uputronics Filtered 1090 Preamp


Online jaltman

  • Contributor
  • ***
  • Posts: 114
    • Stanley Rapids Weather
Re: space-weather.php
« Reply #103 on: December 12, 2024, 06:29:17 PM »
The place that processes and distributes the images had a broken water pipe and a flood and is off-line for a time while they make repairs.  They'll be back, they say.

Regards,

Jim