Home / Companies / PubNub / Blog / April 2016

April 2016 Summaries

2 posts from PubNub

Filter
Month: Year:
Post Summaries Back to Blog
Streams are an essential programming construct that facilitate the movement of data between objects and services without manual iteration, making them popular in platforms such as Twitter, NodeJS, Java 8, and RSS feeds. The text discusses how streams can be used in NodeJS to handle real-time data, exemplified by streaming tweets containing specific hashtags into a PubNub channel for purposes like archiving, distribution, or visualization. By subclassing NodeJS's Readable and Writable streams, custom streams such as LogStream and NDJSONOutStream can be created to log tweets to the console or write them to disk in Newline Delimited JSON format. Furthermore, tweets can be streamed into PubNub channels using a PubNubOutStream, which allows for real-time data processing and visualization through platforms like the PubNub Debug Console. This approach highlights the flexibility and power of streams in handling dynamic data flows, with potential future enhancements through integration with PubNub BLOCKS for additional functionality.
Apr 14, 2016 2,296 words in the original blog post.
The Internet of Things (IoT) involves rapidly creating connected devices, applications, and services, with software and hardware engineers playing integral roles in developing prototypes. Using tools like the Arduino Uno and the Johnny-Five robotics framework, which allows hardware programming in JavaScript, developers can quickly build IoT prototypes. This tutorial demonstrates streaming sensor values from an Arduino microcontroller to a live dashboard, enabling real-time device monitoring and control via PubNub's APIs. These APIs facilitate real-time global streaming of sensor data, while Project EON, an open-source JavaScript framework by PubNub, allows real-time charting and mapping of this data. The convergence of JavaScript with hardware simplifies the exploration of IoT for software developers, encouraging them to venture into this interconnected technology landscape.
Apr 07, 2016 392 words in the original blog post.