cloudy cloudy

Author Topic: JavaScript WDL version 1.0.0 alpha.  (Read 20674 times)

0 Members and 1 Guest are viewing this topic.

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 58.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #360 on: March 01, 2018, 03:50:43 AM »
Hey,

The issue seems to be caused from something which was appended to the css link in one of the older HTML pages. (I will note that the issue is not present in the most up to date version available from the downloads page).
To solve the issue, remove the v?=1.0.1 from the stylesheet link in your HTML file. It should now look like this:

Code: [Select]
<!-- Include initially needed CSS -->
<link rel="stylesheet" type="text/css" href="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/css/stylesheet01.css"> <!--Includes the project's css sheet -->

I am sorry about not getting back to you all sooner, for some reason I didn't get / missed the notifications from this thread.

Oh, and as to why this has only suddenly taken effect..? Your guess is as good as mine! 8O

In regards to the HTML document being a mess... Yep, it is :lol:
It is set out like it is so that you guys don't need to worry about changing things every time I update, which otherwise you would have to.

If you don't like the idea about the scripts being hosted from github, rather than your local server, what you can do is download the UpperContent, InnerContent, js_bundles, and css files/folders, host those locally, and change the links in your HTML file to match their new locations. It might sound like a bit of a handful, but it is actually quite straightforward to do.
You will need to re-download them when there is an update, though, and set it up again.

Hopefully this helps,
-Yerren

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #361 on: March 01, 2018, 06:15:30 AM »
Thanks Yerren that was a simple fix, I just removed the part you mentioned above and all is good to go.

Bruce

Offline broadstairs

  • Stuart
  • Posts: 7,010
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 56.0.4
    • Broadstairs
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #362 on: March 01, 2018, 08:15:18 AM »
Yerren good to know you found something, however your HTML is not well structured and will not validate for W3C standards which it should in order to eliminate possible issues, albeit not the problem here but I think it should be made W3C compliant since it is being used by many here.

Another issue is that having all the code elsewhere and not on the server (domain) the HTML and config is on also leads to this kind of issue and is the reason I will not have it live on my site. The code is now good and reliable so I think it is about time you create a package which allows all the code to be downloaded and placed on the users server, this way when they have it working it will not get messed up by changes on server where the code is located.

Stuart

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 58.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #363 on: March 01, 2018, 08:59:31 AM »
Yerren good to know you found something, however your HTML is not well structured and will not validate for W3C standards which it should in order to eliminate possible issues, albeit not the problem here but I think it should be made W3C compliant since it is being used by many here.

Another issue is that having all the code elsewhere and not on the server (domain) the HTML and config is on also leads to this kind of issue and is the reason I will not have it live on my site. The code is now good and reliable so I think it is about time you create a package which allows all the code to be downloaded and placed on the users server, this way when they have it working it will not get messed up by changes on server where the code is located.

Stuart

As I said, you can definitely download all the files and host them yourself right now if you wish.
The HTML cannot easily be made to W3C standards (due to some very finicky details) but I will look into it more and see if I can change things up a bit.
For now just bear in mind that this is very much not an HTML website (which is W3C deals with) but rather an application which is run from 99% JavaScript.

However, I can see the appeal to create one easy to setup package that people can download and host locally (and which is formatted properly).
I will add it to the to-do list :)

-Yerren

Offline GordonG

  • Posts: 13
  • OS/Browser:
  • Win NT 10.0
  • Firefox 58.0
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #364 on: March 01, 2018, 11:40:32 AM »
Mine's fixed now, thank you :)

Offline broadstairs

  • Stuart
  • Posts: 7,010
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 56.0.4
    • Broadstairs
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #365 on: March 01, 2018, 12:51:43 PM »
Yerren the code I uploaded in this post does in fact both work and validate fine so you could for now just use that if you wish. It is the code I have running on my server (although not linked to my website).

I understand that your code is primarily just a javascript program but a lot of folks here have a specific design for their sites and like all the pages displayed to be in the same format. This currently can only be added if you use an iframe or embed tags. The current implementation of the Steel Gauges in javascript do not need either of these techniques to add them to an existing design.

It would be good if in future the implementation of FreshWDL could take this on board.

Stuart

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 58.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #366 on: March 01, 2018, 06:23:47 PM »
Yerren the code I uploaded in this post does in fact both work and validate fine so you could for now just use that if you wish. It is the code I have running on my server (although not linked to my website).

