Author Topic: Bloomsky, another script  (Read 8228 times)

0 Members and 1 Guest are viewing this topic.

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3260
    • Carson Valley Weather
Re: Bloomsky, another script
« Reply #50 on: February 29, 2016, 01:32:32 PM »
Chris,

Did you edit the API Key in ws_bloomsky.php so it matches your unit? Mine works just fine and that is all I did with Wim's two files.
Don - W3DRM - Minden, Nevada --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KRNO2
Davis Wireless VP2, WD 10.37S62,
StartWatch, VirtualVP, VPLive, , Win10 Pro
--- Logitech HD Pro C920 webcam
--- RIPE Atlas Probe - 32849

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #51 on: February 29, 2016, 02:05:52 PM »
Chris,

Did you edit the API Key in ws_bloomsky.php so it matches your unit? Mine works just fine and that is all I did with Wim's two files.

Hi Don,

Thanks for weighing in.  I did replace Wim's API with mine.  Running the Saratoga page calling ws_bloomsky.php or trying to run the standalone V page for mobile devices results in the same error.  Very curious..

Cheers!

de VA3CGZ

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #52 on: February 29, 2016, 02:09:26 PM »
Just tried calling ws_bloomsky directly and voila!  I get the horizontal page... More tinkering and fiddling is required...

Chris


Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #54 on: February 29, 2016, 02:34:57 PM »
Hi Paul,

Where did all your snow go?   :grin:

Still banging my head to get it working over here.  I suppose all you did was edit the API and upload, right?

Chris

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #55 on: February 29, 2016, 02:50:03 PM »
Hi Paul,

Where did all your snow go?   :grin:

Still banging my head to get it working over here.  I suppose all you did was edit the API and upload, right?

Chris
When using your api key to test  => OK, only  there are just 3 days of movies, so there can be two PHP messages, I should have better tested that.

I copied and checked your ws_bloomsky.php, no changes only apikey and two normal changes.
Run it on my Saratoga, all normal (only two movies missing).


So it works without that strange message you have.
Code: [Select]
Failed to connect to 2607:f8b0:400e:c01::79: Network is unreachable
At your site, it gets all data but also an error message. Very strange.

QUESTION 1: What webserver Linux or Windows, PHP version.
QUESTION 2: Are you using a proxy server?

Wim
« Last Edit: February 29, 2016, 02:52:56 PM by wvdkuil »
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 584
  • BismarckWeather.net
    • BismarckWeather.net
Re: Bloomsky, another script
« Reply #56 on: February 29, 2016, 02:58:32 PM »
I'm running the standalone version.  Where do I edit the PHP to add in my own banner information?  What I've been trying hasn't been working.
http://www.BismarckWeather.net
Davis VP2, Cumulus, Blitzortung, Bloomsky, Saratoga Scripts

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3753
    • KomokaWeather
Re: Bloomsky, another script
« Reply #57 on: February 29, 2016, 02:59:06 PM »
Hi Chris,
It was fun to watch the Bloomsky video on Saturday evening while we were out of town to see the snow disappearing through the day.  But not to worry, looks like lots more on the way for us in the next 36 hours...

Re setting it up it is best for Wim to explain, as for me it was the API and some preferences edits such as $bl header and $bl_timezone, etc.

Paul

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #58 on: February 29, 2016, 03:05:29 PM »
Hi Wim,

What are you doing up at this hour?   :grin:

When using your api key to test  => OK, only  there are just 3 days of movies, so there can be two PHP messages, I should have better tested that.

Now, I am getting the same display you are.... horizontal display of the Bloomsky videos, with the 2 PHP errors on top showing only 3 videos available yet

Quote
I copied and checked your ws_bloomsky.php, no changes only apikey and two normal changes.
Run it on my Saratoga, all normal (only two movies missing).

That is pretty much what I did...  changed the API and a couple of other settings that, as you say, are normal.


Quote
So it works without that strange message you have.
Code: [Select]
Failed to connect to 2607:f8b0:400e:c01::79: Network is unreachable
At your site, it gets all data but also an error message. Very strange.

This error has now disappeared. 

Quote
QUESTION 1: What webserver Linux or Windows, PHP version.
QUESTION 2: Are you using a proxy server?

Linux Apache 2.2.31
PHP 5.6
No Proxy Server

I'm wondering if I jumped the gun and the fact that the station has only been online since Friday is the root of the issues I was having?

Cheers!

Chris

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #59 on: February 29, 2016, 03:06:38 PM »
I'm running the standalone version.  Where do I edit the PHP to add in my own banner information?  What I've been trying hasn't been working.
If you are running your own website structure, you probably have a small page with only the standard things like banners menu and so on.  To create new pages for your website. Lets call it newpage.php

The ws_bloomsky.php script should be set to ONLY output the div with all bloomsky information.

Then you use the php include 'ws_bloomsky.php'; in a copy if your newpage.php and run it as another page on your site.

So the principle is: 
1. not add anything to the ws_bloomsky script
 but
2. simply include it on one of your existing pages at the exact location where the div should come.

As English is not my native language, i hope I explained it good enough.

