This respository is a hypothetical use case implementation of air traffic control chat app (ATC-Chat) that mashes up chat messages between ATC operators with real-time weather data. It is built using IBM Bluemix Weather COmpany API and PubNub BLOCKS.
Setup Bluemix Weather Company Service and PubNub BLOCKS as follows
Bluemix weather company data api
You can try out the different options of the weather api.
Refer to this README file. Pay attention to Step 10 in block creation. This is where you will use the username and password from step 6 above.
Assuming that both the Weather Company Service and PubNub BLOCK are set up correctly and are running, make the following changes in the code.
Step 1 - Clone this repository
Step 2 - Open index.js and edit line 15 & 16 to replace the PubNub publish and subscribe keys with the ones that you used for provisioning the BLOCK.
Step 3 - Open index.html in multiple web browsers and login with any user name and ATC location.
Step 4 - Send chat messages and witness how the messages sent from one window get displayed in other chat rooms with weather information from the senders ATC location.