summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipython/mosquitto.ipynb119
1 files changed, 119 insertions, 0 deletions
diff --git a/ipython/mosquitto.ipynb b/ipython/mosquitto.ipynb
new file mode 100644
index 0000000..ac4240e
--- /dev/null
+++ b/ipython/mosquitto.ipynb
@@ -0,0 +1,119 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:7cf05771095db26c82daea63b3c748f552eaf7c87e811ca85e1b82487121dd0e"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "%matplotlib inline\n",
+ "\n",
+ "import datetime\n",
+ "\n",
+ "import matplotlib.pyplot as plt\n",
+ "import IPython.display\n",
+ "\n",
+ "import mosquitto\n",
+ "\n",
+ "\n",
+ "class UpdatingPlot:\n",
+ " \n",
+ " def __init__(self):\n",
+ " self.timestamps = []\n",
+ " self.data = []\n",
+ " self.max_len = 10\n",
+ " self.redraw_graph()\n",
+ "\n",
+ " def update(self, data):\n",
+ " self.timestamps.append(datetime.datetime.now())\n",
+ " self.data.append(data)\n",
+ " if len(self.data) > self.max_len:\n",
+ " self.timestamps = self.timestamps[-self.max_len:]\n",
+ " self.data = self.data[-self.max_len:]\n",
+ " self.redraw_graph()\n",
+ "\n",
+ " def redraw_graph(self):\n",
+ " plt.cla()\n",
+ " plt.title(\"Temperature\")\n",
+ " plt.axis(ymin=0, ymax=35)\n",
+ " plt.plot_date(self.timestamps, self.data, 'bo-')\n",
+ " IPython.display.clear_output(wait=True)\n",
+ " IPython.display.display(plt.gcf())\n",
+ "\n",
+ "\n",
+ "my_plot = UpdatingPlot()\n",
+ "\n",
+ "def on_connect(client, *args, **kwargs):\n",
+ " client.subscribe('data/#')\n",
+ "\n",
+ "def on_message(client, userdata, msg):\n",
+ " print(msg.topic+\" \"+str(msg.payload))\n",
+ " if 'here/temperature' in msg.topic:\n",
+ " try:\n",
+ " temp = float(msg.payload)\n",
+ " except ValueError:\n",
+ " temp = None\n",
+ " else:\n",
+ " my_plot.update(temp)\n",
+ " \n",
+ "client = mosquitto.Mosquitto()\n",
+ "client.on_connect = on_connect\n",
+ "client.on_message = on_message\n",
+ "\n",
+ "client.connect('inside')\n",
+ "\n",
+ "client.loop_start()\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEKCAYAAAAVaT4rAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XucFNWZ//HPwzCABAQVRLyBjggICBMvMVFx0HAx7BrN\n6kbX/FYTXZM1Dq5rNF5gHVeNiYlEJInJJmqMGi9R42pIEIKMuGqMFy4DgsggCiIIyE10uMyc3x+n\nGnqanpmeme6q6u7v+/XqF93V1VXPVBfPnHnq1DnmnENERIpHh6gDEBGRcCnxi4gUGSV+EZEio8Qv\nIlJklPhFRIqMEr+ISJFR4hcRKTJK/JIXzOwTM9saPBrM7NOk1xdEHV9bmNkKMzs96jik+HSMOgCR\nTDjnuiWem9m7wCXOuecjDKlZZlbinKtvYTUHWI73IbIXtfglr5lZBzO7zsyWmdl6M3vMzPYL3usf\n/HVwsZm9b2YbzOw7ZnaCmS0ws41mNjVpWxeb2UtmNtXMNpnZ4uQWuZn1MLN7zWy1ma0ys1vMrEPK\nZyeb2XrgJjM70syeD+JaZ2YPmVmPYP0HgcOBZ4O/Wr5nZhVmtjLl59v9V4GZVZnZE2b2oJltBi5q\nLiaRpugEkXxXCZwFjAT6AhuBn6escyJwFHA+MAW4ATgdGAL8s5mNTFl3GXAAcBPwlJn1DN77LbAD\nKAPKgTHApSmfrQUOBH6Ab83fFsQ1GDgMqAJwzv0/4H3gH5xz3Z1zP2ni50sdU+Us4A/OuR7A7zOI\nSWQvSvyS774NTHTOrXbO7QRuBs5NafXe4pzb4ZybCWwF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7NfKYj/mJDf6ATjS98fBu4OXh+NPB+pvtOiWF2G/d/B0GdDV+XS73w0gk4Ivh84sLLq/jxg4w9\nF+v6Bwf/nmCd2/F/ovfCX3hZjr/osl/S83Ydl2D/vwN+2sQxac/3UpDHJS7nS7B8Insu7p4PVAff\n2VHpjks2/i8Fxz2xrX2AOQTXP4r8nGnyuMTsnLk86bicT+OLu2nPmUweLSX9R/Bdq3bg60zfwncr\neo893Z0SV5wPBqYlffZMfO+KZcD1SctLgQfxXZfeACqa+Hxi39uDfX8z6b37gctSYs10//sDfyV9\nV6sbgvWXAGOTlie6Wi0D7k45Lp/iW3Kf4X/jJo7L88GxWg7My8ZxAU4BGoKTJ7GfxAnS3u+l0I7L\nmXE5X1LO53p867YW31Uw8Z29x56unldmGFsmx+ZY4M3g2CwArkn6fDGfM00el7icM8HyzvhSVaI7\nZ/+k974ZLH8HuCjTpO+c0w1cIiLFJhYzcImISHiU+EVEiowSv4hIkVHiFxEpMkr8IiJFRolfRKTI\nKPGLiBQZJX4RkSLz/wFpN6fB2hXLIQAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x7f21135636d8>"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#client.loop_stop()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEKCAYAAAASByJ7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XuUXGW55/HvkwsdIIEQArlAMBJgQNQFR0RGIDQiSRBO\nEMdRWZ4RFJQZNEHO6BEIDI3IxXO4mGQcXGcJGjGAKIpgJCQH0nITOEKACGJISMiFpHMjFwi5dOeZ\nP963kp1KVSddXVV7V9Xvs1ZWqnbV3u/Tu3fXU+/zvntvc3dERER6pB2AiIhkg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xq1iPP9JGOg1\nwnk6r8bfYZrH0EjCB/4fCbXrp4HJVOYYujnu5+fi+/Yq8jvLlcLyB3HLfQx1N5472PHZkxzEfXM3\n8SQHlXOzlq5g10HlYvHkjun8QeU74uMv7SaeTgeVd5cM7o07cQuhRvU1wreCt9gxZSs3uj0UmJZY\n9yzC7KB5wJWJ5b2Buwkfqi8AzfnrE2bwbIs7JtfOWYl4Ogi1vmQ8cwjfjnLxfBl4N9d+Ip4347Lc\ndK+BiXiWxn+vE7qCuXi+SJjqmqunfjcubyJ8o8p1+bYCj8eY1sQ4NxEO5rNiu+/l9kdc9gZ5UwYT\n+2h5XH8RYYBoKKEn8LG4Xm7a6SuEskBuOlx7jGdtYh+tivF3AI9VYB/lpsTNI/TsHorLfxV/lx7/\nXxrjeovwx9YRn19QxXjej/G0x/2WO4YqGc9YdhxDq9lxDKR5DL0e41lJmF56JZU7hvoTehrfICSv\neUV+ZwsInzdrEz9jJY6h7sTTRCjBrYvbHZ74fLs8/n7eiPEU+xwcQBhPKjTtNBnP6MTy5DE9KbE8\nF09u2mkynq/G5W8AF+yuA6AT00REBKjhW2iKiEh5KSGIiAighCAiIpESgoiIAEoIIiISKSGIiAig\nhCAiIpESgoiIAPD/AeW8rmSDCcmqAAAAAElFTkSuQmCC\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x7f2113441860>"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file