Author Topic: Steel Gauges  (Read 288252 times)

Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #300 on: September 17, 2015, 06:35:13 PM »
Blick,

thanks for your prompt response.

1 - Done :-)

2 - http://michelswunderland.de/weather/current.htm

Looking forward to a solution...

  Regards !

    Michel


Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #301 on: September 17, 2015, 06:53:11 PM »
Michel:

When you open the processed data file in your WeatherCat Preferences | On-Line | Custom Web | Set Save Path do you see the correct data populated in the file?
Blick


Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #302 on: September 17, 2015, 07:03:22 PM »
Blick,

Ayup, I do.
There is just one minor error with cloudbasevalue. But this has - I think - nothing to do with the problem:

"cloudbasevalue":"***Syntax Error - expecting a variable type; or example EXTHUMIDITY or TEMPERATURE",
Say there is a wrong variable set in the template...

The problem most likely will be the param being passed along with calling the realtimeWC.txt which the webserver
doesn't like for a plain text file...

I wonder what I can do about that...

 Regards !

   Michel

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Welcome Michel (Was: Steel Gauges)
« Reply #303 on: September 17, 2015, 11:11:36 PM »
Dear Michel, Blick, and WeatherCat welcome wagon, . . .

First things first, welcome to the WeatherCat forum!

I'm new to WeatherCat and bringing the data to the web and ran
into some difficulties with  the realtimegaugesWC.txt file.

Unfortunately, I"m not using that web template, so hopefully others will help you work through this problem.  However, once you have got your problem solved, please do us a favor and introduce yourself so we get you know your station installation a little better.  You can do that in this topic:

http://athena.trixology.com/index.php?board=8.0

If there is anything unique about your weather station setup that you would like to share with us, by all means share that information in this forum topic:

http://athena.trixology.com/index.php?topic=969.0

We are always interested in learning about interesting ways to set up a weather station.

Thanks for joining the forum and we hope that you will continue to enjoy using WeatherCat!  [WCSmall]

Cheers, Edouard  [cheers1]

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #304 on: September 17, 2015, 11:26:23 PM »
Michel:

This is a bit weird so lets look at several things.

In your gauges.js file, on line 35, you have the following:

 imgPathURL        : './',

I assume that with this setting you are FTPing to the correct directory of your website. Line 35 shows that you should be FTPing to a subdirectory, one level removed from the root. Is this the case? It looks like your processed file is attempting to be FTPd to the XHRs directory. Is this where you expect it to be?

Can you manually FTP the processed file to the website and have it display on the gauges?

Also, make sure the box is checked in Preferences | Misc2 for Log FTP Operations. Then open the log and see if you get any additional info there about what is happening when WeatherCat attempts to FTP that file.

With regards to your template file, you should have two cloudbase variables:

"cloudbasevalue":"STAT$CLOUDBASE:CURRENT$",
"cloudbaseunit":"HEIGHTUNITS$",

Make sure they are both exactly correct.
Blick


Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #305 on: September 18, 2015, 03:19:54 PM »
Edouard,

thanks for your warm welcome. I'll honor that later in the "new member area".


Blick,

thanks for taking the time, but I meanwhile was able to identify the problem.
In short, all of the files are in the places they belong. It's the WASD webserver being too smart...

GAUGES.JS calls REALTIMEGAUGESWC.TXT and appends a number to the URL.
http://michelswunderland.de/weather/realtimegaugeswc.txt?_=12345678901234

The number appended is the system's time plus a counter - this is nothing but a trick to prevent
the page being cached.

The WASD webserver doesn't allow to pass parameters to files not being procedures or executables.
Moving the .TXT to the cgi-bin directory does help neither - the WASD webserver throws an error
that it can't start the file... it's pretty obvious why :-)

I've put the whole gear onto my VMS machine at home which is running an Apache webserver ...
and there it worked right out of the box... unfortunately, this machine is not running 24*365...

I think it's a configuration matter with the WASD webserver, but I think the owner of the machine
the WASD is runnning on has set this behaviour for an obvious reason - the "?whatever" appendix
to an URL can be used for nasty things...

