Author Topic: PHP script - Get the latest BloomSky image  (Read 15702 times)

0 Members and 1 Guest are viewing this topic.

Offline vnephologist

  • Member
  • *
  • Posts: 2
    • Weather Underground PWS
Re: PHP script - Get the latest BloomSky image
« Reply #50 on: May 08, 2017, 08:38:47 PM »
Guess I should've taken a look at the script before I posted. It works exactly the way I needed out of the box. In fact, I was able to easily create an Azure web app and point Meteobridge to it for upload to WU every 5 minutes. It seems to work much better for WU playback than Bloomsky native integration with WU (I could never get WU time lapse video to work with the native integration). If anyone else is interested, I could modify the script to accept an API key as a querystring in the URL so anyone could use.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8604
    • Meteotemplate
Re: PHP script - Get the latest BloomSky image
« Reply #51 on: May 08, 2017, 08:40:35 PM »
:)

Offline captainjackfan58

  • Senior Member
  • **
  • Posts: 80
  • Acurite Atlas/w/ Acurite Access
    • BloomSky SKY and Storm PWS Live Info With Cam
Re: PHP script - Get the latest BloomSky image
« Reply #52 on: May 20, 2020, 01:11:15 PM »
Does anyone have this .php script yet trying to get a copy of it bloomskyLatest.php  .zip file
Eye On The Sky Live Hyper-Local Weather Station

Join My Facebook Weather Group
https://www.facebook.com/groups/600853683742496/

Here Is My (WU) Live Weather Station Information!
https://www.wunderground.com/dashboard/pws/KOHNAPOL51

Here Is My Bloomsky Sky And Storm
https://www.wunderground.com/dashboard/pws/KOHNAPOL56

Here Is My Bloomsky Live Cam And Timelapse Please Feel Free To Follow Me.

https://map.bloomsky.com/weather-stations/faBiuZWsq6eqn5ij

This is my Acurite Atlas Live Station!
https://www.myacurite.com/#/dashboard

Offline mkutche

  • Forecaster
  • *****
  • Posts: 954
    • GosportWx.com
Re: PHP script - Get the latest BloomSky image
« Reply #53 on: November 28, 2021, 11:35:46 AM »
hate to bring up an old topic but http://gosportwx.com/bloomSkyLatest.php doesn't work for me.. it use to with godaddy but not with fatcow host. Latest PHP version of new server is 7.3, and that isn't the issue.
« Last Edit: November 28, 2021, 11:50:05 AM by mkutche »
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline davidefa

  • Forecaster
  • *****
  • Posts: 328
Re: PHP script - Get the latest BloomSky image
« Reply #54 on: November 28, 2021, 11:50:14 AM »
'The image contains errors'

To understand what's going wrong you need to look in the error log
Alternatively you may temporarily comment out these 3 lines that should be near the end of the bloomSkyLatest.php script ( doing this the errors should be printed in the browser )

Code: [Select]
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);

Offline mkutche

  • Forecaster
  • *****
  • Posts: 954
    • GosportWx.com
Re: PHP script - Get the latest BloomSky image
« Reply #55 on: November 28, 2021, 11:56:37 AM »
'The image contains errors'

To understand what's going wrong you need to look in the error log
Alternatively you may temporarily comment out these 3 lines that should be near the end of the bloomSkyLatest.php script ( doing this the errors should be printed in the browser )

Code: [Select]
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);

in my FTP folder i dont see an error log
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1919
    • My PWS at Leuven Belgium Europe
Re: PHP script - Get the latest BloomSky image
« Reply #56 on: November 28, 2021, 11:58:06 AM »
hate to bring up an old topic but http://gosportwx.com/bloomSkyLatest.php doesn't work for me.. it use to with godaddy but not with fatcow host. Latest PHP version of new server is 7.3, and that isn't the issue.
Code: [Select]
br />
<b>Warning</b>:  file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in <b>/hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/bloomSkyLatest.php</b> on line <b>22</b><br />
<br />
<b>Warning</b>:  file_get_contents(https://api.bloomsky.com/api/skydata): failed to open stream: no suitable wrapper could be found in <b>/hermes/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/bloomSkyLatest.php</b> on line <b>22</b><br />


Your providers-PHP settings  do not allow loading outside files using the PHP function file_get_contents()
==> " wrapper is disabled in the server configuration"
Therefor the script can not load the image from Bloomsky
==> "file_get_contents(https://api.bloomsky.com/api/skydata): failed"

Ask your provider support person which setting in cPanel or similar you have to change to use that function.
Probably other scripts will also fail if this function is blocked.

Wim
« Last Edit: November 28, 2021, 12:03:41 PM by wvdkuil »
Please remember, "If it is a hobby for both of us, it should be fun for both of us also"

If I helped you building and enhancing your website, feel free to donate at https://paypal.me/pwsdashboard.

Offline mkutche

  • Forecaster
  • *****
  • Posts: 954
    • GosportWx.com
Re: PHP script - Get the latest BloomSky image
« Reply #57 on: November 28, 2021, 03:57:30 PM »
got it working. Thanks.
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

 

anything