ClientRaw - Loop to Server?

79 views
Skip to first unread message

Andy Hudson-Smith

unread,
Jan 30, 2019, 5:14:48 AM1/30/19
to weewx-user
Morning - I have installed the ClientRaw plugin as I'm looking to keep running some pages using the clientraw system - :


However, the current version runs from clientraw being uploaded every 3 seconds. In weewx with my first test i see it being uploaded every 5 minutes, via reports.

Is it ok to change this setting to 3 seconds or if there a better way to get clientraw to the server so it shows realtime data?

Andy

gjr80

unread,
Jan 30, 2019, 6:59:33 AM1/30/19
to weewx-user
Hi,

Can you tell us exactly what you mean by the 'ClientRaw plugin'?

Gary

Andy Hudson-Smith

unread,
Jan 30, 2019, 7:21:51 AM1/30/19
to weewx-user
Apologies, yep the extension:

https://github.com/gjr80/weewx-realtime_clientraw

Creates clientraw on loop, i just need to be able to then transfer the file on each update...

Andy

gjr80

unread,
Jan 30, 2019, 7:50:44 AM1/30/19
to weewx-user
OK, unfortunately I never got around to releasing that code as a proper WeeWX extension. At the moment what I expect is occurring is that the clientraw extension is generating clientraw.txt on every loop packet (ie every 3 odd seconds in your case) and the file is being saved on your WeeWX machine. The file is being picked up by either the WeeWX FTP or Rsync 'report' and being transferred to your web host. These uploads are occurring every archive interval seconds. The only way to have them upload more often is to reduce your archive interval though the lowest that can practically be is 1 minute and that may well introduce other issues. The latest code that I committed to that repo supported transferring clientraw.txt to a PHP enabled web server via http post. This would allow clientraw.txt to be transferred to your web server immediately it is generated; however, that code has not been tested, does not have any instructions nor have I put together the supporting php file needed by the web server. The extra work required is not difficult, in fact it is the same as some code I have already implemented in another extension, I just need the time to do it. At the moment it's likely to be 3-4 weeks before I can get to it.

Gary

Andy Hudson-Smith

unread,
Jan 31, 2019, 4:57:03 AM1/31/19
to weewx-user
Thanks for the reply Gary - really good to know there will be a php option at some point.

If you need a beta tester then do let me know :) it would be great to transfer clientraw as soon as its created!

Andy

Andy Hudson-Smith

unread,
Jun 22, 2019, 7:12:33 AM6/22/19
to weewx-user
Afternoon - just trying to reinstall the plugin (as every 5 mins is now fine for the clientraw) but on

wget -P $DOWNLOAD_ROOT https://github.com/gjr80/weewx-realtime_clientraw/releases/download/v0.1.0/rtcr-0.1.0.tar.gz

I get a 404 - has it been removed?

Andy

gjr80

unread,
Jun 22, 2019, 9:50:30 AM6/22/19
to weewx-user
Andy,

Seems I never published a release. If you go to the repo now the instructions should be fine and the release there. The extension package is at https://github.com/gjr80/weewx-realtime_clientraw/releases/download/v0.2.1/rtcr-0.2.1.tar.gz

Whilst this version includes the ability to transfer the loop based clientraw.txt to a web server via http POST I still need to give that aspect a final test, put together a few instructions and include a small php script to run on the web server. I'll try to get that together over the next couple of days. Until then it should function as it did before.

It has been a while since I have touched this extension and it has not had a much testing as I would normally undertake. Please let me know of any issues.

Gary

Andy Hudson-Smith

unread,
Jun 23, 2019, 6:01:00 AM6/23/19
to weewx-user
Brilliant that worked a treat and clientraw is decoding nicely - i use it to convert the data to strong for text to a LED Matrix, every couple of mins.

Much appreciated,

Andy

Reply all
Reply to author
Forward
0 new messages