Archiv pro štítek: bluemix

Deploying a report to BIRT on Bluemix

Ok, I have BIRT up and running but there is only example report that’s nice but not so useful.

I haven’t found a simple way how to deploy a rptdesign report definition to the already installed Bluemix/BIRT site. Just the way described below. If you know how to do it easily, please let me know.

I created folder report in the same directory as is birt.war located (please see previous post) and copied my report (say Temperature.rptdesign) into this folder and then packed the report design file into birt.war file and updated the application on the bluemix:

jan@Cake : ~/Downloads/birt-runtime-4_4_0
 $ jar -uvf birt.war report/Temperature.rptdesign
 adding: report/Temperature.rptdesign(in = 68687) (out= 6158)(deflated 91%)
jan@Cake : ~/Downloads/birt-runtime-4_4_0
 $ cf push Birt -p birt.war
 Updating app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 Uploading Birt...
 Uploading from: /Users/jan/Downloads/birt-runtime-4_4_0/toPush/birt.war
 1.6M, 185 files
 OK
 Stopping app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 Starting app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 0 of 1 instances running, 1 starting
...
 1 of 1 instances running
 App started
 Showing health and status for app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 requested state: started
 instances: 1/1
 usage: 512M x 1 instances
 urls: Birt.stage1.mybluemix.net
 state since cpu memory disk
 #0 running 2014-09-24 02:08:49 PM 0.0% 211.9M of 512M 198.5M of 1G

It works:

BIRT Report

But it’s not elegant neither fast. Hopefully I will discover another way how to deploy report definitions to the BIRT engine…

Installing BIRT on Bluemix

Short summary: It cannot be easier to make the visualisation and reporting tool called BIRT working on Bluemix… More precisely to run engine and viewer on Bluemix. You will still need BIRT designer have installed on your PC.

Download BIRT Runtime.

Unpack:

jan@cake : ~/Downloads
 $ unzip birt-runtime-4_4_0-20140611.zip
Archive: birt-runtime-4_4_0-20140611.zip
 creating: birt-runtime-4_4_0/
...

Login into your Bluemix account using web interface and create Birt application using Java Liberty Runtime. But this step is not probably needed.

Login to Bluemix using CF:

$ cf login

and push from the directory where you have just unpacked the BIRT runtime:

jan@cake : ~/Downloads/birt-runtime-4_4_0
 $ cf push Birt -p birt.war
 Updating app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 Uploading Birt...
 Uploading from: /Users/jan/Downloads/birt-runtime-4_4_0/birt.war
 2M, 185 files
 OK
 Stopping app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 Starting app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK
 0 of 1 instances running, 1 starting
...
 1 of 1 instances running
 App started
 Showing health and status for app Birt in org jrydval@post.cz / space dev as jrydval@post.cz...
 OK

Point your browser to just created application:

BIRT

Done…

Home automation as a weekend project using IBM’s Clouds – part 3

Today we will add a simple user interface to our Bluemix/Node-RED/MongoDB application. We could do it in a form of a Ruby in Rails app or use another platform. But let’s assume that we want to have something up and running really fast – just for PoC purposes and as a rough prototype. That’s why I am going to use RapidApps for this purpose. Pokračování textu Home automation as a weekend project using IBM’s Clouds – part 3

Home automation as a weekend project using IBM’s Clouds – part 2

Today we will connect the MQTT bus that is core part of IoT Cloud to the MongoDB using Node-RED flow.

The goal is to have the values – that are sent by our simulated device – stored in our database to be able to display them to an user.

We need to add MongoDB to our Bluemix application. Pokračování textu Home automation as a weekend project using IBM’s Clouds – part 2

Home automation as a weekend project using IBM’s clouds – part 1

I decided to make myself familiar with the IBM’s cloud services by creating a home automation system based on these services:

  • Internet of Things Cloud to interconnect sensors (temperature and motion detector) and actuators (light switches) with the application running in cloud.
  • Bluemix to process the events and act in an appropriate way
    • I plan to use Node-RED to feed a database with the events
    • and Business rules service to implement logic.

Before implementing such a system I started by testing components that I plan to use.

Pokračování textu Home automation as a weekend project using IBM’s clouds – part 1