Re: [rrd-users] VRULE for sunset, sunrise

This is a discussion on Re: [rrd-users] VRULE for sunset, sunrise within the RRD Users forums, part of the Networking and Network Related category; On Mon, 27 Aug 2007, Jason Fesler wrote: >> I want it in the RRD, so I can plot ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2007
Joseph Mack NA3T
 
Posts: n/a
Default Re: [rrd-users] VRULE for sunset, sunrise

On Mon, 27 Aug 2007, Jason Fesler wrote:

>> I want it in the RRD, so I can plot it as a graph, for the
>> year graph, but I'd like to show the day/night somehow for
>> any particular day.

>
> At whatever interval you store regular data, do a lookup and also store into
> RRD, whether it is day or night (perhaps as 1 and 0, or 1 and NaN?).
> Using that, you can have have an RRD graph that loads your data, + day or
> night, and a CDEF can make a choice what to show based on that.
>
> That'll make it so that you only have to worry about the changing time for
> sunrise/sunset at the time of insert, and not for any of your later graphs.


OK.

Currently I have to calculate is_day for any time/interval
at plotting time. I could store two lots of variables

o sunset/sunrise times for plotting the varying times on the
year graph

o is_day as a separate variable for shading the background
in the day graphs.

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0