Re: [weewx-user] Re: Change archive interval for single report

2018-04-23 Thread A.J. Burnett
Hi Gary...

I never did THANK YOU for all your help with this issue from months ago. I 
got it all to work very well, thanks to your assistance! It is much 
appreciated!

I'm working on another station/page for work now and have a similar but 
different issue that I'm hoping you can assist with.

I have installed the realtime gauge data extension on a RPi. The same Rpi 
is hosting the intranet page to display the data. I've set up the guages.js 
script to write to the directory I need gauge-data.txt to go to, but the 
file is not making it there.

weewx root = /home/weewx
skin = [weewx root]/skins/ss
HTML root = /var/www/html  // This is where I'm hoping to get the realtime 
gauge-data.txt file to, every 2.5 seconds or LOOP packet generation.

My syslog is attached as a .txt file (shows the file being generated, but 
no more info available).

Any thoughts?

Thank you once again!

A.J.





On Saturday, February 17, 2018 at 8:49:11 PM UTC-5, gjr80 wrote:
>
> Sorry this has taken a couple of days, unfortunately there is more to life 
> than weeWX :)
>
> Some background for others who stumble on this.
>
> If you are using the SteelSeries Gauges skin to produce gauge-data.txt 
> then you can use the normal weeWX FTP or Rsync reports to upload 
> gauge-data.txt; gauge-data.txt is only generated once per archive 
> interval so there is no need to upload it any more freuently. If you are 
> using the Realtime gauge-data (RTGD) extension which can generate 
> gauge-data.txt as often as once per loop period, the weeWX FTP and Rsync 
> reports can still be used but they will still only upload gauge-data.txt 
> once per archive interval. If your web server is the same machine as your 
> weeWX server the issue can be addressed by having the RTGD extension save 
> gauge-data.txt to an approparite directory accessible by the web server. 
> If your web server is remote to your weeWX machine one approach is to have 
> the RTGD extension transfer gauge-data.txt to your web server via HTTP 
> POST. You could also conceivably have some external method of transferring 
> the file by FTP or RSYNC; CRON based transfers are of limited use as CRON 
> has a 1 minute 'resolution'. WeeWX has no builtin mechanism for 
> transferring files every loop period; it only has the report based transfer 
> reports that work on an archive interval period.
>
> To have the RTGD extension transfer gauge-data.txt to your web server via 
> HTTP POST refer to the section Using HTTP POST to transfer gauge-data.txt 
> to a remote server 
> 
>  
> in the RTGD extension User's Guide. Bear in mind this was wrritten about 8 
> months agao, I have reviewed it quickly thismorning and believe it is still 
> correct, though if you find any issues please let me know.
>
> Gary
>
> On Sunday, 18 February 2018 00:57:30 UTC+10, WxManAJB wrote:
>>
>> So, I’ve got data being produced, but getting that near real time 
>> gauge-data.txt file to my server at a rapid fire interval is proving 
>> elusive. I’ve tried getting the rsync skin running by producing a key pair 
>> for ssh and using those credentials in the skin setting of Weewx.conf, but 
>> it’s not sending anything and nothing is showing up in my log reflecting an 
>> attempt to do so. 
>>
>> Any ideas? 
>>
>> Thanks again for all your help! 
>>
>> A.J.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Apr 23 18:03:18 wx1albert systemd[1]: Starting LSB: weewx weather system...
Apr 23 18:03:18 wx1albert weewx[22654]: engine: Initializing weewx version 3.8.0
Apr 23 18:03:18 wx1albert weewx[22654]: engine: Using Python 2.7.13 (default, 
Nov 24 2017, 17:33:09) #012[GCC 6.3.0 20170516]
Apr 23 18:03:18 wx1albert weewx[22654]: engine: Platform 
Linux-4.14.34-v7+-armv7l-with-debian-9.4
Apr 23 18:03:18 wx1albert weewx[22654]: engine: Locale is 'en_US.UTF-8'
Apr 23 18:03:18 wx1albert weewx[22654]: engine: pid file is /var/run/weewx.pid
Apr 23 18:03:18 wx1albert weewx[22658]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr 23 18:03:18 wx1albert weewx[22658]: engine: debug is 2
Apr 23 18:03:18 wx1albert weewx[22658]: engine: Initializing engine
Apr 23 18:03:18 wx1albert weewx[22658]: engine: Loading station type Vantage 
(weewx.drivers.vantage)
Apr 23 18:03:18 wx1albert weewx[22643]: Starting weewx weather system: weewx.
Apr 23 18:03:18 wx1albert systemd[1]: Started LSB: weewx weather system.
Apr 23 18:03:18 wx1albert weewx[22658]: vantage: Driver version is 3.0.10
Apr 23 18:03:18 wx1albert weewx[22658]: vantage: Opened up serial port 
/dev/ttyUSB0; baud 19200; timeout 4.00
Apr 23 18:03:18 wx1albert weewx[22658]: vantage: Gentle wake up of 

Re: [weewx-user] Re: Change archive interval for single report

2018-02-13 Thread A.J. Burnett
Sorry, meant RTSG (Real-time Steel Guage).

