IBM Watson IoT Rules

  • 15 Jul, 2019

Rules are key elements for an IoT solution. Using rules you can trigger an action or send an alert any kind of notification. IBM update his platform and now you can create rules using a graphical interface. The key part of a rule is the expression that will be evaluate to true or false.  The expression language are built using JSONata. JSONata is a lightweight query and transformation language for JSON data. The point is that IBM are using JSONata v1.4x. and the current version of JSONata is v1.6.5. The versions have lots of difference. Yesterday i was writing a rule to get the hour for an event. If you are using v1.6.5 you can use the function $fromMilllis with picture. $fromMillis(151006

IBM Watson IoT RulesRead More

Converting M4V to MP4 and WEBM with FFmpeg

  • 05 Jun, 2019

This month i am creating a Course about AI & IoT   (AI & IoT Fundamentals). The course are about AI and IoT in general but i will use IBM Watson APIs, IBM Watson IoT and off course Node-Red and Raspberry Pi to make the excersices. The course is 15 hours long (lots off video) plus the exercises. Using the Keynote to generate de videos is fine but when i export the video the only option is M4V type.  To convert the videos i am usin FFmpeg. 1 - Install FFmpeg brew install ffmpeg 2 - Convert to mp4 using ffmpeg -i input.m4v out.mp4 3 - Convert to webm ffmpeg -i input.m4v output.webm

Converting M4V to MP4 and WEBM with FFmpegRead More

Node-RED 1.0.0-beta.2 released

  • 25 May, 2019

This is the first public beta release of Node-RED 1.0. The changes in this release are mostly focused on the editor - and there are some significant changes in there. More info here(https://discourse.nodered.org/t/node-red-1-0-0-beta-2-released/11504) Installing the beta If you want to try out the beta, you will need specify node-red@next when you use npm to update. Without the @next you'll still get 0.20.x. So on a Pi you'd do: hljs coffeescript sudo npm install -g --unsafe-perm node-red@next

Node-RED 1.0.0-beta.2 releasedRead More

End of Google Cloud Messaging Support impact for IBM Verse Android clients

  • 21 Mar, 2019

As of April 10, 2018, Google has deprecated Google Cloud Messaging (GCM). The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. IBM Traveler uses GCM for push notifications with IBM Verse for Android clients. Firebase Cloud Messaging (FCM) is the new supported notification infrastructure. This flash details what actions should be taken for IBM Traveler and the IBM Verse for Android clients to support the FCM notification infrastructure. More information on this link(https://www-01.ibm.com/support/docview.wss?uid=ibm10876622&myns=swglotus&mynp=OCSSYRPW&mync=E&cmsp=swglotus--OCSSYRPW--E)

End of Google Cloud Messaging Support impact for IBM Verse Android clientsRead More

What's new in Node-RED 0.20

  • 12 Mar, 2019

Node-RED 0.20 brings lots of new enhancements to the editor, some new subflow features and a complete restructure of its internal packaging. https://nodered.org(https://nodered.org)

What's new in Node-RED 0.20Read More

Setup Node.js development environment

  • 05 Mar, 2019

Setup a Node.js development environment is easy but when you need to work in a team, the best option is document all installation steps for everyone. Every developer must use the same setup or things can be wrong. Bellow are small steps to setup a simple Node.js development environment 1 - Setup Node.js:  https://nodejs.org/en/(https://nodejs.org/en/) 2 - Setup VS Code: https://code.visualstudio.com/docs/setup/setup-overview(https://code.visualstudio.com/docs/setup/setup-overview) 3 - Open VS Code create a folder and in this folder save an file as app.js 4 - Setup nodemon: Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect f

Setup Node.js development environmentRead More

Using Arduino Nano on MacBook Pro

  • 01 Mar, 2019

Connect an Arduino Board to a computer is a easy task right? 99% yes.  My Arduino Nano Board(https://www.eletrogate.com/nano-v3-0-cabo-usb-para-arduino) arrived last week and i only have time to play with this board on the last weekend. When i try to upload a program to the board i got the following: Arduino: 1.8.8 (Mac OS X), Board: "Arduino Nano, ATmega328P" Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500\getsync() attempt 1 of 10: not in sync: resp=0x50 avrdude: stk500\getsync() attempt 2 of 10: not in sync: resp=0x72 avrdude:

Using Arduino Nano on MacBook ProRead More

Decoding Sensor Data

  • 28 Feb, 2019

Every sensor has it's own kind off codification The message from the device is like this one: {"time": "1551285775", "deviceType": "deviceType", "device": "xyzabcd", "duplicate": "false", "snr": "30.00", "rssi": "-128.00", "avgSnr": "19.39", "station": "300C", "lat": "-20.0", "lng": "-44.0", "seqNumber": "497", "data": "1a24183c3801" } The measurement are encoded on data string, a sequence of 6 bytes. I read the sensor manual and the temperature are usin the last 4 bytes To get the temperature value i wrote the following: var dados = msg.payload.data //get the data value "1a24183c3801" var v1 = dados.substring(10,11)+dados.substring(11,12)+dados.substring(8,9)+dados.substring(

Decoding Sensor DataRead More

Encode / Decode string on MAC terminal

  • 27 Feb, 2019

Today i am working on a batch operation registering several sensors on IBM Watson IoT. Using curl you need to encode de API KEY and API TOKEN It easy using the MAC terminal console To encode just type on terminal: echo -n 'user:password' | base64 the result is ---> dXNlcjpwYXNzd29yZA== To decode just type: echo 'dXNlcjpwYXNzd29yZA==' | base64 -D the result is ---> user:password

Encode / Decode string on MAC terminalRead More

IBM Cloud Error: 502 Bad Gateway: Registered endpoint failed to handle the request

  • 26 Feb, 2019

I setup the connection to cloudant service to store historical data of my IoT devices. When i click "done" an pop up window appears asking to authorize the connection to Cloudant Service. I confirm to authorize and i get the message 502 Bad Gateway: Registered endpoint failed to handle the request. and i can't store iot device data on cloudant. I tried several times. I search a lot about this error message with no luck .  To solve the problem erase all IBM cookies from you browser and restart it.

IBM Cloud Error: 502 Bad Gateway: Registered endpoint failed to handle the requestRead More

IBM Collaboration Solutions webinars on-demand

  • 01 Feb, 2019

I miss some webinars about Domino V10 . Here is the link(https://www.ibm.com/collaboration/webinars) to Collaboration Solutions Webinars records

IBM Collaboration Solutions webinars on-demandRead More

What is hybrid cloud?

  • 21 Jan, 2019

At a high-level, a hybrid cloud is a mixture of private and a public cloud environments that work in tandem to run your workloads and apps. That definition sounds straight-forward, but when you dive in and start to work, you can find hybrid cloud architectures difficult to manage without the right tools. You can watch a video of a real-world example to clearly understand what works well on a public cloud environment and what is best in a private environment.

What is hybrid cloud?Read More