Author Topic: Weather Template and scripts from Leuven/Belgium/Europe  (Read 195514 times)

0 Members and 1 Guest are viewing this topic.

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #650 on: May 20, 2016, 08:33:27 AM »
Thanks Wim...

I did some trial and error (as usual :-P )

And got the code working as well as my Live viewers on GA dashboard.I did try the footer but was ending in footer /bottom banner not showing up hehehe.

so finally left it in the header1  ;)
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #651 on: May 22, 2016, 02:39:59 PM »
Hello again Wim...Ive just realize that when looking at the template from a mobile phone,yn yowindow dashboard its showing for Brussels :shock:

ive searched on the wiki here http://leuven-template.eu/dokuwiki28/doku.php?id=en:yowindow&s[]=yowindow

but not what i was searching for...I know that flash doesnt work on mobile but,ive re searched in the user settings as well to re verify my settings.

where should i look ?

Thanks
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #652 on: May 22, 2016, 03:41:06 PM »
Hello again Wim...Ive just realize that when looking at the template from a mobile phone,yn yowindow dashboard its showing for Brussels :shock:

ive searched on the wiki here http://leuven-template.eu/dokuwiki28/doku.php?id=en:yowindow&s[]=yowindow

but not what i was searching for...I know that flash doesnt work on mobile but,ive re searched in the user settings as well to re verify my settings.

where should i look ?

Thanks
i can not check the location-id as the yowindow page gives an error.
The id is in line 40 in wsDashYowindow.php
Code: [Select]
$yowindow_place_ID      = '6125653'; Better use the latitude/longitude setting in the next line which is now
Code: [Select]
$use_yow_lat_lon        = false;   and set it to true
Code: [Select]
$use_yow_lat_lon        = true;   That way we can see what the real temps are at your place.
Wim

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #653 on: May 22, 2016, 05:07:14 PM »
Does the YoWindow plugin work at all on mobiles? I thought it uses flash, which is not supported by mobile OS (and will not be by desktop browsers soon...)

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #654 on: May 22, 2016, 05:32:18 PM »
The widget is replaced with yr.no meteogram ;)

Its working now :)
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #655 on: May 22, 2016, 05:59:51 PM »
The widget is replaced with yr.no meteogram ;)

Its working now :)

Good choice ;)

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #656 on: May 23, 2016, 03:07:21 AM »
The widget is replaced with yr.no meteogram ;)

Its working now :)
Sorry, I misunderstood. I thought you meant that yowindow was displaying data for Brussels.
It was the yr.no meteogram back-up you talking about.

@Jáchym @all
When visiting a Leuven-Template site with a smart-phone => the small phone pages are displayed. No room for large gadgets.
When visiting a Leuven-Template site with a tablet or a laptop/desktop=> the normal site is shown.

But as not all devices support FLASH anymore so all flash scripts are loaded on top of a backup-background with similar data.
Behind the YoWindow there is another forecast => yr.no meteogram as a .png. If the device  / visitor does not want or does not have Flash the Meteogram replaces the yowindow gadget.
Same for the realtime WD-Live if it is selected for the start-page. No flash means that a (sub)set of the steelseries gauges is displayed as an alternative. Same for WU flash gadget or Meteoware live. Those two are also realtime parts using Flash so they are replaced with gauges also.
If someone designs its startpage with multiple realtime parts, only one of them is replaced with the gauges, others are replaced with a one-line message.

@Jáchym => Flash discussions
Chrome:
As far as I understand Chrome is still supporting its own version of Flash, it is only showing a one-time warning that the visitor must decide to use Flash.

Develop products for a profit:
Without the  possibility to get a payment no more "flashy" products will be developed.  With HTML-5/Javascript there is no way to sell a product as all sources/scripts are un-compiled. Using a 'call-home' script to check if the product is licensed is  a worse solution when the site who checks the validity is hacked or down.

Example:
WD-Live is a very fine, very adaptable product. Most sites only use a very small subset of the possibilities. 
No way this same level of professionalism can be developed for free.
Neither can it be maintained when all scripts are open to modification by the user.

When I started  programming in 1969 I was using COBOL as one of the  languages. Although multiple IT-watchers always predicted the end of the COBOL-era for at least 30 years, it is still used and maintained. So lets see if one can weed out the current bad version of Flash or that we have to live for another 10+ years with it. And I simply do not understand why a large company as Google keeps hammering out Flash as they could develop a safe to use version without even the smallest dent in their profits.

Wim
« Last Edit: May 23, 2016, 03:12:12 AM by wvdkuil »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #657 on: May 23, 2016, 05:41:09 AM »
Hi Wim,

Flash is a problem, we all know it. It used to be great for what it could do, but it was always problematic with regards to security and demands on the PC. HTML5 and CSS3 can do basically all that Flash can and even more.

