Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Injecting Real-time Live Weather Data into a Chat App

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
2,311
Language
English
Hacker News Points
-
Summary

The blog post introduces a serverless approach to building a chat application using PubNub BLOCKS, aiming to integrate weather information into chat messages without the need for server infrastructure. Specifically, it describes the development of an Air Traffic Control (ATC) Chat app that enables operators in different locations—such as Anchorage, Vancouver, Seattle, and Portland—to share weather data alongside regular chat messages. This functionality is achieved by intercepting chat messages, fetching weather information via the Bluemix Weather Company API, and then combining these data streams using PubNub's bi-directional channels for real-time communication. The post provides insights into the orchestration of third-party data with chat messages, highlighting the ease of deployment using BLOCKS while offering a complete source code repository on GitHub for users to explore and implement. Additionally, it encourages users to explore the new Chat Resource Center for further guidance on chat application development.