The only solution to this problem seems to be a modification of GAUGES.JS so that it won't
append the parameter salad to the URL and to somehow prevent the page from being cached.


I think appending the parameter will happen around line 2614 in GAUAGES.JS,
but I'm not able to recognize how it is done...


So the question to the JavaScript experts here is:
What mod do I have to apply to GAUGES.JS  so that it won't append the parameter to the URL ?


  Regards !

     Michel




Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #306 on: September 18, 2015, 04:00:03 PM »
Interesting discovery. I think we'll have to wait for Mark Crossley to weigh in here.
Blick


Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #307 on: September 18, 2015, 06:17:19 PM »
Welllll....

Having a closer look at GAUGES.JS it was pretty simple to disable the no-caching trick.
See attachment for applied mods - just 5 lines changed.

The result is at http://michelswunderland.de/weather/current.html

Next up is the question how to prevent the involved pages from being cached now...

And where are my indoor graphs ?? :-)

 Regards !

   Michel


PS: You need to open the attachemnt - the picture below is not the full truth...

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #308 on: September 18, 2015, 11:20:50 PM »
Progress! Looks like you are offline right now, but I saw some popup graphs.
Blick


Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #309 on: September 18, 2015, 11:27:48 PM »
Blick,

Offline ? Me ? Naah... never;-)

You are right indeed - at least a bit of progress.
It seems there is a chance I will get the spare part for the outdoor unit tomorrow
and so I hope to bring the outdoor values online again tomorrow...

And maybe the indoor graphs as well...

  Regards !

    Michel

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: Steel Gauges
« Reply #310 on: September 18, 2015, 11:30:09 PM »
I know your country code for your top level domain means you are probably in Germany, but that javascript is Greek to me! [blush]Never the less, I send you a hearty Welcome AboaRd, Michel! Looking forward to reading a post from you in the New Members area! BTW, your English is superb! [cheer]
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #311 on: September 18, 2015, 11:53:05 PM »
xairbusdriver,

> [probably Germany]

BINGO ! That's absolutely correct, more precise in Northern Germany, 30km SW of the Baltic Sea
and 50km E of the North Sea, between Kiel and Hamburg. You may want to have a look at my profile's map.

> [JavaScript / Greek]

Yep ! In fact, it was like Chinese to me before I had a closer look at it.
But then, I'm in the IT business since 1984... having seen quite a few
languages helped to decipher it.

> [New Members area...]

I'll compose a resume ASAP ;-)
 
> BTW, your English is superb!

Come on, please refrain from exaggerations  ! :-)
But seriously, thanks for the kudos.

  Regards !

    Michel


WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2956
    • CW9739
    • IIBSTO2
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, extra temp stations, no U.V. WeatherLinkLive.
Re: Steel Gauges
« Reply #312 on: September 19, 2015, 03:07:18 PM »
Welcome to the forum Michel  [tup]

Note, you'll need to update to the latest WeatherCat to fix your cloud base tag issue; it went in at version 2.1.0.

Michel

  • Gentle Breeze
  • **
  • Posts: 46
    • MichelsWunderland
  • Station Details: WH3080 - See website for details
Re: Steel Gauges
« Reply #313 on: September 19, 2015, 10:02:16 PM »
WCDev,

thanks for the pointer regarding the update. I've been a good user and updated to 2.2.1 immediately ;-)

All,

Question:

I'm at a loss with the graphs for internal temperature and internal humidity.
I've set them up in WeatherCat - but what do I need to tell WeatherCat so that it will FTP the related JPEGs to my webserver ?

 Regards !

     Michel

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #314 on: September 19, 2015, 10:18:50 PM »
I looked at your gauges.js file and it looks to be in order.

Are these two tags in your upload template?

GRHUMI$
GRTEMPI$

WeatherCat processes whatever tags it finds and puts them into the processed upload file and FTPs. If those rags are in there, it will FTP them.
 
Blick