Wim
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #60 on: February 29, 2016, 03:11:11 PM »
@chrisgrainger
It is a pity but that error will come back.
I googled and it seems to go and come back. 
Something with the "storage.googleapis.com" <=> ip6 <=> https

So there is a setting to not use the https, line 45 comment, line 46 uncomment.
Do this when the error re-occurs.

Cross fingers that it will stay away.

Wim
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 584
  • BismarckWeather.net
    • BismarckWeather.net
Re: Bloomsky, another script
« Reply #61 on: February 29, 2016, 03:18:48 PM »
Perfect!  Thanks for all of your work WIM.  I appreciate it.
http://www.BismarckWeather.net
Davis VP2, Cumulus, Blitzortung, Bloomsky, Saratoga Scripts

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #62 on: February 29, 2016, 03:23:34 PM »
@chrisgrainger
It is a pity but that error will come back.
I googled and it seems to go and come back. 
Something with the "storage.googleapis.com" <=> ip6 <=> https

So there is a setting to not use the https, line 45 comment, line 46 uncomment.
Do this when the error re-occurs.

Cross fingers that it will stay away.

Wim

I was just about to let you know it was back.  All I did was change the $bl_header and it came back.  I'll do the HTTPS change and let you know..

Thanks again

Chris

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #63 on: February 29, 2016, 03:35:53 PM »
I think I'll leave it be for a while.  The error is still there...

 [ You are not allowed to view attachments ]

...and now it is affecting the sunshine chart in the sidebar.  The chart is normal across the rest of the site.  Maybe it just needs to rest a bit.  :grin:

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #64 on: February 29, 2016, 04:00:03 PM »
Wim,

Don't know if this helps or hinders, but I did change the HTTPS setting per your suggestion.  Same error running wxbloomsky.php.  If I run ws_bloomsky_v.php, here is what I get....

 [ You are not allowed to view attachments ]

Hope that helps

Chris

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #65 on: February 29, 2016, 04:02:56 PM »
Further...

Trying to log into my dashboard with proper credentials gives this....

 [ You are not allowed to view attachments ]

Looks as if it's a Bloomsky problem maybe?

Chris

Offline Fox_Of_The_Wind

  • Forecaster
  • *****
  • Posts: 374
  • Hi there!
    • http://www.desotowiwx.com
Re: Bloomsky, another script
« Reply #66 on: February 29, 2016, 05:59:56 PM »
love the script. Just a idea for the standalone version. A way to be able to add a link to the main page of the website that is hosting it.. So incase someone comes to it from a search they could find the rest of your weather site.

Just a thought


My BloomSky Station
Blitzortung Station #1328
Anthony

Offline hankster

  • Forecaster
  • *****
  • Posts: 474
    • NFM Weather
Re: Bloomsky, another script
« Reply #67 on: February 29, 2016, 11:44:30 PM »
Looks good in the Saratoga template. Thanks for all your hard work!

http://www.northfortmyersweather.com/weather/wxbloomsky.php

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #68 on: March 01, 2016, 03:37:46 AM »
Further...

Trying to log into my dashboard with proper credentials gives this....
. . . shortened . . .

Looks as if it's a Bloomsky problem maybe?

Chris
Good morning Chris,
I doubt it. All postings on the internet, at least the dozens I read, point to incomplete security communication between your server and some cloud "thing".

I tested a few times this morning: but there were no errors, but that is probably a lucky shot.

What did I do also: I changed the checking of the errors to ignore everything and only stop when there is no correct data. Even when the error occurs, there seems to be sufficient data to display.

I attach those two scripts for Saratoga without the error checking and lets see what data is displayed.
You should ONLY add your API-key and test a few times. When there are no errors for hours, you can further customize.

It should work for you without errors.

===

If this does not work either we should include a correct API-key from another Bloomsky user.
If the problem is gone with the other key =>   the problem is related to your API-key.
If the there are still errors =>  the cause is related to your webserver/webhoster.

Wim
« Last Edit: March 01, 2016, 04:26:12 AM by wvdkuil »
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #69 on: March 01, 2016, 04:48:37 AM »
I think I'll leave it be for a while.  The error is still there...
. . . shortened . .
...and now it is affecting the sunshine chart in the sidebar.  The chart is normal across the rest of the site.  Maybe it just needs to rest a bit.  :grin:
The extra error is always there, but it is not displayed normaly.
But the debug/error reporting setting is on in wxbloomsky.php
That is no problem, especialy as we are trying to catch the errors in our script.
Code: [Select]
ini_set('display_errors', 1);
error_reporting(E_ALL);
To remove the display of all errors set lines 3 and 4 in wxbloomsky.php  to comment by adding a # at the first position.
Code: [Select]
#ini_set('display_errors', 1);
#error_reporting(E_ALL);
Wim
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #70 on: March 01, 2016, 08:27:49 AM »
I attach those two scripts for Saratoga without the error checking and lets see what data is displayed.
You should ONLY add your API-key and test a few times. When there are no errors for hours, you can further customize.

It should work for you without errors.


Hi Wim,

