GithubHelp home page GithubHelp logo

rdmstats's Introduction

rdmStats

Process rdm scanner data for pokemon, quest and spawnpoint for each defined area into seperate stats tables.
Processing is done on interval 15/60/1440/10080 minutes and can be displayed by pre-defined grafana templates.
tbd:

  • add worker stats when available in rdm
  • once worker stats have been added it will allow to link them to device info such as restarts/reboots

1 Prerequisites

  • tested on: mariadb 10.5/10.6, mysql server 8.0.31
  • in RDM local.json add "stats": true, ,disabled by default

2 Setup

  • clone rdmStats, git clone https://github.com/dkmur/rdmStats.git
  • create stats db and user (user needs to have access to both stats db and rdm db)
  • copy and fill out config, cd rdmStats/ && cp default_files/config.ini.default config.ini
  • execute setting.run
  • add content of crontab.txt to your cron
  • add quest and mon area fences to table geofences and execute settings.run once more to populate column st
insert ignore into geofences (area,fence,type,coords) values
('Newyork','Newyork_centre','mon','lat1 lon1,lat2 lon2,lat3 lon3,lat1 lon1');

insert ignore into geofences (area,fence,type,coords) values
('Newyork','Newyork_south','mon','lat1 lon1,lat2 lon2,lat3 lon3,lat1 lon1');

insert ignore into geofences (area,type,coords) values
('Newyork','quest','lat1 lon1,lat2 lon2,lat3 lon3,lat1 lon1');

- column fence is only used in case you use subfences for an area(town), will default to area when not included
- first and last coordinate must be the same for column coords
- after changing or adding fences always execute setting.run to populate column st

Nore 1: grafana templates will group before first "_" meaning for instance in the example above when looking at stats for area Newyork without specifying a fence the 2 mon areas will be combined
Note 2: mon area stats are delayed by one hour compared to quest/spawnpoint and (non existent) worker stats

3 Grafana

4 Updates

  • depending on changes but to be safe, pull+execute settings.run+update crontab
  • replace changed grafana templates


A logs folder will be created in rdmStats folder, any errors during execution are printed before the actual logline.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.