On Tue, Feb 13, 2018 at 6:30 PM, gjr80  wrote:

> I think it is time you post weewx.conf and a log extract so we can see
> what is installed and what is going on (I have not heard of the 'SRGT
> skin'). Please post a copy of weewx.conf making sure you remove any
> sensitive info, passwords etc. Also, set debug=1 in weewx.conf, save
> weewx.conf, restart weeWX and let it run for 10 minutes. Take an
> extract/copy of your weeWX log (nominally /var/log/syslog) from when you
> restarted weeWX to the point 10 minutes after the restart and post the
> extract here.
>
> Gary
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/TEahPOTTAVI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Burnett Media Group
"Giving you a voice."
E-mail: a...@ajburnettonline.net 
Web: www.AJBurnettOnline.com 
Phone: 978-595-2329

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Change archive interval for single report

2018-02-13 Thread A.J. Burnett
So I've managed to get the JSON file to update every minute, but would love
to get it every 2.5 seconds. I installed the SGRT skin, but still only get
the file every minute. What should I be doing now?

Thank you all for all your help!

A.J.

On Mon, Feb 12, 2018 at 11:50 PM, gjr80 <gjroder...@gmail.com> wrote:

> If your pages are updating at 10 minute intervals that sounds like the
> archive interval being used is 10 minutes (if you are using the SteelSeries
> skin that would further support this idea). With a Davis station any
> archive interval setting in the console will override the [StdArchive]
> archive_interval setting. To confirm what is happening go back and look
> at your log from when you last started weeWX, you will probably see
> something like this in the start up logging:
>
> Feb 13 13:45:18 stretch22 weewx[1589]: engine: The archive interval in
> the configuration file (300) does not match the station hardware interval
> (600).
> Feb 13 13:45:18 stretch22 weewx[1589]: engine: Using archive interval of
> 600 seconds
>
> If you can't find it stop then start weeWX and have a look at the startup
> log.
>
> To fix it, stop weeWX and then use wee_device to set the desired archive
> interval in the console
> <http://weewx.com/docs/hardware.htm#vantage_archive_interval46>.
>
> Note, the only effect this will have on gauge-dat.txt is to generate it
> every 5 minutes rather than every 10 minutes. Refer to my previous post.
>
> Gary
>
>
> On Tuesday, 13 February 2018 13:51:22 UTC+10, A.J. Burnett wrote:
>>
>> Hi Andrew,
>>
>> Station type is a VP2. My StdArchive interval is set to 300, which should
>> be every 5 minutes, but the gauge-data.txt file only updates every 10
>> minutes. My web page only updates at that same 10-minute interval too.
>> 
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/TEahPOTTAVI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
<http://www.ajburnettonline.net/>
Burnett Media Group
"Giving you a voice."
E-mail: a...@ajburnettonline.net <a...@ajburnettonline.net>
Web: www.AJBurnettOnline.com <http://www.ajburnettonline.com/>
Phone: 978-595-2329

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Change archive interval for single report

2018-02-12 Thread A.J. Burnett
Hi Andrew,

Station type is a VP2. My StdArchive interval is set to 300, which should 
be every 5 minutes, but the gauge-data.txt file only updates every 10 
minutes. My web page only updates at that same 10-minute interval too. 


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Change archive interval for single report

2018-02-12 Thread A.J. Burnett
UPDATE:

I stumbled across SteelSeries Gauges and saw that it produced a great JSON 
file (and has some cool gauges to go along with it too!). So I have a JSON 
file now, but I want SteelSeries to update every 2.5 seconds (near 
real-time). I can't find that interval anywhere...right now, it appears to 
be every 10 minutes.

Any ideas on how to get the 2.5-second interval going?

A.J.



On Monday, February 12, 2018 at 5:23:13 PM UTC-5, A.J. Burnett wrote:
>
> Hi Gary,
>
> Thanks so much for your response! I'll admit, I'm very lost.
>
> I have done some minor customization to templates and have some basic 
> Python knowledge, but I'm not understanding the steps in your very detailed 
> message (thanks again!)
>
> Perhaps harnessing the loop packets is the way to go, since I'd love to 
> display the data in a "rapid-fire" manner, similar to Wunderground's very 
> frequent updates.
>
> How do I go about accessing those and spitting it into JSON format?
>
> A.J.
>
> On Saturday, February 10, 2018 at 2:33:26 AM UTC-5, gjr80 wrote:
>>
>> Hi,
>>
>> WeeWX reports can be run at multiples of your archive interval but they 
>> cannot be run any more frequent than the archive interval. If you want 
>> weeWX to do something more frequent than the archive interval then you need 
>> write a custom service to do what you want (in your case generate some 
>> output).
>>
>> I am not sure of your understanding of weeWX' inner workings or your 
>> python knowledge so my apologies if I am explaining what you already know. 
>> It is fairly trivial to create a custom service that is tied to the 'loop 
>> interval' of your station (refer to Loop packets 
>> <http://weewx.com/docs/customizing.htm#LOOP_packets> in the 
>> Customization Guide if you don't know about loop packets and their 
>> interval). When you write a custom service you lose a lot of the 
>> conveneince functions that come with the weeWX report engine (the ability 
>> to use tags and the associated aggregation, formatting and conversion 
>> abilities) so you need to do a lot of the data gathering, processing, 
>> formatting and output yourself. If you have a basic understanding of python 
>> you should be able to work your way through some examples and ultimately 
>> create your own. A lot of the functions you need to access data within 
>> weeWX already exist in the weeWX API, its mainly the working out what you 
>> want, producing your output and handling the corner cases (ie dealing with 
>> None values) that take up your time.
>>
>> If you are still keen, Customizing the weeWX service engine 
>> <http://weewx.com/docs/customizing.htm#service_engine> in the 
>> Customization Guide has some basic examples. One you get a feel for things 
>> you can dive into some more advanced services that do a similar thing to 
>> what you want to do. The crt extension 
>> <https://github.com/weewx/weewx/wiki/crt> implements a loop based 
>> service that does something similar to what you want to do. Also the 
>> realtime 
>> gauge-data extension <https://github.com/gjr80/weewx-realtime_gauge-data> 
>> does a similar thing to the crt extension but it produces a JSON format 
>> file to drive the SteelSeries weather gauges.
>>
>> Hope that helps and don't be afraid to ask if you don't understand.
>>
>> Gary
>>
>> On Saturday, 10 February 2018 13:35:33 UTC+10, A.J. Burnett wrote:
>>>
>>> Hi everyone!
>>>
>>> I'm producing a simple JSON report using weeWX, in addition to all my 
>>> other reports. I'd like to keep the interval I'm currently using for 
>>> everything, but I want to fire off the JSON report every 5-10 seconds, if 
>>> possible. Can anyone recommend where I can achieve this, if it's even 
>>> possible?
>>>
>>> Thank you!
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Change archive interval for single report

