[FHZ] ks300 rain data

Begonnen von Guest, 04 März 2009, 22:21:32

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Helo group,

I'm new to fhem and I do have some problems concering the rain data of
my ks300 device. I want to graph the data with Cacti so that I can
show up hourly and daily rainfall. Unfortunately the rain data
counters only increases but I need the delta values to create nice
graphs. I'm storing the data in the mysql backend and Cacti fetches
the data sources via fhemdb_get.pl.

Any help would be appreciated.

Cheers,
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-

UliM

                                             

Hi,

Am Mittwoch, 4. März 2009 schrieb m.holzer:
> I'm new to fhem and I do have some problems concering the rain data of
> my ks300 device. I want to graph the data with Cacti so that I can
> show up hourly and daily rainfall. Unfortunately the rain data
> counters only increases but I need the delta values to create nice
> graphs. I'm storing the data in the mysql backend and Cacti fetches
> the data sources via fhemdb_get.pl.

since I configured Cacti over a year ago an do not use it since my server
upgrade before Christmas I am not aware if Cacti is able to calculate and
display the rainfall per time unit from merely calculating the differential
between the absolute rainfall values. The naming of the graph types was not
intuitive as far as I remember. Did you read Cacti's documentation?

If Cacti is unable to to plot the required differential, you may add a delta
event in 13_KS300.pm (look around code lines 113 to 203 to insert the
calculations). The value you need is

($rain_raw_adj-$rain_raw_adj_prev)/ ($tsecs- $tsecs_prev)* $def->{RAINUNIT} /
1000

(rain in liters per second)

Please be aware the code section from lines 132 to 191 is only executed if the
attribute rainadjustment is set.

HTH.

Regards,
Boris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
RPi4/Raspbian, CUL V3 (ca. 30 HomeMatic-devices), LAN (HarmonyHub, alexa etc.).  Fördermitglied des FHEM e.V.