Fresh WDL stuck on "collecting data"

Maybe you should add the quotes also for the last line?
customBaseURL = "../wdisplay/webfiles/",

Succes

:slight_smile: don that :slight_smile: but now 'Data Currently Unavailable… tried also : c://wdisplay/webfiles/"

Yes, the note beside that line says “(note: final slash and quotation marks must be included)”, and it is looking for the URL of a directory on your server – hence the forward slashes.

Is c:\wdisplay\webfiles\ or c:/wdisplay/webfiles/ a URL?

This is the full URL used:

http://217.63.198.250/wdisplay/webfiles/clientraw.txt?nocache=2024321712076612788

It seems that the wdisplay folder is not inside the root folder on your website?

A website can only read data either
from within its own website site root.
or
from another site.

It can not read data from another folder on your website if it is outside the root folder contents.


You should move the clientraw files to the 217.63.198.250 root folder just to test.
Same folder you put the WDL start script in.
Set the customebase line to

customBaseURL = “./”,

If that works you can let WD put the clientraw in the WDL folder.

Succes,
Wim

1 Like

try the boxed area on the attached


it should let you select the web folder then tick create second copy, I think that should work as you say WD and the webserver are on the same computer

1 Like

Upload to the htdocs is working but still nothing is showing up… strange. config.js is in the same folder als clientraw.txt

OK the clientraw is in the main folder
http://217.63.198.250/clientraw.txt

12345 4.6 3.5 175 9.8 96 1003.7 6.2 6.2 249.2 0.09 0.24 24.3 45 100.0 4 0.0 0 0 0.0 10.0 255.0 -100.0 -100.0 -100.0 -100.0 94 -100 -100 08 45 59 Weerstation_Medemblik-08:45:59 0 24 3 4 0.00 0.00 100 100 100 100 100 8.7 10.8 9.8 8.5 18 Cloudy/Moderate_drizzle -0.0 4 4 5 5 5 5 6 7 5 5 5 5 5 3 3 3 2 2 2 6 11.0 9.2 250.3 3/4/2024 10.8 8.7 9.8 7.5 0.0 3 4 3 3 4 3 5 4 4 5 9.7 9.7 9.7 9.7 9.7 9.7 9.7 9.7 9.7 9.8 6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.0 6.2 9.8 8.5 9.8 6.8 0 — — 175 0 0 -100.0 -100.0 0 -100 -100 -100 -100 39.0 24.3 23.4 10.2 1007.5 1003.6 11 08:42 08:42 10.7 7.0 9.2 7.4 8 2024 -12.2 1 0 1 180 180 180 180 181 181 178 186 172 175 0.0 255.0 4.6 9.5 0.00000 0.00000 6.2 96 92 6.2 02:04 0.0 0.0 0.0 0.0 0.0 0.0 45.5 06:48 01:33 180 !!C10.37S150!!

Now you have to modify the line pointing to a non website folder

customBaseURL = “…/wdisplay/webfiles/”,
to point to the root folder where all web-scripts and data are
customBaseURL = “./”,

Then it should work.

Wim

1 Like

The data is coming in correctly.
But there is a new error, inside the WDL code in WidgetsHandlers.min.js

WidgetsHandlers.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading '1')
    at updateTweensUV01 (WidgetsHandlers.min.js:1:168264)
    at updateTopUV01 (WidgetsHandlers.min.js:1:170449)
    at resizeCanvasUV01 (WidgetsHandlers.min.js:1:170672)
    at initializeUVBarUV01 (WidgetsHandlers.min.js:1:172627)
    at initAll (WidgetsHandlers.min.js:1:240837)
    at onload ((index):15:28)

Some WDL specilist is needed for this

Succes,

Wim

1 Like
  1. I installed a fresh version and downloaded your 4 clientraw files.
    Works out of the box.

  2. Changed config.js to become same as yours but one setting at a time

  3. The problem seems to be the line

    uv: "UV",           //Options: no units for UV
  1. Please change that UV back to noUnit
   uv: "noUnit",           //Options: no units for UV

Conclusion:
I think “UV” is not a supported “unit” for an UV sensor.
Should probably be “index” or similar.

If you do not have an UV or solar sensor, you can remove the gauges by setting those to false in config.js

        solar: {
            enabled: false
        },
        UV: {
            enabled: false
        },

Regards,
Wim

1 Like

well, this is very strange , visiting the site on the weather pc by localhost works perfect but visiting entering ipadres of the site nothing… every strange.

sceenshot is from the weather pc and this is the ipadres of that server http://217.63.198.250/

update: Looks like a chrome problem, firefox shows the site :slight_smile:

You have to clear the cache in any browser after changing a .js file.

The old config.js is cached by the browser for a set period.

Wim

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.