From 8a0016756038745ee7fd09c4ecec5c3f0cbd7dbd Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Sat, 13 Nov 2021 17:14:43 +0100 Subject: [PATCH] Fixes in README --- README.md | 19 +++++++++++++++++++ pastafaristats/utils/__init__.py | 0 2 files changed, 19 insertions(+) create mode 100644 pastafaristats/utils/__init__.py diff --git a/README.md b/README.md index 15e4833..d189a50 100644 --- a/README.md +++ b/README.md @@ -96,4 +96,23 @@ There other options how I/O where you can define a file log for check errors if All's done!, you can init your service with **nssm start MonitService** and let's go. +# Developing plugins. + +You can add simple python scripts how plugins for add new collections to your data. + +The python scripts need have the next structure: + +```python +def stat(obj_stats): + + obj_stats['test_data']={'pos': 0} + + return obj_stats +``` + +You define a function with name *stat* and arguments *obj_stats* + +*obj_stats* is a python object. You can add new data or manipulate original collected data for your own proposites. + + diff --git a/pastafaristats/utils/__init__.py b/pastafaristats/utils/__init__.py new file mode 100644 index 0000000..e69de29