<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to UbuntoCoreSample</title><link>https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample/</link><description>Recent changes to UbuntoCoreSample</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 29 Oct 2017 17:03:43 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample/feed" rel="self" type="application/rss+xml"/><item><title>UbuntoCoreSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 29 Oct 2017 17:03:43 -0000</pubDate><guid>https://sourceforge.net4b9733d3b3c49670148a6a02d897b1653b8b2a76</guid></item><item><title>UbuntoCoreSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="ubuntu-core-device"&gt;Ubuntu Core Device&lt;/h1&gt;
&lt;p&gt;This is a sample project that runs on an Ubuntu Core device, for more information or Ubuntu Core please look at &lt;a href="https://developer.ubuntu.com/en/snappy." rel="nofollow"&gt;https://developer.ubuntu.com/en/snappy.&lt;/a&gt; The sample code is written in Python and creates a random number every 5 seconds n times and sends it to the m2mlabs server.&lt;/p&gt;
&lt;h4 id="prepare-snappy-tools"&gt;Prepare Snappy Tools&lt;/h4&gt;
&lt;p&gt;Loading a snappy app to an Ubuntu Core device requires installation of the snappy tools on an Ubuntu 14 system.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;sudo add-apt-repository ppa:snappy-dev/beta&lt;/li&gt;
&lt;li&gt;sudo apt-get update&lt;/li&gt;
&lt;li&gt;sudo apt-get upgrade&lt;/li&gt;
&lt;li&gt;sudo apt-get install snappy-tools bzr&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="install-the-sample"&gt;Install the Sample&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;download the sample code from &lt;a href="http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download"&gt;http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;create a device with sensor name "tcore" and attribute name "temperature" in the m2mlabs admin GUI. How to create device models, sensor models and devices is described in the &lt;a class="" href="https://sourceforge.net/p/m2mlabs/wiki/Tutorial"&gt;Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;edit config.txt in samples/snapps/python-m2mlabs-sample/config and change server url, apikey and device name to your settings&lt;/li&gt;
&lt;li&gt;install Python on the Ubuntu Core device if it is not already installed&lt;/li&gt;
&lt;li&gt;execute "snappy build ." in the samples/snapps/python-m2mlabs-sample directory&lt;/li&gt;
&lt;li&gt;execute "snappy-remote --url=ssh://&amp;lt;address-of-your-ubuntu-core-device&amp;gt; install ./python-m2mlabs-sample_0.1_all.snap" to perform a remote download to the Ubuntu Core device. You will be asked three times for the password of the user on your Ubuntu Core device. Please ignore any warnings&lt;/li&gt;
&lt;li&gt;you can change the config data on the Ubunto Core device with "sudo vi /apps/python-m2mlabs-sample/current/config/config.txt"&lt;/li&gt;
&lt;li&gt;on the Ubunto Core device execute python-m2mlabs-sample.m2mlabs-send&lt;/li&gt;
&lt;li&gt;check if data was received on the m2mlabs admin GUI at &lt;a href="http://localhost/cs-ws:8080" rel="nofollow"&gt;http://localhost/cs-ws:8080&lt;/a&gt; or run the monitor at &lt;a href="http://localhost/cs-ws:8080/monitor.html." rel="nofollow"&gt;http://localhost/cs-ws:8080/monitor.html.&lt;/a&gt; The usage of the monitor is described in the &lt;a class="" href="https://sourceforge.net/p/m2mlabs/wiki/Tutorial-Monitor"&gt;Monitor Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 07 Mar 2015 17:47:05 -0000</pubDate><guid>https://sourceforge.nete7f595683c6ffdef357c99094b2b77ac059a42a0</guid></item></channel></rss>