In some office, there are several HP printers installed and connected to the network. It’s my duty to create such as dashboard to detect the supplies availability for those printers. In this case I am using FusionWidgets v3 to visualize it. I am using FusionWidgets v3 Developer License to achieve this mission. You also can download the trial version of FusionWidgets v3 to follow this tutorial. I assume you are already familiar with the FusionWidgets v3 deployment on your system. I only use the Cylinder type widget to visualize the printer supplies status.
In this case we will monitor printer HP LaserJet M1522nf MFP. Below is the picture of that printer.
HP LaserJet M1522nf MFP
This printer can be connected to TCP/IP network and you can access the printer’s properties from web browser.
HP LaserJet M1522nf MFP control panel from the web browser
Actually we will use PHP and curl to access to this web control panel, grab the data (such as printer name, supplies level status, approximately pages remaining etc) and we will visualize on our dashboard.
- Download FusionWidgets v3 trial from http://www.fusioncharts.com/widgets/.
- Extract it.
- Copy FusionCharts.js from JSClass folder to your web root folder.
- Copy Cylinder.swf from Charts folder to your web root folder.
Now here is the code to grab data from HP LaserJet M1522nf MFP web control panel.