2018-02-12 Thread A.J. Burnett
Hi Gary,

Thanks so much for your response! I'll admit, I'm very lost.

I have done some minor customization to templates and have some basic 
Python knowledge, but I'm not understanding the steps in your very detailed 
message (thanks again!)

Perhaps harnessing the loop packets is the way to go, since I'd love to 
display the data in a "rapid-fire" manner, similar to Wunderground's very 
frequent updates.

How do I go about accessing those and spitting it into JSON format?

A.J.

On Saturday, February 10, 2018 at 2:33:26 AM UTC-5, gjr80 wrote:
>
> Hi,
>
> WeeWX reports can be run at multiples of your archive interval but they 
> cannot be run any more frequent than the archive interval. If you want 
> weeWX to do something more frequent than the archive interval then you need 
> write a custom service to do what you want (in your case generate some 
> output).
>
> I am not sure of your understanding of weeWX' inner workings or your 
> python knowledge so my apologies if I am explaining what you already know. 
> It is fairly trivial to create a custom service that is tied to the 'loop 
> interval' of your station (refer to Loop packets 
> <http://weewx.com/docs/customizing.htm#LOOP_packets> in the Customization 
> Guide if you don't know about loop packets and their interval). When you 
> write a custom service you lose a lot of the conveneince functions that 
> come with the weeWX report engine (the ability to use tags and the 
> associated aggregation, formatting and conversion abilities) so you need to 
> do a lot of the data gathering, processing, formatting and output yourself. 
> If you have a basic understanding of python you should be able to work your 
> way through some examples and ultimately create your own. A lot of the 
> functions you need to access data within weeWX already exist in the weeWX 
> API, its mainly the working out what you want, producing your output and 
> handling the corner cases (ie dealing with None values) that take up your 
> time.
>
> If you are still keen, Customizing the weeWX service engine 
> <http://weewx.com/docs/customizing.htm#service_engine> in the 
> Customization Guide has some basic examples. One you get a feel for things 
> you can dive into some more advanced services that do a similar thing to 
> what you want to do. The crt extension 
> <https://github.com/weewx/weewx/wiki/crt> implements a loop based service 
> that does something similar to what you want to do. Also the realtime 
> gauge-data extension <https://github.com/gjr80/weewx-realtime_gauge-data> 
> does a similar thing to the crt extension but it produces a JSON format 
> file to drive the SteelSeries weather gauges.
>
> Hope that helps and don't be afraid to ask if you don't understand.
>
> Gary
>
> On Saturday, 10 February 2018 13:35:33 UTC+10, A.J. Burnett wrote:
>>
>> Hi everyone!
>>
>> I'm producing a simple JSON report using weeWX, in addition to all my 
>> other reports. I'd like to keep the interval I'm currently using for 
>> everything, but I want to fire off the JSON report every 5-10 seconds, if 
>> possible. Can anyone recommend where I can achieve this, if it's even 
>> possible?
>>
>> Thank you!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Change archive interval for single report

2018-02-09 Thread A.J. Burnett
Hi everyone!

I'm producing a simple JSON report using weeWX, in addition to all my other 
reports. I'd like to keep the interval I'm currently using for everything, 
but I want to fire off the JSON report every 5-10 seconds, if possible. Can 
anyone recommend where I can achieve this, if it's even possible?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.