Menu

QR-Code generation from iTOP

Xaled
2020-05-07
2022-01-29
  • Xaled

    Xaled - 2020-05-07

    Hi,

    Is there a way to generate a QR-Code for printing and sticking to a server
    or cable? Ideally the code would contain the url referencing the itop
    instance and object but an identifier would be good as well.

    Thanks,

    xaled

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2020-05-08

    There's some options to do so. I know someone made it as something which directly appears in the iTop details and list view (which you could print). Not sure if that code is public.

    On my GitHub, there's a custom "report generator". It allows to create templates and also output some info as a QR code in an easy way (and you could also make it print friendly). It takes some setting up though. https://github.com/jbostoen/iTop-custom-extensions (check the WIP-folder; although we've been using it for a while, but I'm working on an improved version)

     

    Last edit: Jeffrey Bostoen 2020-05-08
  • Molkobain

    Molkobain - 2020-05-08

    Hello Xaled,

    That's interesting, we could make an extension to create a QR from an object. I imagine that the user would have to select a few attributes (differents for a server or a cable for example).

    Could you give us some examples of which attributes you use and how they would be displayed once the QR code is scanned? (Server and cable would be great)

    For example, if for a cable you want to put in the QR both connecting MAC addresses, how would be the ouput?

    Name: Cable 123
    Port A: 00:11:22:33:44:55
    Port B: AA:BB:CC:DD:EE:FF
    

    Guillaume

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2020-05-08

      Are you thinking about an extra Attribute type?

       
  • Xaled

    Xaled - 2022-01-17

    Hi,
    QR code should contain a URL to the object, this way it could be directly accessed in the iTop instance after scanning.

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2022-01-17

      Would you want to do this in batch or ... ?

      I had something like this integrated in my "report generator" extension, where I used it to add a QR code on a custom report of the details of one object.

      It also supported list views (and so also a selection of objects).

      It did need quite some configuration though, I'm privately testing a newer version as well.

       
    • Hipska

      Hipska - 2022-01-18

      Or would you want to have it as an action/menu item on the object?

       
  • Xaled

    Xaled - 2022-01-19

    For me action/menu item on an object would be sufficient at the moment. Batch option is interesting and could be useful for later.

     
  • Xaled

    Xaled - 2022-01-21

    The printing format of QR code should be suitable for portable sticker printers to print out QR codes while installing or maintaining equipment at the data center.

     
  • Daan Bakker

    Daan Bakker - 2022-01-28

    Hi Jeffrey,
    I am looking for this QR code creation option too. I would suggest a bulk creation where you could select the CI and the QR code output would be the itop weblink to this CI, just as Xaled suggests.
    I would implement this in the actions so you can create a QR code for that DB object or Ticket.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-01-29

    The PDF-part is the hardest to get to work, but as for templates and pure QR code generation you could give https://github.com/jbostoen/itop-jb-report-generator a shot.

    Currently (privately) testing a better PDF implementation though; but it won't be suitable for most webhosts and typically will only be useful for people who have full access to their server to install some dependencies.

     
    👍
    1
  • Daan Bakker

    Daan Bakker - 2022-01-29

    cool, ive seen this project too.
    i have full access to the host, so if your project is published im happy to hive it a go!

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-01-29

    I'll see if I can publish it soon with at least some documentation.

    The new approach is slightly more complicated, but uses a modern implementation which should also support the latest HTML and CSS standards. With "wkhtmltopdf" which I originally used, there were too many limitations.

    Update: I have published an update to the project.

     
    🎉
    1

    Last edit: Jeffrey Bostoen 2022-01-31

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.