But there is one problem which is what you mentioned, JS being a browser language means you will always see the code and be able to edit it, copy it etc. There is obviously no way around it. With PHP as a server language, this is not a problem. But then again, look at many scripts like Highcharts for example. They also sell it even though you can see every single line of the code.

Chrome and FF if I understood it correctly, will support it but only until the end of the year. Then, it will only be possible if the user specifically goes to the browser settings and enables it there. Now it shows you a prompt, but by default it is enabled, once they disable it by default, Im sure many users dont even know about the possibility of "turning something on, somewhere in the settings" and also, I think it is also a matter of time before it is completely cut off. So developing anything in Flash is a dead end. Everyone knows this, just look at the recently discontinued https://weatherspark.com/. It used to be a great site...  Read the statement at the bottom of the page...

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #658 on: June 03, 2016, 10:31:05 AM »
Hello Wim...i went to your support page for leuven and,on the contact form i got surprised to see the captcha with nearby city names...Is this normal or...

someone / something is infected

St prime St Felicien are 2 citys just north from me so...and i have a doubt :roll:

cheers
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #659 on: June 03, 2016, 10:34:38 AM »
Hello Wim...i went to your support page for leuven and,on the contact form i got surprised to see the captcha with nearby city names...Is this normal or...

someone / something is infected

St prime St Felicien are 2 citys just north from me so...and i have a doubt :roll:

cheers
You should ask google. as this is strictly run by google. You and me have no influence on what they want to show.

Sometimes it is text from books they are digitizing, sometimes house-numbers and street-names from google streetview.

Wim


Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #660 on: June 03, 2016, 10:42:32 AM »
Ahh thanks....its just the first time i see nearby things in captcha so... if its from google then...everything is possible

thanks ;)
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #661 on: June 03, 2016, 10:42:42 AM »
No it is not a coincidence Carl... Google knows terrifyingly lot of things about you.... for example when I tried it on myself using Google Analytics, not only did i get all the info about my OS, browser, language setting, but of course also location and based on other things such as cookies etc. it estimated I am a 25-35 old male interested in IT and science.... (just to add to that, I am a male, I am 29 and my hobbies are IT and weather and I majored in biology...)

Ď guess you would prefer a captcha like this then :D

Offline zejan

  • Member
  • *
  • Posts: 2
    • Sřllestedvejret
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #662 on: June 08, 2016, 05:52:51 AM »
Hello there.

