Coder Social home page Coder Social logo

Worldmap panel about varken HOT 12 CLOSED

boerderij avatar boerderij commented on August 22, 2024
Worldmap panel

from varken.

Comments (12)

samwiseg0 avatar samwiseg0 commented on August 22, 2024

You may need to play with the world map settings to get the right display. It uses the region code provided by the GeoIP2 DB.

Can you tell me which region_code is being inserted into the influxdb?

We are using the .subdivisions method for determining location on the map.
https://geoip2.readthedocs.io/en/latest/index.html?highlight=subdivisions#geoip2.records.Subdivisions

2018-08-09_15-49-16

from varken.

icehuntman avatar icehuntman commented on August 22, 2024

Region_code "UT" is being inserted.

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

I did a test with a generic IP in the Netherlands and it does seem to only work in the US. I will put some thought into how to expand this to the rest of the world. We will have to change the method in which we use to determine location to accomplish this.

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

I think I figured out a good way to expand this without breaking current functionality.

Can you try this updated tautulli.py?

You will need to install a new module pip3 install Geohash

Can you report back to let me know if these settings worked for you?

Also change grafana to these settings...
2018-08-09_18-04-28
2018-08-09_18-04-42

from varken.

icehuntman avatar icehuntman commented on August 22, 2024

Yes! With this config it works like a charm!

Had to install "pip install python-geohash"..
was getting this error:

"Traceback (most recent call last):
File "tautulli.py", line 8, in
import Geohash
File "/usr/local/lib/python3.6/dist-packages/Geohash/init.py", line 21, in
from geohash import decode_exactly, decode, encode
ModuleNotFoundError: No module named 'geohash'"

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

Great. I will add that to the requirements.txt file. I did notice that the number of clients in the circles seems a bit off. I will do some more tinkering before I push it. Thanks for the speedy testing.

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

I thought about it some more and I think I am going to do it a little bit differently. I am going to use the Lat and Long instead of the geohash. That will remove the dependency.

I have updated the gist to reflect the changes.

grafana changes
2018-08-09_20-51-02
2018-08-09_20-51-03

from varken.

xunil75 avatar xunil75 commented on August 22, 2024

Hi guys, sorry for jumping into this issue but I do have the same problem where I can't see anything on the map. I'm based in Switzerland. The linked "Gists" are not available anymore as well.

Thanks

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

@xunil75 It has been incorporated into the repo.

https://github.com/DirtyCajunRice/grafana-scripts/blob/nightly/dashboard/panel_row_worldmap.json

from varken.

xunil75 avatar xunil75 commented on August 22, 2024

@samwiseg00 then I must have a problem with the retrieved data from Taututtli since I'm not getting the Field "location". Can you please explain me how to include the panel_row_worldmap.json?

This is how my Dashboard looks like:

screencapture

from varken.

samwiseg0 avatar samwiseg0 commented on August 22, 2024

Edit the panel json and paste in the json from the repo.

unknown

from varken.

xunil75 avatar xunil75 commented on August 22, 2024

@samwiseg00 you're the man!!

image

Thank you!

from varken.

Related Issues (20)

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.