cloudy cloudy

Author Topic: Update interval for SteelGauges (PI version)  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #15 on: September 06, 2016, 09:59:23 PM »
yes and no...
with that setting set at 5 seconds, then it should be updating at 5x slower than the clientraw.txt file update rate
i.e if the clientraw.txt file is set for 1 second, then it should update every 5 seconds
sort of thing

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win NT 10.0
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #16 on: September 06, 2016, 10:24:55 PM »
More info... definitely seems there is a problem here. This is the config.txt setting:

Do custom clientraw=Y //For updating customclientraw for steel gauges (set to Y for yes, N for no) (every 5 minutes)
Customclientraw update rate=60   //seconds

If I put 60 (it says it's in seconds) the setting in wdconsole.ini is 60, but the file is not uploaded every minute...  f I specify 1 in the config.txt the wdconsole.ini is written with the value of 5 and the customclientraw is uploaded every 5 minutes. So... something is wrong here, maybe some confusion between minute and seconds in the settings.

Finally, any settings I insert in config.txt the customclientraw is updated every 5 minutes... no more, no less.

Oh, I tried with both rpi II and III.

          Thanks, Mauro


Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #17 on: September 06, 2016, 10:32:43 PM »
I checked the code, and those values are being used as seconds
and not minutes
what weather station type?

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win NT 10.0
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #18 on: September 06, 2016, 10:36:53 PM »
The settings in config.txt says it's the interval in seconds, not a multiplier to slow down the customclientraw, so this is quite confusing  :?.
If I put that setting to 1 it should be uploaded by ftp at the same interval than clientraw, but this is not happening.

Also, clientraw.txt upload interval, minimum is 1 minute defined by FTP time interval=60, any value less than 60 it's always uploaded every one minute and this can be ok.

Weather station is Lacrosse ws2300.

                Mauro




Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #19 on: September 06, 2016, 10:51:57 PM »
I will do some more checking of the code
and add some debug code
which pi version are you using?

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #20 on: September 07, 2016, 02:05:11 PM »
I use PI 2 and 3 in two different locations. Same result with both versions. I use the same wd version, I've not tried yet the 64bit version for the PI 3.

              Mauro

Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #21 on: September 07, 2016, 11:05:42 PM »
try this new update, for raspberry pi 1 or 2
http://www.weather-display.com/downloadfiles/consolewdpi.tar.gz

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win NT 10.0
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #22 on: September 08, 2016, 07:52:07 PM »
Ok, with the updated version the customclientraw.txt file is created more often and this is great, but... it is transferred over FTP only every 5 minutes. Clientraw.txt is transferred over FTP every minute. So, you just need to FTP both files at the same time, every minute in my case and this will solve the issue :)

                Thanks, Mauro

Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #23 on: September 08, 2016, 09:37:22 PM »
the upload rate by the cronftpreal
is determined by the setting
[customclientraw]
updaterate=
in the wdconsol.ini settings file (restart cronftpreal after making any changes)
e.g set that setting to 1

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win NT 10.0
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #24 on: September 08, 2016, 10:10:07 PM »
Brian, ok, editing the wdconsole.ini and restarting cronftpreal works and this is good, but each time I restart with GoWdconsole.sh, wdconsole.ini is rewritten with settings from cronfig.txt and the default value of updaterate=5 is used, no matter what I insert in config.txt... this is the problem. There is no correspondence between what i set in config.txt and what is written to wdconsole.ini, so finally when the system starts the ftp upload rate for customclientraw is always 5 minutes  :roll:

Also, cronftpreal is started automatically by consolewd and runs in background I don't start it separately.

            Mauro
« Last Edit: September 08, 2016, 10:13:53 PM by paperinics »

Offline Weather Display

  • Posts: 81,138
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 52.0.2743.116
    • Weather Display
Re: Update interval for SteelGauges (PI version)
« Reply #25 on: September 08, 2016, 10:56:58 PM »
yes
but
the update rate can be set to other than the default of 5
in the config.txt file
e.g
Customclientraw update rate=

what do you have that set as?
try setting as 01
as it is expecting double digits

on start up, it should show what it has found
i.e
as
custom clientraw update rate

in the console log

I could set the default to 1 instead of 5

Offline paperinics

  • Posts: 17
  • OS/Browser:
  • Win NT 10.0
  • Firefox 48.0
Re: Update interval for SteelGauges (PI version)
« Reply #26 on: September 09, 2016, 11:08:23 AM »
Ok, now it works perfectly, it was due to the two digits format in config.txt!

        Thanks for your help! Mauro