thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: UpdateGeoIP  (Read 7920 times)

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
UpdateGeoIP
« on: February 15, 2011, 05:12:45 PM »
updategeoip plugin v1.0

hello here is a  little plugin, very little  :)

 just for update easily, your GeoIP.dat file

Installation:

1. Place the updategeoip.py in your ../b3/extplugins and the
updategeoip.xml in your ../b3/extplugins/conf folders.

2. Open updategeoip.xml

modify <set name="geoippath">/PATH/GeoIP/</set> for your config ex (<set name="geoippath">b3/extplugins/GeoIP/</set>

3. Open your B3.xml file (default in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="updategeoip" config="@b3/extplugins/conf/updategeoip.xml"/>

download -> updategeoip v1.0

Sorry for my English
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #1 on: February 17, 2011, 12:27:45 PM »
v1.1

Verifies url address for the update

download -> updategeoip v1.1

Sorry for my English
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #2 on: March 02, 2011, 08:26:34 PM »
updategeoip plugin v1.2

now automatically updates once a month the file GeoIP.dat

add command
!verifgeoip for know the date of last update

download -> updategeoip v1.2

Sorry for my English
PtitBigorneau

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: UpdateGeoIP
« Reply #3 on: March 02, 2011, 08:50:35 PM »
Links not working for me  :-\

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #4 on: March 02, 2011, 09:32:30 PM »
PtitBigorneau

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: UpdateGeoIP
« Reply #5 on: May 31, 2011, 01:24:12 AM »
it s working for me  :)

http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=133

Code: [Select]
http://forum.bigbrotherbot.net/downloads/?sa=downfile&id=133
Quote
404 - Attachment Not Found


Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: UpdateGeoIP
« Reply #6 on: May 31, 2011, 02:34:21 AM »
Code: [Select]
http://forum.bigbrotherbot.net/downloads/?sa=downfile&id=133

2 Different links..

http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=133
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: UpdateGeoIP
« Reply #7 on: May 31, 2011, 02:39:11 AM »
I should of made it more clear ... mybad

first link brings you to the download page

second link is the download url that = fail

as Freelander  said the link is broke  :o

I ended up pulling from http://ptitbigorneau.fr/fichiers/updategeoip.zip

have not tested it as of yet

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #8 on: May 31, 2011, 09:27:37 AM »
PtitBigorneau

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: UpdateGeoIP
« Reply #9 on: May 31, 2011, 08:50:14 PM »
yep

Offline Beber888

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 179
Re: UpdateGeoIP
« Reply #10 on: September 18, 2011, 12:04:32 AM »
Hello, I think you have to update your plugin because it don't works on Windows system.

You just have to put :

Quote
zfile = gzip.GzipFile(self._geoippath + 'GeoIP.dat.gz', 'rb')
Line 72, 102

And

Quote
fichier = open(self._geoippath + 'GeoIP.dat', 'wb')
on line 76, 106.

Python, Php, UrT SourceCode

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #11 on: September 18, 2011, 11:00:04 AM »
it works great with Windows  ???
I just tested with b3_1.7.1 windows (with and Without installer)
there is no problem

What version of b3 you use?
« Last Edit: September 18, 2011, 11:02:09 AM by PtitBigorneau »
PtitBigorneau

Offline Beber888

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 179
Re: UpdateGeoIP
« Reply #12 on: September 18, 2011, 11:24:48 AM »
Python, Php, UrT SourceCode

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: UpdateGeoIP
« Reply #13 on: September 18, 2011, 11:43:18 AM »
with python 2.7.2 this code work
Code: [Select]
import gzip

zfile = gzip.GzipFile('GeoIP.dat.gz')
content = zfile.read()
zfile.close()

fichier = open('GeoIP.dat','w')
fichier.write(content)
fichier.close()

well for me with linux or windows, python 2.7.1 or 2.7.2
the plugin works well, but with your solution, it works too
 so I took note for a future version:)
« Last Edit: September 18, 2011, 11:56:10 AM by PtitBigorneau »
PtitBigorneau

Offline C7_4K

  • Jr. Member
  • **
  • Posts: 34
Re: UpdateGeoIP
« Reply #14 on: April 07, 2012, 01:40:37 PM »
work with battlefield 3??

 


Rate this page +1 at Google Search