Author Topic: New BloomSky script - non-PHP  (Read 1606 times)

0 Members and 1 Guest are viewing this topic.

Offline Kasper

  • Member
  • *
  • Posts: 7
New BloomSky script - non-PHP
« on: March 30, 2018, 05:07:31 PM »
Hi I just thought I'd share this website script I have pieced together. It is relatively simple, but also a nice intuitive design. Just insert your own BloomSky API, look after XXXXXXXXXXXXXXXXXXXXXXXXX and replace. Give me your opinion, it may well be that I have overlooked something. You are welcome to modify the script :-)

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 360
    • http://www.TylerTexasWeather.Com
Re: New BloomSky script - non-PHP
« Reply #1 on: March 30, 2018, 07:41:51 PM »
I ran a quick test. Your script is showing both UV and Lux as undefined whereas the script I'm currently using shows values for these. Also, why does your script show places for Wind and  Wind Gust? My Bloomsky is not capable of providing that data. Next, the rain and rain rate show as "undefined". It's not currently raining, so these should be '0'. And finally, you need to provide a means to view Imperial units (non-metric).

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #2 on: April 01, 2018, 07:36:35 PM »
Hi SteveFitz1

Thanks for your constructive response

I have now corrected the script to a new v2, so that you can customize the language and I have addressed the UV/LUX/Rain/Wind compatibility issues. The new included 'settings.js' file must be placed on the same site/folder as the webpage. You will then edit your API and customize your language in this file. (just open/save the file with notepad)

Happy weather :-)

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 360
    • http://www.TylerTexasWeather.Com
Re: New BloomSky script - non-PHP
« Reply #3 on: April 02, 2018, 11:22:30 AM »
Kasper,

Looks like you took care of the issues. It seems to be working much better now.

Thanks.

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #4 on: April 11, 2018, 02:08:53 PM »
Seems that bloomsky changed their website to a non secure protocol for a few days ago. So I've made a new version that uses a non secure connection. Download the attached BloomSky_WeatherSite_En_v2_NON-SECURE.zip file and change your settings in the 'settings.js' again.
« Last Edit: April 11, 2018, 02:11:10 PM by Kasper »

Offline thewxobserver

  • Chester, Virginia
  • Senior Member
  • **
  • Posts: 51
  • "Covering the weather one story at a time"
    • RVA Weather Network
Re: New BloomSky script - non-PHP
« Reply #5 on: February 21, 2019, 11:25:15 AM »
First off thanks for creating this script it is awesome and love the page layout. My problem is that I am using an iframe to include it inside of a wordpress template and have tried everything to make it fit. Is there a way to make it vertical instead of horizontal? You can see the page at: https://www.rvawx.net/local-weather/bloomsky-camera/


Acurite Station / CWOP D0015 / WU KVACHEST36
Twitter @thewxobserver
RVA Weather Network

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #6 on: February 26, 2019, 03:38:16 AM »
Hi thewxobserver

New v3 attached

I have now made a v3 which corrects some minor bugs, this new version also includes a vertical and horizontal web site for your choice.
(It could by the way easily be done by rearranging HTML table)

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4315
    • KomokaWeather
Re: New BloomSky script - non-PHP
« Reply #7 on: February 26, 2019, 10:25:02 AM »
Hi, and thank you for sharing the script...  http://www.komokaweather.com/bloomsky/Kasper/BloomSky_WeatherSite_En_v3_Vertical.html

I have 2 Bloomskys -
 https://map.bloomsky.com/weather-stations/gqBxp6apnJSnm5m3 which is the south east image in the script,  and   

https://map.bloomsky.com/weather-stations/gqBxp6apnJSnoJim which is a south view.

but only one API.

Could I change the script to use the south view Bloomsky image, or is there another way?

Enjoy,
Paul
Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger/CumulusMX
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/  
www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969


Offline thewxobserver

  • Chester, Virginia
  • Senior Member
  • **
  • Posts: 51
  • "Covering the weather one story at a time"
    • RVA Weather Network
Re: New BloomSky script - non-PHP
« Reply #8 on: February 26, 2019, 09:59:49 PM »
Hi thewxobserver

New v3 attached

I have now made a v3 which corrects some minor bugs, this new version also includes a vertical and horizontal web site for your choice.
(It could by the way easily be done by rearranging HTML table)

Thanks for the updates they will work great. I don't know what the deal is but all I did was copy the new files over and the original script will load:
https://rvawx.net/bloomsky/BloomSky_WeatherSite_En_v2.html but the new ones will not load anything: https://rvawx.net/bloomsky/BloomSky_WeatherSite_En_v3_Vertical.html


Acurite Station / CWOP D0015 / WU KVACHEST36
Twitter @thewxobserver
RVA Weather Network

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #9 on: February 27, 2019, 04:45:24 AM »
Hi You probably just need to re-enter your API key in the settings.js file again.

Offline thewxobserver

  • Chester, Virginia
  • Senior Member
  • **
  • Posts: 51
  • "Covering the weather one story at a time"
    • RVA Weather Network
Re: New BloomSky script - non-PHP
« Reply #10 on: February 27, 2019, 04:52:50 AM »
Yep already did that. Settings.js is the file running the old one and the new one and the old one works but not the new one.


Acurite Station / CWOP D0015 / WU KVACHEST36
Twitter @thewxobserver
RVA Weather Network

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #11 on: February 27, 2019, 05:34:48 AM »
Now I do not know how you host your web pages, but it seems that the new website does not have the rights to read in the settings file. I just checked the website with your API and it works fine. How does it look if you download v3 to your desktop and just open website directly on your computer?
« Last Edit: February 27, 2019, 05:40:04 AM by Kasper »

Offline thewxobserver

  • Chester, Virginia
  • Senior Member
  • **
  • Posts: 51
  • "Covering the weather one story at a time"
    • RVA Weather Network
Re: New BloomSky script - non-PHP
« Reply #12 on: February 27, 2019, 05:55:25 AM »
yep when I pull it up from the desktop it works, so I will have to play around with the permissions when I get home from work. Thanks for the help and the awesome script


Acurite Station / CWOP D0015 / WU KVACHEST36
Twitter @thewxobserver
RVA Weather Network

Offline Kasper

  • Member
  • *
  • Posts: 7
Re: New BloomSky script - non-PHP
« Reply #13 on: February 27, 2019, 05:58:42 AM »
Hi, and thank you for sharing the script...  http://www.komokaweather.com/bloomsky/Kasper/BloomSky_WeatherSite_En_v3_Vertical.html

I have 2 Bloomskys -
 https://map.bloomsky.com/weather-stations/gqBxp6apnJSnm5m3 which is the south east image in the script,  and   

https://map.bloomsky.com/weather-stations/gqBxp6apnJSnoJim which is a south view.

but only one API.

Could I change the script to use the south view Bloomsky image, or is there another way?

Enjoy,
Paul

Hi PaulMy

It is not possible to use the same API, you need to create a 2nd bloomsky account and tie your second bloomsky device to this account to get another API then it will work. But will simultaneously give you the hassle of having to log on two account if you use a mobile app.