I understand that your code is primarily just a javascript program but a lot of folks here have a specific design for their sites and like all the pages displayed to be in the same format. This currently can only be added if you use an iframe or embed tags. The current implementation of the Steel Gauges in javascript do not need either of these techniques to add them to an existing design.

It would be good if in future the implementation of FreshWDL could take this on board.

Stuart

That's really awesome, thank you for that! :)

I think the reason it doesn't work without an iFrame (or similar) is that it scales relative to the window.
I will see if I can change that, somehow.

Offline Weather Display

  • Posts: 84,926
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.186
    • Weather Display
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #367 on: March 18, 2018, 02:50:51 AM »
I have forgoten, but was there way to set the update frequency?

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 59.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #368 on: March 18, 2018, 07:53:22 AM »
I have forgoten, but was there way to set the update frequency?

Currently it's not customisable, however it would be easy to add in to the config file if needed.

However, I will stress the fact it tries to update quite frequently (every five seconds) but it really uses practically no data or processing power to do so, as unless the files have changed it doesn't fetch them (due to the power of cashing) and even if it does need to get a new file, fetching raw text is a really tiny job (<1kb) :)

I will put it on the to-do list, as I can understand if people want to play around with it. But really, for the time being, rest assured that it's a very non-intrusive task!

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.162
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #369 on: March 18, 2018, 09:03:00 PM »
Hi Yerren

I have done nothing to my webpage since I had to fix it up last time because it went ultra large size.

Today it has done it again ????????

http://www.fairfieldweather.info/wdl.html

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 59.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #370 on: March 19, 2018, 01:17:34 AM »
Hi Yerren

I have done nothing to my webpage since I had to fix it up last time because it went ultra large size.

Today it has done it again ????????

http://www.fairfieldweather.info/wdl.html

Hey,

I notice that there is a "?" at the end of your css link (probably left over from the other thing) which shouldn't be there.

I have a feeling that if you remove that, it should be fine! :)

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 59.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #371 on: March 19, 2018, 02:08:54 AM »
Hey,

I notice that there is a "?" at the end of your css link (probably left over from the other thing) which shouldn't be there.

I have a feeling that if you remove that, it should be fine! :)

I stand corrected, there is another (#-o) awkward bit of legacy code left over from somewhere in that one CSS line causing issues this time.
Essentially, where it said:
Code: [Select]
https://gitcdn.xyz/repo/Yerren/FreshWDL/master/css/stylesheet01.cssthe "repo" needs to be replaced with "cdn", like so:
Code: [Select]
https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/css/stylesheet01.css
I do seriously think this stresses what Stuart said earlier however, that we need a validated HTML page that people can use, as well as a stand alone package.
Rest assured I will work on that as a first priority (though with not much time to spare, it might still be a little while).

Sorry for the issue!

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.162
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #372 on: March 19, 2018, 02:37:18 AM »
All sorted......thanks Yerren

Offline Yerren

  • Posts: 137
  • The creator of FreshWDL
  • New Zealand
  • OS/Browser:
  • Win NT 6.3
  • Chrome 67.0.3396.99
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #373 on: June 29, 2018, 08:39:45 AM »
Hey all, finally had the time to release a new update.  :)

Notable changes:
Full changelog: https://github.com/Yerren/FreshWDL/blob/master/Changelog.md

What you need to do to utilise update: Technically nothing, but I strongly suggest you get the new config and HTML file from the Weather Display download page (http://www.weather-display.com/files.php). The valid HTML page is a good idea to have, as the old one is starting to throw some interesting error messages behind the scenes... I can't promise it will keep working indefinitely!

A special thanks to Stuart (A.K.A. broadstairs) for essentially re-formatting the HTML page to a much cleaner state!

Oh, and if you want to change the language of your system... It's just the added field in the new config file.  :)

Offline bitsostring

  • Posts: 430
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #374 on: June 29, 2018, 02:14:41 PM »
Just put in the new config and html files and now I notice that my black wind direction pointer is not moving from N. The green average pointer is OK, and the degree values too.

Is this a coincidence? I must admit I don't look at FreshWDL every day so I can't be more specific about when it happened. . .
« Last Edit: June 29, 2018, 02:40:40 PM by bitsostring »
It's meant to be fun. . .

 

cumulus