View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#1
Customize Queen BeeCon Widget (>=v0.1.4) as:
MRTG The Multi Router Traffic Grapher Widget

The Beecon will display the graphs provided by the uber-famous MRTG - The Multi Router Traffic Grapher



Ready?!

Preparation Steps:
  1. Download and Install Queen Beecon Widget (>=v0.1.4) (Warning! It's still in extras-devel; if you like it, I need your support for testing and promoting to Testing and Extras)

  2. Save following icons/images images (or Download and extract zip file attached to the thread for your convenience) and store images in the specified N900 directory, create it if not existing. (Warning: inside the zip file there could be images with numbers appended to common graphic filenames extensions - ex. football-icon.png.3 - this is NOT an error!)

    NO IMAGES NEEDED

  3. Just drop them HERE:


  4. Make sure you copy the following Exported Instance Data to your phone's clipboard. (Do not modify anything as it is checksum protected and modifications will invalidate checksum!)
    Code:
    [queen-beecon-header]
    version=1,000000
    checksum=1335862
    [queen-beecon-exported-instance]
    widgetType=1
    operationalStatus=0
    hideCanvas=true
    snippetBgRGB=0
    beecon_lt0_ImgZoom=0
    beecon_lt0_BgRGB=2
    beecon_lt0_ImgFilename=queen-beecon-syserr.png
    beecon_eq0_ImgZoom=0
    beecon_eq0_BgRGB=3
    beecon_eq0_ImgFilename=queen-beecon-appok.png
    beecon_eq1_ImgZoom=0
    beecon_eq1_BgRGB=4
    beecon_eq1_ImgFilename=queen-beecon-appwrn.png
    beecon_ge2_ImgZoom=0
    beecon_ge2_BgRGB=5
    beecon_ge2_ImgFilename=queen-beecon-apperr.png
    beecon_idxge2_ImgZoom=0
    beecon_idxge2_BgRGB=11
    beecon_idxge2_ImgFilename=queen-beecon-index.png
    widWidth=399
    widHeight=130
    instanceTitle=192.168.0.1 vlan0/1 day
    instanceCmd=echo "`date`";wget --user-agent="" -q -t 1 -T 5 -O "/home/user/MyDocs/.images/queen_beecon_dir/192.168.0.1_3-day.png" "http://192.168.0.6/mrtg/192.168.0.1_3-day.png"
    cmdImgFilename=;queen-beecon.png
    cmdImgZoom=0
    cmdFgRGB=5
    cmdVisibilityPosition=1
    cmdImgVisibilityPosition=1
    cmdJustify=0
    cmdFontName=3
    cmdFontSize=11
    resImgFilename=/home/user/MyDocs/.images/queen_beecon_dir/192.168.0.1_3-day.png
    resImgZoom=17
    resFgRGB=4
    resVisibilityPosition=3
    resImgVisibilityPosition=9
    resJustify=0
    resFontName=3
    resFontSize=11
    updOnStartup=false
    updOnClick=true
    updOnDesktop=false
    delayIndex=0
    updNeworkPolicy=1
  5. Proceed with the import of the "Exported Instance Data" according to the following instructions:
    Import Procedure for Beecon Exported Instance Data

And Here we Are!!! But there are a few more things you need to do:

Let's customize the Beecon with your MRTG server graphic URLs!!!
  1. After import has loaded all relevant data in Main Settings Dialog Box, let's click on the "Edit Cmd" button

  2. Change the Title as you like

  3. Let's scroll the command code until we find the following string (about end of command):

    ... 192.168.0.1_3-day.png ...



  4. And replace it according to the URL of the image currently returned by your MRTG server.

  5. Let's scroll the command code back a little bit until we find the following string (this is the name of the image that we will save locally and use for displaying on our Beecon):

    ... 192.168.0.1_3-day.png ...



  6. And replace it as the same name you used in the previous step (the one at the end of the URL returned by your MRTG server).

  7. Save changed command with relevant button

  8. Back to Main Settings Let's find the Command Results Settings area and find the following string (this is the name of the local image that we will use for displaying on our Beecon):

    ... 192.168.0.1_3-day.png ...



  9. And replace it as the same name you used in the previous step (the one at the end of the URL returned by your MRTG server).

  10. Adjust the updating intervals and modes preferences according to your needs

  11. Eventually "Save and Run" your Beecon!

Have Fun!!!

Data is made available on the internet and is freely accessible also through a normal browser. Credits go to the cited Companies, Organizations, Product, Services. Please report if any contents is neither appropriate nor allowed to be published and it will be removed within short time span.
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras

Last edited by No!No!No!Yes!; 2010-03-19 at 16:53.