aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: AMPS - AMule PHP Statistics  (Read 139765 times)

uberpenguin

  • Evil harbinger of the Krokodil.
  • Developer
  • Approved Newbie
  • *****
  • Karma: 1
  • Offline Offline
  • Posts: 26
    • http://uberpenguin.they-are.us/
Re: AMPS - AMule PHP Statistics
« Reply #15 on: January 10, 2005, 02:17:23 PM »

Quote
Originally posted by thedude0001
So I would really appreciate it if there was any way to save the image to my hard drive so i can upload it with a cronjob. And if there is such a way and i was just too dumb to see it: Sorry, but i don't really understand a single bit of PHP.   :rolleyes:
Well, as darksidex said it may be easiest to use wxcas.  HOWEVER, notice how the script is called to generate the image, that is, click on the image and look at the URL in your browser.  If you call that URL from any program it will return a valid PNG/JPG/whatever image.  So, from your shell script you can simply do this:

Code: [Select]
wget -O filename.png "http://localhost/path/to/amps/?lang=en&sig_image"or
Code: [Select]
curl -o filename.png "http://localhost/path/to/amps/?lang=en&sig_image"You'll want to change the lang parameter to the two-digit language code that you want.

This will write filename.png that contains the signature image to the current directory.  From there your cron job can push it wherever you would like.

-uberpenguin
Logged

Stevil

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Re: AMPS - AMule PHP Statistics
« Reply #16 on: January 10, 2005, 11:36:31 PM »

as freeBSD newb....how do i use wxcas? ;)


EDIT:
- > make config
gave me the CAS (Compile C aMule Statistics (+GUI)). option.
i've build the port...but still...no AMPS output! :(
« Last Edit: January 11, 2005, 12:01:43 AM by Stevil »
Logged
5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004

errare humanum est ;)

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: AMPS - AMule PHP Statistics
« Reply #17 on: January 11, 2005, 02:43:51 PM »

Hmm, OK, I did already figure out how to get a link to only the picture but then missed the point of just 'wget'ing it... Every day I learn something new, thanks for your help on that. :D

I am / was already playing around a bit with cas / wxcas just to take a look on the output of the different programs, but I liked AMPS the most...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: AMPS - AMule PHP Statistics
« Reply #18 on: January 11, 2005, 06:50:21 PM »

Stevil,

Dunno on freebdsd, but on linux wxCas is compiled by default, though u can force it by --enable-wxcas if u have problems. The exe is wxcas (no C upercase)

The complete user manual is availbale here: http://download.berlios.de/amule/wxcas_user_manual.pdf

Thepolish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: AMPS - AMule PHP Statistics
« Reply #19 on: January 13, 2005, 08:23:03 PM »

I have a little problem with AMPS not showing the correct runtime of amule:

I started amule, everything is fine. Then, 18 hours later, I started amuleweb and AMPS starts telling me "amule has been running for 2 minutes". Now he shows me the time amule web has been runnning. If I shutdown amuleweb AMPS once again shows the uptime of amule...

(Maybe this is not the best place to post it, but I didn't find a better one... What about a section "amule related tools that are not a part of amule" somewhere?)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: AMPS - AMule PHP Statistics
« Reply #20 on: January 24, 2005, 10:03:11 AM »

thedude0001, apply this patch to always get the correct uptime of amule. Maybe uberpenguin should include it in the next release.
Logged
concordia cum veritate

uberpenguin

  • Evil harbinger of the Krokodil.
  • Developer
  • Approved Newbie
  • *****
  • Karma: 1
  • Offline Offline
  • Posts: 26
    • http://uberpenguin.they-are.us/
Re: AMPS - AMule PHP Statistics
« Reply #21 on: January 25, 2005, 01:48:04 AM »

Quote
Originally posted by GonoszTopi
thedude0001, apply this patch to always get the correct uptime of amule. Maybe uberpenguin should include it in the next release.
Ah yes; AMPS was written before amuleweb existed, so the assumption that "amule" was unique worked up until now...  I'll use that in the next version.

-uberpenguin
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: AMPS - AMule PHP Statistics
« Reply #22 on: January 25, 2005, 06:16:00 AM »

Works great, thank you GonoszTopi  :D
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Pages: 1 [2]