Aside from the errror indicating that there are now only 4 days of video (ie, one PHP error) and the error on the sunshine pie chart, the revised wsbloomsky.php script is working...albeit in imperial units because all I changed was the API key.  Also, ws_bloomsky_v.php works with imperial units. 

I'll let them run a bit today and see if I notice anything else.  I'll change them to metric units later on and see if that causes any issues.  I'll let you know either way.

Thanks very much for working on this for me.  Above and beyond for sure.

Cheers!

Chris

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #71 on: March 01, 2016, 08:29:20 AM »
I think I'll leave it be for a while.  The error is still there...
. . . shortened . .
...and now it is affecting the sunshine chart in the sidebar.  The chart is normal across the rest of the site.  Maybe it just needs to rest a bit.  :grin:
The extra error is always there, but it is not displayed normaly.
But the debug/error reporting setting is on in wxbloomsky.php
That is no problem, especialy as we are trying to catch the errors in our script.
Code: [Select]
ini_set('display_errors', 1);
error_reporting(E_ALL);
To remove the display of all errors set lines 3 and 4 in wxbloomsky.php  to comment by adding a # at the first position.
Code: [Select]
#ini_set('display_errors', 1);
#error_reporting(E_ALL);
Wim

Like I say, I'll let them run a bit with just the API key changed... I'll fire the url to a few friends and see what they see.  Then I'll make other adjustments and see what happens.

Cheers!

Chris

Offline chrisgrainger

  • Senior Member
  • **
  • Posts: 98
    • Top of The Rideau
Re: Bloomsky, another script
« Reply #72 on: March 02, 2016, 09:31:08 AM »
Hi Wim,

Script is running very well here now.  I've changed to display metric units, added my own description and so on.  Had some friends pound it for a while.  No issues.  I turned off error checking on wxbloomsky.php to suppress the error in the sun piechart. 

Thanks very much for all your help.

Cheers!

Chris

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 991
    • Joe's Live Weather
Re: Bloomsky, another script
« Reply #73 on: March 02, 2016, 02:04:42 PM »
Installed the app and getting a bunch of errors and do not know how to correct them.

http://joesweather.info/wxbloomsky.php

Notice: Undefined variable: DropdownMenuText in /home/joes/www/www/header.php on line 84

Notice: Undefined offset: -1 in /home/joes/www/www/ws_bloomsky.php on line 204

Notice: Undefined offset: 4 in /home/joes/www/www/ws_bloomsky.php on line 288

Notice: Undefined offset: 3 in /home/joes/www/www/ws_bloomsky.php on line 289

Notice: Undefined offset: 2 in /home/joes/www/www/ws_bloomsky.php on line 290

Notice: Undefined offset: 1 in /home/joes/www/www/ws_bloomsky.php on line 291

Notice: Undefined offset: 0 in /home/joes/www/www/ws_bloomsky.php on line 292

Anyone know how to correct these?

Thanks,

Joe
Davis Pro 2 Plus Wireless D-FARS - Weather Link Serial 5.9.2
Weather Display Version10.37S Build 6
http://www.joesweather.info
Joe's Bloomsky 

CWOP: EW2334  Blitzortung ID: 791


Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1148
    • Support site Leuven Template and scripts
Re: Bloomsky, another script
« Reply #74 on: March 02, 2016, 02:50:24 PM »
Installed the app and getting a bunch of errors and do not know how to correct them.

http://joesweather.info/wxbloomsky.php

Notice: Undefined variable: DropdownMenuText in /home/joes/www/www/header.php on line 84

Notice: Undefined offset: -1 in /home/joes/www/www/ws_bloomsky.php on line 204

Notice: Undefined offset: 4 in /home/joes/www/www/ws_bloomsky.php on line 288

Notice: Undefined offset: 3 in /home/joes/www/www/ws_bloomsky.php on line 289

Notice: Undefined offset: 2 in /home/joes/www/www/ws_bloomsky.php on line 290

Notice: Undefined offset: 1 in /home/joes/www/www/ws_bloomsky.php on line 291

Notice: Undefined offset: 0 in /home/joes/www/www/ws_bloomsky.php on line 292

Anyone know how to correct these?

Thanks,

Joe
The page has error settingh switched on at the beginning of the script.
Switching it off (setting the lines to comment) will remove the errors.
See this post: http://www.wxforum.net/index.php?topic=28820.msg280917#msg280917

The first one is an error in all pages as it comes from the header.php script which is on every page.

The other lines are form the bloomsky script as it seems that there are no movies yet.
After 5 more days these line would also be gone.

===
Behind your black background there are 3 more errors to take care off. They are also on every page but the black background hides these errors.
That is why there is that much empty space above your page.

Wim
Vantage VUE with a WLIP connected to a Meteobridge used for https://weer.sluispark.be/
Same VUE+WLIP uploads to WL.com(2.0)  used for https://sluispark.be/weather28/
Vantage VP2 with a USB logger/Meteobridge for https://www.weerstation-herent.be/
Envoy with a WLIP uploads to WL.com(1.0) as a backup / test for the same site.