On my old weather webside, I have weather videoes (http://zejan.dk/wxkalender_vejrvideoer.php) . Now I'm trying to move the videos over to Leuven-Template (http://zejan.dk/weather28/index.php?p=403&lang=da#data-area), it's almost working, but the  Leuven-Template can't read the calender from the script. It seems like I'm missing a part, and I was wondering if you could help me out finding it?

Ps. the wskalender attachment is the new, and the wxkalender attachement is the old one.

Best regards Jan

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #663 on: June 08, 2016, 07:53:09 AM »
Hello there.

On my old weather webside, I have weather videoes (http://zejan.dk/wxkalender_vejrvideoer.php) . Now I'm trying to move the videos over to Leuven-Template (http://zejan.dk/weather28/index.php?p=403&lang=da#data-area), it's almost working, but the  Leuven-Template can't read the calender from the script. It seems like I'm missing a part, and I was wondering if you could help me out finding it?

Ps. the wskalender attachment is the new, and the wxkalender attachement is the old one.

Best regards Jan
You are using the difficult approach.
Multiple errors because of a mix of relative and absolute adressing.
You can see those errors when using Chrome as a browser => right click => choose inspect => click console
Example of a 404 error:
http://zejan.dk/weather28/public_html/scripts/mediaplayer-5.10/jwplayer.js

which should be
http://zejan.dk/scripts/mediaplayer-5.10/jwplayer.js
Code: [Select]
2http://zejan.dk/weather28/public_html/scripts/mediaplayer-5.10/jwplayer.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_inset-hard_100_fcfdfd_1x100.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_glass_85_dfeffc_1x400.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-icons_d8e7f3_256x240.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-icons_217bc0_256x240.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://zejan.dk/scripts/css/scripts/css/ui/ui-bg_glass_75_d0e5f5_1x400.png Failed to load resource: the server responded with a status of 404 (Not Found)

Lets take the easy approach:

1. you have a complex working script running in a Saratoga envirionment.
2. Then you should make a copy ( sakalendar_vejrvideoer.php )   and create a stand-alone version by removing all includes for Saratoga parts.
3. run this script until it is working perfect
4. Make a copy of the _my_scripts/my_newPage.php (wxkalender_vejrvideoer.php) and use the iframe part to run sakalendar_vejrvideoer.php

This way you know for sure that it is always working and is not influenced by any standard script or setting or addressing issue which exist between different templates such as Saratoga and Leuven.

Hope this is clear, otherwise use the support system. You can also sent me a userid/password so I can make the script for you.
 
Wim

Offline zejan

  • Member
  • *
  • Posts: 2
    • Sřllestedvejret
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #664 on: June 08, 2016, 09:40:53 AM »
HI Wim

Thanks for the fast reply, I'll message you in a personal message with the userID and password.

/Jan

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #665 on: June 10, 2016, 11:34:31 AM »
Hi Wim...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
« Last Edit: June 10, 2016, 11:48:27 AM by virusdunil »
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #666 on: June 10, 2016, 11:44:14 AM »
This looks like they set a parameter in the header to block loading this as an iframe.

Console:

Refused to display 'https://www.wunderground.com/fullscreenweather' in a frame because it set 'X-Frame-Options' to 'SameOrigin'.

This means it can only be loaded from within wunderground.com server. Many pages do that to prevent people iframing their sites :D


Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #667 on: June 10, 2016, 11:47:55 AM »
Hi Win...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
They do a redirect to a "general" page without all the nice forecast info
This was the old link:
https://www.wunderground.com/cgi-bin/findweather/getForecast?brand=wxmap&query=50.89518,4.69741&lat=50.89518&lon=4.69741&zoom=11&type=roadmap&units=metric&rad=0&sat=0&svr=0&cams=0&tor=0&wxsn=1&wxsn.mode=temp&wxsn.opa=50&wxsn.bcdgtemp=0&wxsn.rf=0

The new page they redirect you to is  https://www.wunderground.com/fullscreenweather  and that one refuses to be in an iFrame, what I understand as it is far to general compared to the old page.

So another "nice" station page is dead.

I will try to find a part of the old WU site which is still working.

Wim

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #668 on: June 10, 2016, 11:49:30 AM »
Thanks WIM ;)
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #669 on: June 10, 2016, 12:26:30 PM »
Hi Win...looks like WU played in their maps again...

cant acces (blanck page) for the WU stations Map
Yours...
http://weather-template.nl/weather28/index.php?p=03&lang=en&wp=WL

and mine...
http://meteolacstjean.com/weather28/index.php?p=03&lang=fr

cheers
They do a redirect to a "general" page without all the nice forecast info
This was the old link:
https://www.wunderground.com/cgi-bin/findweather/getForecast?brand=wxmap&query=50.89518,4.69741&lat=50.89518&lon=4.69741&zoom=11&type=roadmap&units=metric&rad=0&sat=0&svr=0&cams=0&tor=0&wxsn=1&wxsn.mode=temp&wxsn.opa=50&wxsn.bcdgtemp=0&wxsn.rf=0

The new page they redirect you to is  https://www.wunderground.com/fullscreenweather  and that one refuses to be in an iFrame, what I understand as it is far to general compared to the old page.

So another "nice" station page is dead.

I will try to find a part of the old WU site which is still working.

Wim

True, but Im just wondering if it is worth looking Wim, even if you find some old link, I think they are slowly shutting down all the old links (which makes sense), so it would again be just a temporary solution.

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #670 on: June 10, 2016, 12:40:18 PM »
...Ill try to be polite here...


My message is adressed to WIM...especially for a LEUVEN TEMPLATE problem....

I think HE knows what to do and HE will come up with the best solution for HIS TEMPLATE

if HE says that there is NO solutions but to remove the link well,ill do what HE says for HIS template.
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #671 on: June 10, 2016, 12:41:53 PM »
I dont get what your problem is Carl, I have nothing against him trying to find some older version of WU, the only reason I mentioned it was because just recently some links to the old version of WU stopped working, so it is likely they will gradually completely remove the old site.

So calm down.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #672 on: June 10, 2016, 12:43:43 PM »
Also, if Wim comments on something or suggest something in the Meteotemplate thread, it would only be welcomed and I see nothing wrong with me pointing out something here either.

Offline virusdunil

  • Forecaster
  • *****
  • Posts: 388
    • Station Meteo Hebertville
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #673 on: June 10, 2016, 12:51:59 PM »
Im Calm but...The thing is ...my message is specificly adressed to WIM.......not you or fred or the pope
Cabled Vantage pro2 + Solar / Stevensen screen
Weather Display latest version + Boltek PCI-NexStorm-StormVue NGX / NSDisplay


http://www.meteolacstjean.com/weather28/index.php
Meteotemplate : http://www.meteolacstjean.com/hebert/index.php

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Weather Template and scripts from Leuven/Belgium/Europe
« Reply #674 on: June 10, 2016, 12:55:02 PM »
OK, sorry, I didnt know this is how you think this forum works.

In that case let me just please ask you if you ever see someone else other than me commenting on something with regards to Meteotemplate in the Meteotemplate thread, let them be, I appreciate it

 

anything