cloudy cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,666
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #465 on: October 29, 2018, 09:08:29 PM »
I agree that would be a nice option! I've done it for WDL and SteelSeries Gauges, but I don't think users can do it in FreshWDL - yet.

You can just add a bgcolor tag to the html page code, or a background tag if you want a background image.

Bunty's page with a colored background, note the added 'bgcolor="#FFB6C1"'

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' lang="en">

<head>
    <!-- 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 -->   
    <link href="https://cdnjs.cloudflare.com/ajax/libs/opentip/2.4.6/css/opentip.css" rel="stylesheet" type="text/css" /> <!--Includes the tooltip's css sheet -->
    <!-- Modal code must be outside of body so it can be referenced-->
    <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/UpperContent.js"></script>
  <meta http-equiv="Content-Script-Type" content="javascript" />
  <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Stillwater Weather Live</title>
</head>
<body bgcolor="#FFB6C1"
onload='initAll();'> <!--Once the page is loaded, start the initialization functions -->
        <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/InnerContent.js"></script>
       
    <!-- Loading Screen Setup -->
    <div id="loadingScreen">
        <div id="loadingText">
            <p id="titleText">Stillwater Weather Live</p>
            <p id="loadingMessage">Collecting Data.</p>
        </div>       
    </div>
   
    <!-- First script that must be loaded -->
    <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/js_bundles/Loading.js"></script>
   
    <!-- Include remiaing Scripts -->
    <script type="text/javascript" src="config.js"></script> <!--Includes the local script that sets customisable variables-->
    <script type="text/javascript" src="https://code.createjs.com/easeljs-0.8.2.min.js"></script> <!--Includes the drawing part of CreateJS: EaselJS-->
    <script type="text/javascript" src="https://code.createjs.com/tweenjs-0.6.2.min.js"></script> <!--Includes the animation part of CreateJS: TweenJS-->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/opentip/2.4.6/downloads/opentip-native.js"></script> <!--Includes the tooltip library: OpenTip-->
    <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/js_bundles/moment-with-locales.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
    <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/js_bundles/Globals.js"></script> <!--Includes the script that sets global variables-->
    <script type="text/javascript" src="https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/js_bundles/WidgetsHandlers.min.js"></script> <!--Includes most of the Scripting-->
     
    </body>
</html>

« Last Edit: October 29, 2018, 09:17:03 PM by niko »

Offline bitsostring

  • Posts: 507
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #466 on: October 29, 2018, 10:12:07 PM »
You can just add a bgcolor tag to the html page code

Great! Many thanks.
It's meant to be fun. . .

Offline Dale Reid

  • Posts: 211
  • Eau Claire, Wisconsin
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 63.0
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #467 on: October 29, 2018, 11:56:41 PM »
Nico, (and others who program a lot):
You indicated a color value with the hex code.  Is there a better way that guess and try, in other words is there a tool that shows the color spectrum and you slide the cursor around to generate the color code you need?  Sort of what is like in the Color Setup in WD, which just returns the color and I think degree of hue?  I'm looking for something that allows easy setting by showing me the color code in hex for the color I'm pointing at. 

Since you seem well versed in this, I am taking the chance that you've seen such a tool.  So far, my google guess as to key words hasn't been helpful.
Thanks for any leads.  Dale

Offline bitsostring

  • Posts: 507
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #468 on: October 30, 2018, 12:10:19 AM »
is there a tool that shows the color spectrum and you slide the cursor around to generate the color code you need?

I use this site - but I don't program a lot!
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,666
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #469 on: October 30, 2018, 12:24:43 AM »
I like this one which has been around on various sites for ever - note it refers to Netscape  :lol:

Google for "color picker", there's a ton of them out there. Some will give you a palette of compatible colors, some are desktop apps that allow you to mouse over an image or website and get color codes of objects, there's even a Chrome plugin to do that (but it's a bit clunky IMHO).
« Last Edit: October 30, 2018, 12:36:22 AM by niko »

Offline Bunty

  • Posts: 209
  • Stillwater, OK
  • OS/Browser:
  • Win NT 10.0
  • Firefox 63.0
    • Stillwater Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #470 on: October 30, 2018, 12:30:41 AM »
Oh, no, what happened?  They're not loading any more.  Or am I the only one with the problem?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,666
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #471 on: October 30, 2018, 12:32:30 AM »
What's not loading any more? If you mean your FreshWDL it's working fine for me  :?

Offline Bunty

  • Posts: 209
  • Stillwater, OK
  • OS/Browser:
  • Win NT 10.0
  • Firefox 63.0
    • Stillwater Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #472 on: October 30, 2018, 12:45:06 AM »
What's not loading any more? If you mean your FreshWDL it's working fine for me  :?

Oops, I complained too soon.  Mine has returned to loading now. http://stillwaterweather.com/stwlive.html

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,666
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #473 on: October 30, 2018, 12:50:29 AM »
I use this site - but I don't program a lot!

That's a good one :thumbright:

Offline otronics

  • Posts: 121
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #474 on: December 03, 2018, 12:51:29 PM »
Hello.

This might be related to my post here: https://www.weather-watch.com/smf/index.php/topic,67334.0.html but my rainfall graph has got confused/not showing all rain data.

It has rained most days over the last week but this no longer shows.

See here: http://217.199.187.197/otronics.co.uk/Weather/FreshWDL/FreshWDLmaster.html

Any ideas or is this a Weather Display problem itself?

Offline otronics

  • Posts: 121
  • OS/Browser:
  • Win NT 10.0
  • Chrome 69.0.3497.100
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #475 on: December 04, 2018, 12:33:36 AM »
Ignore - this must be a WD error. I've got into my old Weather Display Live data page and it's doing the same thing.

Offline Weather Display

  • Posts: 85,438
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Weather Display
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #476 on: December 04, 2018, 12:54:24 AM »
we have had lots of rain here recently
which shows OK for me for my FreshWDL:
http://www.weather-display.com/windy/FreshWDLmaster.html

 

cumulus