<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wia on Medium]]></title>
        <description><![CDATA[Stories by Wia on Medium]]></description>
        <link>https://medium.com/@wiaio?source=rss-6bed16e1ecb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3UbGCgGnP3l_NmDDyPyvHQ.png</url>
            <title>Stories by Wia on Medium</title>
            <link>https://medium.com/@wiaio?source=rss-6bed16e1ecb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 09:30:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wiaio/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Wia announces new electricity monitoring solution in partnership with deZem and Emex Software]]></title>
            <link>https://medium.com/@wiaio/wia-announces-new-electricity-monitoring-solution-in-partnership-with-dezem-and-emex-software-63e2b1777443?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/63e2b1777443</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[electricity]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[energy]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Tue, 04 Oct 2022 07:40:50 GMT</pubDate>
            <atom:updated>2022-10-04T07:40:50.326Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The new offering provides SMEs with an all-in-one solution to easily monitor their electricity consumption in real-time at an affordable price point</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*DVvyCWvyFCJRoB1obHaq0A.png" /></figure><p>Today Wia, a leader in the IoT cloud infrastructure space, has announced Wia Energy, a new way for SMEs to start monitoring their electricity consumption across a building or entire campus so businesses can access scalable, secure and affordable real-time energy data to drive their efficiency and sustainability goals.</p><p>In an exclusive partnership for Ireland with deZem, Wia will be utilising the latest in energy monitoring technology to provide high accuracy measurements using self-powered hardware that harvests electricity from the electromagnetic field around the cables themselves — no batteries required and no maintenance after installation. The sensors can be easily installed in less than a minute by just clipping a small device around an electricity cable with zero interruption to supply. Data is then transmitted wirelessly via the long range LoRaWAN protocol to a gateway connected to the building’s existing Internet connection or independently via cellular.</p><p>The hardware will be paired with the Wia IoT Cloud which is used by IoT device manufacturers and solutions providers in Europe and the US to develop IoT solutions, rich visualisations, fleet management, rule based alerting, predictive analysis and system automation. The Wia IoT Cloud also gives businesses the ability to integrate existing smart meters, building management systems and other IoT devices to get a fully comprehensive view of how their assets are performing all in one place.</p><blockquote>“There has never been a more important time to proactively manage and understand resource consumption. Wia Energy provides businesses with a toolset to enable a comprehensive energy strategy and extensive operational intelligence helping them to reduce costs and become sustainable enterprises.”</blockquote><blockquote>Conall Laverty, Founder &amp; CEO at Wia</blockquote><h3>Sustainability &amp; ESG</h3><p>In an extension to their electricity monitoring solution, Wia is also partnering with Irish founded Sustainability and ESG reporting software provider Emex. The Emex platform easily integrates Wia’s IoT devices to deliver real time electricity readings for better understanding and management of consumption patterns and changes to deliver operational efficiencies.</p><p>“The demand for access to real time data for energy consumption and monitoring is a real challenge for companies today. Emex are thrilled to be partnering with WIA to solve this challenge by utilising IoT to automate the collection of energy data, providing real time monitoring and reporting at any interval, location, zone, or asset level.</p><blockquote>This collaboration also enhances our CarbonGo reporting solution, enabling customers to efficiently monitor carbon reduction initiatives and streamline reporting to ESG industry standards such as SASB, GRI &amp; CDP.”</blockquote><blockquote>David O’Shaughnessy, VP Product Innovation at Emex</blockquote><h3>Benefits</h3><h4>Enhanced awareness</h4><ul><li>Electricity monitors show you in real-time how much you are using so can be more aware of your usage. 75% of those with energy monitoring technology were more proactive about their usage compared to those that didn’t.</li></ul><h4>Instant savings</h4><ul><li>Instead of waiting for bills to arrive, see what you are using by the minute so you can react and make changes immediately.</li></ul><h4>Discover trends</h4><ul><li>Appliances, lighting and equipment left on overnight can lead to an extreme increase in cost. Wia Energy provides the ability to look at consumption instantaneously whilst providing the tools to dive into historic data to compare usage over days, weeks, months and even years.</li></ul><p>For more information, visit <a href="https://wia.io/energy">https://wia.io/energy</a>.</p><p>Wia is an Internet of Things company based in Dublin, Ireland. Wia enables businesses by providing scalable, secure cloud infrastructure to build and integrate any type of IoT device. The company processes 100s of millions of data points each week across a wide range of sensors including air quality, agriculture and energy. It was founded by Conall Laverty in 2016 and is backed by investors Sure Valley Ventures, Enterprise Ireland and NDRC.</p><p>deZem GmbH, German company founded in 2003, develops tools for targeted and effective energy management and energy controlling. They enhance the energy and resource management of their customers through powerful data acquisition, visualisation and analysis tools.</p><p>Emex is an ESG (Environmental, Social and Governance) and EHS (Environmental, Health &amp; Safety) management platform, purpose built to help bridge the gap between our clients’ sustainability aspirations and their effective actions. Headquartered in Dublin, Emex has offices in London, Dubai, Lviv and Chicago with a global client base across a diverse set of industries including mining, retail, banking, energy, and logistics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63e2b1777443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Struggling with your IoT strategy? Here’s 4 reasons why]]></title>
            <link>https://medium.com/@wiaio/struggling-with-your-iot-strategy-heres-4-reasons-why-78019445223d?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/78019445223d</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[sensors]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 11:15:22 GMT</pubDate>
            <atom:updated>2022-06-09T11:15:22.749Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ZdeTT1tMb9-LWWiac8Uzg.jpeg" /></figure><p>It’s 2022 and we’re only now starting to unlock the true potential of the Internet of Things. The entry to market and accessibility of the required components has been a deterrent to many businesses who whilst keen to embrace new technologies, are overwhelmed by the mammoth task that is required when deploying a new sensor based product or solution.</p><p>The IoT can be defined as a constellation of atomic sensors (“things” that do one thing very well such as monitor temperature, power, location, etc.) that are integrated and controlled over the Internet to help make lives and businesses more efficient, generate new revenue streams and to reach sustainability goals. It can be thought of as a collection of neurons that when connected together create a brain that is capable of producing datasets that can solve many of the world’s biggest challenges across any industry such as healthcare, insurance, agriculture and environment.</p><p>There are obstacles when transforming a business to utilise the IoT with key decisions having to be considered at both technical and commercial levels. Many of these issues are at the platform level, some of which include:</p><h4>Long time-to-market</h4><p>Typically it takes months, in most cases years, for an enterprise to produce a commercially ready IoT solution that they can extract value from — many don’t even reach that point. This impact on launch time puts companies at a disadvantage if a competitor is able to get its solutions out there more quickly.</p><h4>Insufficient in-house experience</h4><p>When considering to embrace the IoT, company’s have to determine their ability to design, develop, test, deploy and maintain a platform. If it’s not part of its core offering, finding the required talent and achieving a comprehensive product roadmap can be daunting.</p><h4>Hard to secure</h4><p>Meeting regulatory compliance and security requirements costs a lot of time, money and resources. Audit trails, access control, DDoS prevention and secure provisioning of devices are the fundamentals of any enterprise IoT platform — but are just the tip of the iceberg.</p><h4>Difficult to scale</h4><p>Each company adopting the IoT has to determine their willingness to provide on- going support and maintenance for the platform, meeting always changing expanding customer expectations. It’s hard to ensure a reliable, secure, scalable service with zero downtime.</p><p>In 2025, the number of IoT devices is estimated to be 75 billion (Statista) with 75% anticipated to be connected to an IoT platform (IDC). Key industries including healthcare, insurance, education, environmental and agriculture. 63% of organisations that made IoT investments think that they would obtain the expected financial returns in 3 years. (Gartner). According to an IoT Survey carried out by PwC, the biggest benefits of IoT for businesses have gained new capabilities (35%) and efficiency.</p><p>It is inevitable that every business in the world will be embracing the Internet of Things in the future. A key part of this is open eco-systems and partnerships to ensure ease of entry, reliability and flows of information through key stake holders.</p><p>To find out more about how Wia, IBM, Interxion and Sure Skills are partnering to solve this, register for the webinar on 16th June 2022 <a href="https://sureskills.zoom.us/meeting/register/tZEsd-CuqDktGtFY8IyzBb7CQ-KBOaKdMXZy">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78019445223d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using IoT Tech to help businesses return to the workplace safely]]></title>
            <link>https://medium.com/@wiaio/using-iot-tech-to-help-businesses-return-to-the-workplace-safely-a7ecaf24cc3?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7ecaf24cc3</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[smart-buildings]]></category>
            <category><![CDATA[return-to-work]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[ecr]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 14:05:00 GMT</pubDate>
            <atom:updated>2020-07-01T14:17:13.463Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The new Wia Cloud is designed to help businesses understand and monitor their building, making it a powerful tool in the effort to return to the workplace.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLPDdg2C2j99R1iuV_5jLg.jpeg" /><figcaption>The All-New Wia Cloud</figcaption></figure><p>Today, Wia has released the next iteration of the Wia Cloud, an Internet of Things platform designed to enable Real Estate, Operations and Facilities Management teams to understand the performance of their building and make data-based decisions.</p><p>This new update brings in a host of new tools and features, namely around three use cases;</p><ul><li>Occupancy and Space Utilisation</li><li>Energy Utilisation</li><li>Regulation Compliance</li></ul><h3>How it works</h3><p>Wia offers end-to-end services for a range of smart building solutions including people counting, space utilisation monitoring, energy utilisation monitoring and air-quality monitoring. To achieve this, Wia deploys a constellation of IoT devices to accurately capture data wirelessly. These devices are then connected to a secure, private IoT network. The collected data is sent to the Wia Cloud platform where it is processed and can be visualised and used to make informed operational decisions. Building operators can also set up commands and notifications based on custom triggers such as creating an alert to clean the restrooms after it has been used 40 times.</p><h3>Covid-19</h3><p>This release coincides with a significant upheaval of the commercial real estate market caused by the Covid-19 pandemic. Global lockdowns and the subsequently proposed return-to-work strategies have exposed a need for building operators to have greater understanding and control over their buildings. The new suite of tools released by Wia enables just that.</p><h3>Benefits</h3><h4>Return to work</h4><ul><li>The suite of tools offered by Wia forms an ideal solution for businesses now facing the difficult task of trying to allow their employees to return to the workplace. By using GDPR compliant people counting sensors, Wia can monitor capacity in real-time at a building, floor or room level and give office planners the information they need to ensure physical distancing and appropriate capacity.</li></ul><h4>Compliance</h4><ul><li>Wia’s compliance-focused analytics help businesses identify when certain key metrics fall below the limits set within definable guidelines, including those set by the HSA regarding Covid-19. Keep track of specific infringements like extended dwell time in a communal zone or meeting room overcapacity.</li></ul><h4>Safety &amp; Experience</h4><ul><li>Investing in solutions like space utilisation or air quality monitoring can provide reassurance for employees that their health and safety is a top priority. Wia’s smart building solutions can also improve workplace experience, improving productivity and job satisfaction which is a key factor for employees deciding whether to work from home or come into the workplace.</li></ul><p>Wia is an Internet of Things company based in Dublin. Wia enables building operators to get a holistic understanding of their space by using IoT. Founded by Conall Laverty in 2016, the company won the NDRC Investor Day prize and has subsequently secured investment from the Enterprise Ireland High Potential Startup Fund and Sure Valley Ventures.</p><p>###</p><p>If you’d like any more information, quotes or interviews, please email conall.laverty@wia.io</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7ecaf24cc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT, Long-Term Planning, & the Future of Building]]></title>
            <link>https://medium.com/@wiaio/iot-long-term-planning-the-future-of-building-c001a1b8e73f?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c001a1b8e73f</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[construction]]></category>
            <category><![CDATA[smart-cities]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[smart-buildings]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 10:43:57 GMT</pubDate>
            <atom:updated>2019-10-11T10:43:57.451Z</atom:updated>
            <content:encoded><![CDATA[<h3>Digging New Foundations for Construction — How IoT, New Stakeholder Relationships, and Long Term Planning are Changing the Future of Building</h3><p>The construction industry is ripe for disruption. While other industries have embraced the advent of digital technology, construction has fallen behind. Shielded from disruption over the last number of years by relatively inelastic demand, customer intolerance for sub-optimal output may soon force changes in the market.</p><p>This may come, as in the case with ‘classic’ disruption, in the form of new, innovative businesses that aim to displace large existing construction companies. This is not certain, however. Incumbent organisations have competitive moats that act as barriers to entry for new firms, and this offers incumbents time to find solutions to the problems in the industry. By acting decisively and being open to radical structural change, existing construction businesses can not only hold or potentially expand their market share, but they can also increase their long term profitability by improving their offering and lengthening their relationship with their customers.</p><p>Here are some of the pain points in the industry and the opportunities for innovation that they allow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*BAVH3NVtnpxU78dSqDs4YQ.png" /></figure><h3>Technology Adoption</h3><p>The most obvious area for potential improvement lies with the adoption of digital technology. Technology has been the most significant harbinger for advancement within an industry over the last 20 years, but the construction sector has remained largely untouched. Construction regularly <a href="https://hbr.org/2016/04/a-chart-that-shows-which-industries-are-the-most-digital-and-why">ranks among the ‘Least Digital’ sectors</a>, with only ‘agriculture and hunting’ labelled as less digitally advanced. There is still a heavy reliance on manual labour and mechanical technology.</p><p><a href="https://orbit.dtu.dk/en/publications/is-construction-ripe-for-disruption(72a44c05-8df2-43ef-8346-c00b08f17804).html">Studies</a> have shown that leaders in the construction sector acknowledge that other industries have benefited more from digitalization, but the lack of investment or action to rectify this discrepancy shows that there may be a sentiment of passive acceptance of the missed opportunities, rather than a realisation of the ‘<a href="https://hbr.org/2012/12/how-to-anticipate-a-burning-platform">burning platform</a>’.</p><p>Technologies such as additive manufacturing (3D Printing) and drones are exciting solutions that would allow builders to be more effective and efficient in the construction phase, but technology with longer-term focus such as Data Analytics and Building Environment Monitoring driven by the Internet of Things could have an even greater impact on the value of their offerings in the long term, which we’ll look at in a moment.</p><h3>Broken Processes</h3><p>The need for modernisation goes beyond physical tools, many of the systems and processes within the construction industry haven’t kept up with advancements in other industries. This sector has consistently struggled with internal procedures weighed down by antiquated analogue processes, disconnected communications, and disparate systems.</p><p>Project management and execution issues have led to large projects running beyond financial and time budgets with such frequency that has become a common trope. Megaprojects like airport terminals or city highways that are finished on or under budget have become the exception rather than the norm. Where there is ineffectiveness there is opportunity, and the organisational issues plaguing the construction industry are a springboard for new, more innovative businesses or ideas to rise to the top. Digital project management and communication tools are an obvious route to improvement and combining these with more unique, domain-specific technology solutions could yield significantly improved results.</p><p>One such example is worker productivity and safety monitoring. Embedded devices in equipment like hard hats or high-vis vests that contain sensors like gyroscopes, accelerometers, location and temperature sensors could greatly improve worker safety by preventing, for example, workers overheating in hot environments, or by immediately detecting if a worker suffers a significant impact like falling from a height. These technologies may also help improve worker productivity by monitoring activity and allowing better allocation of human resources. This is an important issue for the construction industry due to the low rates of productivity compared to similar industries such as manufacturing; <a href="https://www.mckinsey.com/industries/capital-projects-and-infrastructure/our-insights/reinventing-construction-through-a-productivity-revolution">Labour-productivity in construction</a> has grown at less than a third of the growth rate of manufacturing over the last 20 years.</p><h3>Misaligned Stakeholders</h3><p>Currently, stakeholder networks in the construction industry are highly fragmented and opaque. There is no natural alignment between the various actors within a project. The relationships between architects and contractors, suppliers and site managers, buyers and users etc. are murky at best, or often, at odds with each other.</p><p>Similarly, contract structures and incentives are often misaligned. Contracts typically do not include incentives for risk-sharing or innovation, and the relationship between the builder and the user ends much too early in the product life-cycle. Apart from a few contractual obligations, in most cases, the relationship between the design team and build team ends at design handover, before the construction phase even begins, and the relationship between the design &amp; build teams and the user ends when the structure is completed, however, the lifecycle of the product is just beginning and is expected to last for decades more. The discrepancy between the short-term mindset of the design and build teams and the long-term needs of the client invites a conflict of motivation and misalignment of incentives which halts the progress of the industry. This ties in with other existing structural issues within the industry like a lack of transparency.</p><p>Market dynamics in construction have remained notably informal in comparison to the more structured nature of other industries. Combined with an opaque pricing structure and information asymmetry between provider and user, this can lead to an increased potential for issues like uncompetitive pricing. Ultimately, competition drives improvement and a lack of transparency can slow an industry down. Moving forward, new or incumbent organisations may be able to derive a source of competitive advantage by introducing a greater level of operational transparency.</p><h3>Changing the Relationship</h3><p>At their core, issues of ambiguity and incentive misalignment will have to be solved by changing the nature of the relationships construction organisations have with their customers. These relationships will need to be extended beyond the construction phase and into the long-term life of the structure being built. Businesses in this industry must adjust their view of their offering from a <em>product</em> to a <em>purpose</em>; their job isn’t to build a structure, their job is to give their customers a welcoming, brand-aligned space to run their business, or to provide a warm, comforting place to live, or somewhere secure and space-efficient to store their stock etc. i.e. people don’t want drill bits, <a href="https://hbswk.hbs.edu/item/what-customers-want-from-your-products">they want ¼ inch holes.</a></p><p>A long-term or a full life-cycle focus is a primary component of that. This includes the adoption of new approaches to construction design with concepts like ‘designing for deconstruction’, providing ‘whole-life solutions’, and considering pricing in terms of ‘whole-life cost’ instead of just focusing on the construction costs. Extending a product offering beyond the construction phase with additional services powered by technology like IoT, enables the setting of mutual goals and objectives that allow for collaboration between all stakeholders.</p><p>While upon first impression, this may seem like a burden on construction businesses, this change of mindset will actually create opportunities for win-win situations for all stakeholders. Serving the entire spectrum of long term needs will increase customer satisfaction which in turn means increased loyalty. A unified solution i.e. one provider for the entire life of a building, is more cost-effective for both parties compared to a solution provided by a myriad of different organisations, which means higher potential profit margins. Long-term approaches are also generally less impactful on the environment which is good for society and future proofs against legislation like carbon taxes.</p><p>Activities like long term Structural Health Monitoring powered by embedded sensors also create opportunities to create new value for businesses by reducing business risk. Additional efficiencies can be created with IoT powered Energy Monitoring Solutions, or Occupancy Analysis. Introducing these technologies at the build stage may reduce installation costs and provide new routes of revenue for construction businesses, including options for continual revenue, while improving the offering they can provide for their users.</p><p>By embracing these new technologies, changing their mindset about the services they provide, and lengthening their relationships with customers, businesses in the construction industry can avoid being displaced by disruptive innovation, improve their value offering, and improve long term profitability.</p><h3>Get in touch</h3><p>If you want to start exploring the Internet of Things, discover applications of IoT in your industry, or develop your idea from concept to PoC to prototype and into deployment — get in touch with one of our team members by emailing <a href="http://mailto:team@wia.io/">team@wia.io</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c001a1b8e73f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT in the Market — How DSNs will change the world]]></title>
            <link>https://medium.com/@wiaio/iot-in-the-market-how-dsns-will-change-the-world-2eea074bf737?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eea074bf737</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[digital-supply-network]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[digital-supply-chain]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Wed, 25 Sep 2019 10:29:59 GMT</pubDate>
            <atom:updated>2019-09-25T10:29:59.676Z</atom:updated>
            <content:encoded><![CDATA[<h3>IoT in the Market — How DSNs will change the world</h3><p>As the story goes, a few years before the fall of the Soviet Union, Mikhail Gorbachev sent a party of diplomats over to London to see if there were any lessons or insights that the Marxist-Leninist State could learn from a Thacher-run Government. The group was welcomed warmly by their hosts, composed of British politicians, economists, and other diplomats, and they set off to see all the sights and sounds of London. After several hours, which included visits to the London School of Economics and the London Stock Exchange, one of the USSR’s key diplomats, his face furrowed in confusion, interrupted his hosts, ‘We’ve been in London for a whole day now, and there’s one thing I cannot understand. Back in Moscow, our finest minds are working on the bread supply system, and yet there are such long queues in every bakery and grocery store’. He was amazed that after spending the entire day in London, he had not seen a single bread queue. ‘Please take me to meet the person in charge of supplying bread to London. I must learn his secret’ he demanded.</p><p>Obviously, it need not be said that there was no single person or group of people responsible for bread production in London, the supply was dictated by the demand of the free market. This anecdote is told in Yuval Noah Harari’s ‘<a href="https://www.ynharari.com/book/homo-deus/">Homo Deus</a>’ as an example of the effectiveness of a market that is shaped by the decisions of a network of thousands, millions, or even billions of people as opposed to one deliberately planned by a select group. Understanding the point being made here helps us to understand the massive potential of the Internet of Things in the market.</p><p>There are several important ideas being explored in this anecdote about the role of governments, the prevalent mindset of the USSR’s leadership etc. however, the point of value I’d like to focus on is the demonstration of the <em>wisdom of crowds.</em></p><h3>Market Efficiency</h3><p>A market is efficient when it is intelligent. Similar to the complex calculations required to accurately predict the weather, trying to centrally plan a market is very, very difficult due to the sheer volume of different variables and influences at play. As opposed to a group in Moscow dedicated to the management of bread supply, capitalism allowed the free hand of the market to work away with little intervention. The market is made up of millions of decisions made by all relevant stakeholders; if a baker cannot sell their bread and it goes stale they’ll make less tomorrow, if a farmer cannot sell their grain they will grow something else, if the bread is too expensive the consumer won’t buy it and so forth. In this way, the market becomes more efficient because the constituent parties become more efficient; they can quickly adjust their behaviour based on information and feedback. There was only so much information that the ‘finest minds’ in Moscow could process compared to the distributed computational power of an entire population with their much shorter feedback loops.</p><h3>Digital Supply Networks</h3><p>The more data within a market, the more effective that market becomes.</p><p><em>Enter Digital Supply Networks</em></p><p>Digital Supply Networks (DSNs) are an evolution of the traditional value chain which incorporates the Internet of Things (IoT), robotics, big data, automation and other machine to machine (M2M) communication technologies to produce a more interconnected, agile supply chain. While sometimes thought of as just referring to digital goods, DSNs are also used for physical goods. These new approaches to operations are set to transform the traditional linear supply chain into an integrated system with multidirectional, real-time communication between nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*ZZn-kf8J4jIf0zSB" /></figure><p>Source: <a href="https://www2.deloitte.com/insights/us/en/focus/industry-4-0/transforming-government-with-digital-supply-networks.html">Deloitte</a></p><p>DSNs don’t replace the current model of the free-market but enhance and enable it to become exponentially more intelligent and efficient. They integrate information from many different sources to optimize production and distribution. Just as a decision made by the many is better than a decision made by the few, a decision made with access to an order of magnitude more information is significantly better than decisions made otherwise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*dGg_QCzriVRXDFMd" /><figcaption>Planned Market vs Free Market vs Global, Interconnected Free Market</figcaption></figure><h3>DSNs in Practice</h3><p>An interesting example of DSNs in action is found in Deloitte’s <a href="https://www2.deloitte.com/us/en/insights/focus/industry-4-0/transforming-government-with-digital-supply-networks.html">Industry 4.0 in Government</a> Report:</p><p>In a make-shift garage at a remote army base overseas, a mechanic is working on a broken-down army vehicle. The mechanic scans the QR code on the side of the vehicle to bring up the schematics of the jeep in his wrist-mounted display and can immediately identify the issue — ‘The front strut brace is broken and will need to be replaced’ he reports to his sergeant. ‘We’ll need it fixed by tonight’ his commanding officer orders.</p><p>The mechanic’s cloud-based digital assistant overhears this conversation through the microphone in his watch, which it parses together with natural languaging processing and combines it with the other background information it can gather — the scanned QR code, geographic location, the capabilities of their base etc. The digital assistant connects other sources of information too: it contacts the inventory system of the vehicle manufacturer to see if they have the part — they do but their factory is thousands of miles away, much too far to reach. The assistant manages to find one in stock at the nearest army supply depot several miles away through a contested mountainous region — closer but still too far to reach before the deadline. Finally, the assistant learns that a metal 3D printing unit arrived on based last week for testing and based on the information in its datasheet, it would be capable of producing a temporary replacement part that should last for a few days.</p><p>The digital assistant relays this information to the mechanic who takes control and puts a plan in motion. 1) A CAD file is sent to the 3D printer to produce the temporary replacement part over the next few hours. 2) An order is sent to an autonomous drone to fly to the supply depot and retrieve the permanent replacement part. 3) A restock request is sent to the manufacturer to send over more strut braces to the supply depot next week.</p><p>While possibly a bit over-dramatic, the story does illustrate the power that Digital Supply Networks can have. Each decision made is much more complex and well-informed in this example than the previous bread line example, and thus, the market is much more sophisticated. It’s worth noting too that while the narrative is fictitious, the technologies mentioned are certainly not beyond the realms of what is commercially available today.</p><p>Let’s look at an example a little closer to home. Imagine a supermarket with a supply chain that processes so much data that it can accurately predict new trends in consumer behaviour far enough in advance to adjust production and make sure stock levels will meet demand. No more perishable stock being sold below cost or wasted.</p><p>The advantages of this example aren’t solely on the business-side, the customer will also benefit. A consumer could upload his specific weekly meal plan, which has been designed to fit his specific nutritional needs and tastes, into his smart fridge. The fridge communicates with the supermarket and automatic delivery is set up for the precise amount of everything necessary for each meal. The average Irish person <a href="http://www.europarl.europa.eu/news/en/headlines/society/20170505STO73528/food-waste-the-problem-in-the-eu-in-numbers-infographic">produces over 200 kilos of food waste</a> every year. Not only would this significantly reduce waste, but deliveries could also be scheduled so that each ingredient is delivered to be used at its freshest.</p><p>While these are just two off-hand examples, the most impactful use cases are ones that have yet to be thought up. It’s impossible to know the limits of this technology as we are still in its relative infancy, but one thing that we do know is that its impact is going to be significant.</p><h3>Managing Change</h3><p>The Internet of Things and other technologies within DSNs will have a profound impact on production and the open market. While certainly a positive change, there must be conscious and deliberate efforts to manage the effects of these changes to make sure the benefits are evenly shared.</p><p>The improved efficiency of DSNs will have significant effects on competition, with companies who have the resources to create these networks standing to rise substantially ahead of those who don’t. Antitrust laws and other policies will need to be introduced by legislators to prevent market oligopolization and governments may need to further increase their role as facilitators in order to build an arena in which free and competitive trade can take place.</p><p>Another issue arising could be the reduced need for humans. Greater access to data will improve automation and thus reduce human involvement in the value chain. While some forecast that this will not replace workers, but rather enable them to do more, it’s hard to imagine this not eventually creating redundancy and will likely mean fewer people employed in industries with established DSNs. It goes without saying that this may have a significant impact on entire societies. Further research and testing of solutions like universal basic income, automation tariffs, or very high progressive taxation need to advance quickly to reduce friction in DSN adoption.</p><p>While these problems may seem intimidating, the advancement of this technology is still absolutely worthwhile. The Industrial Revolution was rallied against by the Luddites, but it led to the greatest improvement in the standard of living in human history. The same can happen again with the increased use of IoT, automation, and big data analysis in the market.</p><h3>Progress Underway</h3><p>While discussing changes of this magnitude may seem like science fiction, the use of digital supply networks is already taking place. The Internet of Things is already beginning to revolutionize things like factory production lines and transport location tracking. These changes, while still of course at smaller scales, are indicators of more significant applications to come, including use-cases that we have yet to imagine.</p><p>At Wia, we help business build and deploy Internet of Things solutions. If you want to start exploring the Internet of Things, discover applications of IoT in your industry, or develop your idea from PoC to prototype and into deployment — get in touch with one of our team members by emailing <a href="http://mailto:team@wia.io/">team@wia.io</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eea074bf737" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT in Retail — Examining the Adoption of Three Use Cases]]></title>
            <link>https://medium.com/@wiaio/iot-in-retail-examining-the-adoption-of-three-use-cases-53afb514a5cf?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/53afb514a5cf</guid>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 14:00:33 GMT</pubDate>
            <atom:updated>2019-09-03T14:00:33.518Z</atom:updated>
            <content:encoded><![CDATA[<h3>IoT in Retail — Examining the Adoption of Three Use Cases</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mc09cx40ak2Akqj8SaWjOA.jpeg" /></figure><p>Physical retail is an area which hasn’t historically been a hotbed of innovation or rapid adoption of new technology. This has made it all the more exciting over the last number of years to see the predicted rise in the use of IoT and a potential renaissance of brick and mortar stores.</p><p>But despite all the buzz, IoT has yet to take a substantial hold of the retail industry. The revolution certainly hasn’t been stopped in its tracks, but it has come slower than originally predicted. Let’s examine three significant use-cases for IoT in the retail industry — one poised for widespread adoption, one trudging through the chasm, and one that is just beginning its journey on the hype curve. For each, we can explore the reasons for their position in the technology adoption lifecycle.</p><h3>(1) In-Store Analytics — Poised for Mainstream Adoption</h3><p>In-Store Analytics is driven by connected devices like traditional cameras, passive infrared sensors, <a href="https://www.hitachivantara.com/en-us/products/iot-operations-intelligence/3d-lidar-sensor.html">Lidar</a>, or other sensors which gather data and paint an accurate, quantitative picture of the environment within a store. These data points can be used to find an array of actionable insights like heatmaps to identify dead zones, customer count over time, mean customer duration, conversion rates, etc. Peter Drucker’s ‘If you can’t measure it, you can’t improve it’ sentiment certainly applies here, so these insights are invaluable if retail managers are to effectively take action to improve these KPIs.</p><p>These concepts will be familiar to anyone with even a passing interest in digital analytics or e-commerce which is why this is a particularly interesting case study; It is an example of members within a <em>disrupted</em> industry learning from the innovations of the <em>disrupter</em>. Store managers are using analytics and iterative testing to improve user experience and conversions and in doing so are following the path of nearly every website and e-commerce store in existence. Retailers are finally beginning to reduce the information asymmetry that exists between brick and mortar stores and their online counterparts, which for many businesses, can’t come soon enough.</p><p>Unlike the other examples we’ll talk about in this article, in-store analytics technology is unlikely to suffer the cost of a long struggle through the chasm or the ‘trough of disillusionment’, as the benefits have already been established thanks to the popularity of digital data analytics. Early majority decision-makers have the reassurance of comparable successful use-cases that already exist in the e-commerce world that they can reference. Even more convincing, they themselves may already be using online data analytics and thus understand the positive impact that it can have — this technology is just an expansion onto that.</p><h3>(2) In-store Bluetooth Beacons — Trudging Through the Chasm</h3><p>Given the hype around what looked like a technology set to fundamentally change how people shopped, it’s remarkable how quickly in-store Bluetooth beacons have fallen into relative disuse. In 2013 Apple announced it’s iBeacon technology, which was met with reports detailing how it would alter the course of consumer shopping forever (see the Washington Post’s <a href="https://www.washingtonpost.com/news/innovations/wp/2014/01/07/how-ibeacons-could-change-the-world-forever/?noredirect=on">How Beacons Could Change The World</a> article). The following year Macy’s announced a roll-out of beacons to all of their US store’s following successful trials in a handful of locations.</p><p>Despite this promising initial outlook, beacons have yet to make an impact with a mainstream audience. Considering the potential this technology has, it is unlikely that it will fade away or even remain in the chasm for much longer, but considerable changes will need to occur before it can begin to find the success it was promised. There are a number of smaller reasons why beacons have failed to take hold thus far, but ultimately, the most significant is that consumers don’t <em>really</em> want to use them.</p><p>For beacons to be effective, they require a substantial amount of opt-in from the user — users have to have the store’s app downloaded, have their Bluetooth turned on, have push-notifications turned on and, in some cases, have specifically enabled beacon notifications. What does a user get in return for all this effort? Usually just a bunch of ads with an occasional discount thrown in.</p><p>Unlike the previous example, the successful implementation of this technology relies on action being taken not only from the people within the company but also external stakeholders i.e. the customers. We can see a clear mismatch here between action and incentives; both parties have to make behavioural changes but only the retailer really sees any benefit.</p><p>Retailers have yet to crack a killer application that makes shoppers want to interact with the beacons, so unless this happens, or the friction can be reduced so much that it almost no action needs to be taken by the customers, then this technology will remain rebuked mainstream audiences for the time being.</p><h3>(3) Checkout-Less Stores</h3><p>A substantial portion of mainstream media coverage of IoT tech in retail in the last year has covered these ‘stores of the future’, the most notable of which is <a href="https://www.amazon.com/b?ie=UTF8&amp;node=16008589011">Amazon Go</a>.</p><p>When a user enters an Amazon Go store, they scan a QR code on their phone to identify themselves as they walk through a turnstile. The in-store cameras then track that person, identify when they pick up and item, and charge it their amazon account, meaning the customer can simply walk out of the store — no checkout necessary. After a test run in their hometown of Seattle, Amazon has since expanded with stores in New York, San Francisco and Chicago.</p><p>While this example may seem like a great success, I’m cautious about getting swept up in the hype just yet. While certainly a shakeup to the traditional retail model, the mainstream adoption of this technology would require behaviour changes amongst a notoriously stubborn audience — the general public. Similarly to the previous use-case, we’ve noted that external action requires incentive. For mainstream consumers, the question remains to be seen as to whether or not the benefits associated with using a checkout-free store are great enough to overcome inertia.</p><p>Checkout-less stores must also overcome another obstacle, human emotion. Most consumers do not make purchasing decisions entirely rationally but instead, are motivated by a complex system of emotions and innate feelings. While potentially an improvement when shopping is viewed as merely utilitarian, stores without human workers may be viewed as unwelcoming for those seeking more experiential interactions. This could shape the direction that checkout-less stores take with sectors that revolve around rapid, low-involvement consumer buying decisions like newsagents being much more suitable for the adoption of this technology than sectors with very high-involvement consumer buying decisions such as wedding dress boutiques.</p><p>Personally, after the initial curiosity and novelty wanes, I don’t think that the marginal time savings outweigh the widely held aversion to changes in behaviour. With that being said, Amazon has a number of routes to try and motivate these actions. The most obvious is a simple one: money. There is a clear cost reduction in not having to hire checkout staff, so, in order to push this tech across the chasm, Amazon could <em>graciously</em> pass these savings over to the end consumer in the short term and gradually recoup these fees as use becomes normalized.</p><p>Again, in order to cross the chasm and avoid the trough of disillusionment, either the friction in using this technology should be reduced so much that it is negligible or the action required should become properly incentivised.</p><h3>The Fruits of Technology</h3><p>IoT is going to have a massive positive impact on the retail industry, but it doesn’t happen by accident. Retailers and technologists need to be deliberate in driving adoption into the mainstream and make sure that they thoroughly understand the motivations of their users.</p><p>Technology adoption is not a zero-sum game, benefits <em>can</em> and <em>should</em> be shared between the supply- and demand-side stakeholders. When this happens, technology is not only begrudgingly adopted but welcomed with open arms.</p><p>Have you had any experiences with these IoT use cases &amp; do you think checkout-less stores are ready to cross the chasm and get mainstream adoption? Let us know in the comments!</p><h3>About Wia</h3><p><a href="https://www.wia.io/">Wia</a> is a Dublin-based IoT startup which helps people and businesses build smart connected things. Reach out to us at team@wia.io to tell us about your next IoT project</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53afb514a5cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wia’s I’m Home Smart Button]]></title>
            <link>https://medium.com/@wiaio/wias-i-m-home-smart-button-369d7e88447d?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/369d7e88447d</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[smartphones]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Mon, 24 Jun 2019 12:14:11 GMT</pubDate>
            <atom:updated>2019-06-24T12:14:11.519Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to set up the first Wia hardware the Dot One and receive an email each time the button is pressed</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*b4Q273xqJRVxkWCq.png" /></figure><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#requirements">Requirements</a></h3><p>You will need</p><ul><li>1x <a href="https://store.wia.io/collections/frontpage/products/dot-one">Wia Dot One</a></li><li>1x <a href="https://store.wia.io/collections/frontpage/products/button-module">Wia Button Module</a></li><li>1x <a href="https://store.wia.io/products/micro-usb-cable">Micro USB cable</a></li><li>1x Mobile device, ex. Smartphone</li><li>1x <a href="https://www.wia.io/signup">Wia Cloud</a></li></ul><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#connecting-the-components">Connecting the components</a></h3><p>Insert the Button module on top of the Wia Dot One. Take care to connect the module pointing in the correct direction as shown on the picture above. You will notice that the rounded corners of the boards correspond to each other when inserted correctly.</p><p>Now connect the Wia Dot One to your computer with the micro USB cable. A solid red light should appear on the board. We are finished connecting everything we need!</p><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#configuring-your-dot-one-device">Configuring your Dot One device</a></h3><p>Follow these steps to set up your Dot One:</p><ul><li>On your smartphone, head to the App Store. Search for the Wia App and install it on your phone.</li><li>Once the app is installed, create an account or sign in and select one of your Lab spaces. Navigate to the <strong>Devices</strong> tab and click on <strong>Add Device</strong>.</li><li>Select <strong>Wia</strong> as the device manufacturer and click on <strong>Next</strong>. Select <strong>Dot One</strong> as the device model and continue. If requested by the app, press <strong>allow</strong> for <strong>Bluetooth</strong> and <strong>Location</strong> access.</li><li>Click the Scan button to begin the search for your device. You should now be able to see your device listed on the list — click on it and give complete WiFi access details so the Dot One can be controlled remotely later. Enter a name for your Dot One and head to your email — you should soon receive an invite to begin programming!</li></ul><p>That’s it configured!</p><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#programming-your-dot-one">Programming your Dot One</a></h3><p>Navigate to the <strong>Code</strong> tab on the left sidebar and select <strong>Create Code Project</strong>.</p><p>For this tutorial we demonstrate the <strong>Blocks Project</strong> feature — we recommend this option for all beginners as it is simpler and faster for our project. Wia will then translate your blocks into code for the Dot One. Feel free to select Code Project if you are more advanced and are comfortable with writing the code yourself.</p><p>You can now drag blocks onto the diagram to express what actions you would like the Dot One to perform. In this tutorial we want to send a Wia Event each time the button is pressed — later we will make the Wia Dashboard send us an email each time that the button has been pressed.</p><ol><li>Go to the <strong>Comms</strong> tab and drag the block <strong>Connect to WiFi</strong> onto your diagram.</li><li>In the <strong>Logic</strong> tab you will find an <strong>If/Do</strong> block. This allows us to express a condition. Drag this block and connect it underneath your WiFi block.</li><li>Open <strong>Wia &gt; Modules</strong> and drag the block <strong>Button Pressed</strong> onto your diagram. Connect it to the right side of the [If] word. You’re almost there!</li><li>Now in <strong>Wia &gt; Cloud</strong> drag the <strong>Create Event</strong> block and connect it just right of the <strong>Do</strong> word.</li><li>Then change the event name from “my-event” to “ButtonPressed”. Complete!</li></ol><p>You can compare your diagram with our version below. You will notice that while you were adding the blocks to the control diagram, Wia translated them in real time on the right to the code which will soon be uploaded to the Dot One.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CnK2HYK5jZojSFSs.jpg" /></figure><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#uploading-your-program">Uploading your program</a></h3><p>Still in the block editor, press on the rocket icon on the top right of the window. Select your device from the given options and hit the upload button.</p><p>When the platform confirms the code is deployed, press the <strong>Reset</strong> button — the button left of the USB cable — and wait until the LED stops flashing.</p><p>If the Dot One is still connected to the WiFi, the code will be automatically uploaded and start running automatically. That’s it!</p><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#configuring-flows---sending-emails">Configuring Flows — Sending Emails</a></h3><p>First, let’s confirm that you are receiving an event when the button is pressed. Navigate to the Wia Dashboard and select your Dot One in the <strong>Devices</strong> tab. Go to the Debugger, press the button and wait a few seconds for the event to come in. Try refreshing the page to update the list. Once the first event comes in, you can view the Event history in the <strong>Events</strong> tab. Great!</p><p>Now head to the <strong>Flows</strong> tab and create a new Flow for this project. A flow is a program which defines how the Wia platform will respond to incoming events.</p><p>Let’s start with placing the “Event Created” block. What this block allows us to do is start the flow each time that an event is created by a device. As we already sent an event previously called ButtonPressed, we select this event from the dropdown list. Next we select the device which will send the event, and press <strong>Update</strong>. This block is now ready.</p><p>The next block we want to place is found in the <strong>Action</strong> tab. We will use the <strong>Email</strong> block to specify that an email should be sent each time an event is created. After filling out all the details of the Email block, we connect the two blocks. Once you leave the Flow page, your new configuration will become active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wViv5MKBP2sv7sDH.jpg" /></figure><p>Congratulations! Your new IoT device is up and running!</p><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#troubleshooting">Troubleshooting</a></h3><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#events-send-even-when-button-is-not-pressed">Events send even when button is not pressed?</a></h3><p>Make sure the board is connected in the correct way — remember, the corners of the module and the Dot One should correspond with each other.</p><p>Make sure you are not touching the bottom of the Dot One with your fingers — you may accidentally lead to electrostatic discharge, which will impact the proper operation of the devices. Some things which can happen include resetting the device, sending a false button input or even permanently damaging the device.</p><h3><a href="https://wia.developerhub.io/dot-one/smart-button-tutorial#dot-one-device-is-not-appearing-during-scan">Dot One device is not appearing during scan?</a></h3><p>It is possible your device needs to be reconfigured to a new WiFi. Try the below steps:</p><ul><li>Hold down both buttons on the Dot One for 1 second</li><li>With the USB cable pointing towards you, release the left button and keep pressing the right button for 12 more seconds</li><li>Click on the “Refresh” button to scan for your device.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=369d7e88447d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build Your Own Security System using Android Things]]></title>
            <link>https://medium.com/@wiaio/how-to-build-your-own-security-system-using-android-things-cfa784fbcf9?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfa784fbcf9</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[android-things]]></category>
            <category><![CDATA[security-systems]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[iot-platform]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Wed, 15 Aug 2018 17:47:12 GMT</pubDate>
            <atom:updated>2018-08-15T17:47:12.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*1H1p-337UF5BQqoh.png" /></figure><p>In this tutorial, we will send an event to Wia using Android Things.</p><h3>Components</h3><ul><li>Raspberry Pi (We used a Raspberry Pi 3 Model)</li><li>PIR Sensor</li><li>USB Cable</li><li>Jumper wires</li></ul><p>You will also need Android Studio and a Wia account. <a href="https://developer.android.com/studio/">You can download the latest version of Android Studio here</a>.</p><p>Wia is a cloud platform to support your Internet of Things devices. <a href="https://dashboard.wia.io/login">You can sign up or login here</a>.</p><h3>Getting Started</h3><p>First, we need to install Android Things onto the raspberry pi. <a href="https://partner.android.com/things/console/u/0/#/">Click here</a> to go to the Android Things console, and sign in using a google account.</p><p>Create a product and choose <strong>Raspberry Pi</strong> as the <strong>SOM</strong>, name it what you like, and save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*PrAi2wqXAPNbnbR0.png" /></figure><p>You will be taken to this page. Click on your model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/0*3-O--TLFbPCiRS4a.png" /></figure><p>Click on <strong>NEW</strong> and choose <strong>Start from scratch</strong> from the drop down menu.</p><p>Name your build. Keep all of the default settings by clicking <strong>Next</strong> on each step. Then click <strong>create build</strong>.</p><p>Your build is now available for download. Download the file and choose <strong>production</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*j1Nk2JO-w1wXrfkj.png" /></figure><p>Once the file has downloaded, unzip it. The file will take a moment to expand. You will get a <strong>.img</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*1LMb7X8aRovWeKVJ.png" /></figure><h3>Burning the SD Card</h3><p>Next, burn the image to the SD card. We used Etcher to do this. <a href="https://etcher.io/">You can download Etcher here</a>.</p><p>Insert the SD card into your computer and open Etcher. Select the image we just downloaded and select the SD card, then click <strong>Flash</strong>. Then, remove the SD card from your computer and insert it into the raspberry pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*JPb89OAviHtRSb5P.png" /></figure><p>Connect the raspberry pi to an ethernet cable and use a USB to connect the raspberry pi to a 5V power source. Use an HDMI to connect the raspberry pi to a monitor and obtain the <strong>IP address.</strong> You will need the IP address later.</p><h3>Wiring the Hardware</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/0*JoJgmkLSZtWLF1Lc.png" /></figure><p>Use this diagram to help you connect the hardware:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*aNmwAMQu4hbENyBF.png" /></figure><p>Connect a USB to the raspberry pi and your computer. Connect the HDMI cable to a monitor and the raspberry pi.</p><h3>Set up your space in Wia</h3><p>If you don’t already have a Wia account, <a href="https://dashboard.wia.io/login">you can sign up here, it’s free</a>.</p><p>In the Wia dashboard, click Create a New Space. In the left sidebar, navigate to Devices and click Add Device. We used the Raspberry Pi 3 Model B. Name your device anything you like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*120D8Au20l-3tBHQ.png" /></figure><p>Once your device is added, navigate to the Configuration tab. Here you will find your device&#39;s secret key, which starts with d_sk. You will need this key later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*PuzIYpLfSa0tIcfv.png" /></figure><h3>Development</h3><p>Open Android Studio and start a new project. Fill in the required fields:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*mAUY71A359itt09M.png" /></figure><p>Click next. For the target devices, select only <strong>Android Things</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*j5LujZqhuxhqaeej.png" /></figure><p>Click next. Choose <strong>Empty Activity</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/0*QK5ERRAQRwN6rWof.png" /></figure><p>Click next and then Finish.</p><p>In the left sidebar, click Gradle Scripts &gt; build.gradle (Module: app), and enter this line of code in dependencies:</p><p>implementation &#39;io.wia:wia-android-sdk:0.3.1&#39;</p><p>Your screen should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*4f3obUvU_-y5_T18.png" /></figure><p>Now, it’s time to connect the raspberry pi to our project. You need to know the IP address of the raspberry pi for this step. In the terminal, run this command:</p><p>adb connect Your-Raspberry-Pi-IP-address)</p><p>Open Android Studio. Copy and paste this code into MainActivity.java:</p><pre><strong>import</strong> android.app.Activity;<br><strong>import</strong> android.os.Bundle;</pre><pre><strong>import</strong> android.util.Log;</pre><pre><strong>import</strong> com.google.android.things.pio.Gpio;<br><strong>import</strong> com.google.android.things.pio.PeripheralManager;<br></pre><pre><strong>import</strong> io.reactivex.Observable;<br><strong>import</strong> io.reactivex.android.schedulers.AndroidSchedulers;<br><strong>import</strong> io.reactivex.schedulers.Schedulers;<br><strong>import</strong> io.wia.Wia;</pre><pre><strong>import</strong> io.wia.WiaEvent;<br></pre><pre><strong>public</strong> <strong>class</strong> <strong>MainActivity</strong> <strong>extends</strong> <strong>Activity</strong> <strong>implements</strong> <strong>MotionsSensor</strong>.<strong>Listener</strong> {</pre><pre>    <strong>private</strong> <strong>static</strong> <strong>final</strong> String GPIO_PIN = &quot;BCM18&quot;;<br>    <strong>private</strong> PirMotionSensor motionSensor;<br>    <strong>private</strong> <strong>static</strong> <strong>final</strong> String TAG = &quot;TEST&quot;;<br>    <strong>private</strong> Gpio mGpio;</pre><pre>    @Override<br>    <strong>protected</strong> <strong>void</strong> <strong>onCreate</strong>(Bundle savedInstanceState) {<br>        <strong>super</strong>.onCreate(savedInstanceState);<br>        PeripheralManager pms = PeripheralManager.getInstance();<br>        <strong>try</strong> {<br>            mGpio = pms.openGpio(GPIO_PIN);<br>            motionSensor = <strong>new</strong> PirMotionSensor(mGpio, <strong>this</strong>);<br>            motionSensor.startup();<br>        } <strong>catch</strong> (Exception ex) {<br>            Log.d(TAG, &quot;failing&quot;, ex);<br>        }<br>        Log.d(TAG, &quot;IN ON CREATE FUNCTION.&quot;);</pre><pre>        Wia.initialize(<strong>new</strong> Wia.Configuration.Builder(<strong>this</strong>.getApplicationContext())<br>                .server(&quot;https://api.wia.io/v1&quot;)<br>                .build()<br>        );<br>        //replace this with your own device secret key <br>        Wia.accessToken(&quot;your-device-secret-key&quot;);</pre><pre>    }</pre><pre>    @Override<br>    <strong>public</strong> <strong>void</strong> <strong>onMovement</strong>() {<br>        Log.d(TAG, &quot;in onMovement&quot;);<br>        Log.d(TAG, &quot;MOVEMENT DETECTED&quot;);<br>        Observable&lt;WiaEvent&gt; result = Wia.createEvent(&quot;motion&quot;);<br>        result.subscribeOn(Schedulers.io())<br>                .observeOn(AndroidSchedulers.mainThread())<br>                .subscribe(response -&gt; {<br>                    Log.d(TAG, &quot;In onMovement function&quot;);<br>                }, error -&gt; {<br>                    Log.d(TAG, &quot;ERROR IN MOVEMENT EVENT&quot;);<br>                });<br>    }</pre><p>In the code, locate this line, around line 45 in Android Studio:</p><pre>//<strong>replace</strong> this <strong>with</strong> your own device secret <strong>key</strong> <br>        Wia.accessToken(&quot;your-device-secret-key&quot;);</pre><p>Change &quot;your-device-secret-key&quot; to your own device secret key. This can be found in the Wia Dashboard in your space &gt; device &gt; configurations. The key starts with d_sk.</p><p>In the left hand menu, navigate to App &gt; Java and right click on the package name. Choose New &gt; New Java Class and name it PirMotionSensor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*7VEipoaF7IaZSWfj.png" /></figure><p>Then, copy and paste this code into the class PirMotionSensor :</p><pre><strong>import</strong> android.util.Log;</pre><pre><strong>import</strong> com.google.android.things.pio.Gpio;<br><strong>import</strong> com.google.android.things.pio.GpioCallback;</pre><pre><strong>import</strong> java.io.IOException;</pre><pre><strong>public</strong> <strong>class</strong> <strong>PirMotionSensor</strong> <strong>implements</strong> <strong>MotionsSensor</strong> {<br>    <strong>private</strong> <strong>final</strong> Gpio bus;<br>    <strong>private</strong> <strong>final</strong> MotionsSensor.Listener listener;</pre><pre>    PirMotionSensor(Gpio bus, Listener listener) {<br>        <strong>this</strong>.bus = bus;<br>        <strong>this</strong>.listener = listener;<br>    }</pre><pre>    @Override<br>    <strong>public</strong> <strong>void</strong> <strong>startup</strong>() {<br>        <strong>try</strong> {<br>            bus.setDirection(Gpio.DIRECTION_IN);<br>            bus.setActiveType(Gpio.ACTIVE_HIGH);<br>            bus.setEdgeTriggerType(Gpio.EDGE_FALLING);<br>        } <strong>catch</strong> (IOException e) {<br>            <strong>throw</strong> <strong>new</strong> IllegalStateException(&quot;Sensor can&#39;t start&quot;, e);<br>        }<br>        <strong>try</strong> {<br>            bus.registerGpioCallback(callback);<br>        } <strong>catch</strong> (IOException e) {<br>            <strong>throw</strong> <strong>new</strong> IllegalStateException(&quot;Sensor can&#39;t register callback&quot;, e);<br>        }<br>    }</pre><pre>    <strong>private</strong> <strong>final</strong> GpioCallback callback = <strong>new</strong> GpioCallback() {<br>        @Override<br>        <strong>public</strong> <strong>boolean</strong> <strong>onGpioEdge</strong>(Gpio gpio) {<br>            listener.onMovement();<br>            <strong>return</strong> <strong>true</strong>; // True to continue listening<br>        }<br>    };</pre><pre>    @Override<br>    <strong>public</strong> <strong>void</strong> <strong>shutdown</strong>() {<br>        bus.unregisterGpioCallback(callback);<br>        <strong>try</strong> {<br>            bus.close();<br>        } <strong>catch</strong> (IOException e) {<br>            Log.e(&quot;TEST&quot;, &quot;Failed to shut down. You might get errors next time you try to start.&quot;, e);<br>        }<br>    }</pre><pre>}</pre><p>In the lefthand menu, navigate again to App &gt; Java and right click on the package name. Choose New &gt; New Java Class. In the pop-up screen, change the field Kind to Interface instead of Class. Name the interface MotionsSensor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/0*MLydPlfqieP1AKEA.png" /></figure><p>Then, copy and paste this code into the interface:</p><pre><strong>public</strong> <strong>interface</strong> <strong>MotionsSensor</strong> {<br>    <strong>void</strong> <strong>startup</strong>();</pre><pre>    <strong>void</strong> <strong>shutdown</strong>();</pre><pre>    <strong>interface</strong> <strong>Listener</strong> {<br>        <strong>void</strong> <strong>onMovement</strong>();<br>    }<br>}</pre><p>Click run and in the next screen choose Google_Iot_rpi3 as the device.</p><p>Go back to the Wia Dashboard. In the debugger tab, you can see your events appearing in real time! Each time motion is detected, and event is being sent to Wia.</p><p>To take this a step farther, you can use the Wia platform to send you a notification when motion is detected.</p><h3>Wia Flows</h3><p>In the left sidebar, navigate to Flows and add a new flow. Name it anything you like. From the Trigger tab, drag over a Create Event node. Name this node motion and select your device.</p><p>Next, in the Logic tab, drag over a run-function node. Copy and paste this code into the box:</p><pre><strong>if</strong> (input.body.name == &quot;motion&quot;) { <br>  output.body.data = &quot;motion detected&quot;; <br>}<br><strong>else</strong> {<br>  output.body.data = &quot;no motion&quot;; <br>}</pre><p>Connect the nodes by dragging the orange dots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*TozcOUPiTZ5Ff6ga.png" /></figure><p>Then, in the Action tab, drag over a Notification node. Enter &quot;Motion detected!&quot; as the message. When motion is detected, this flow will send a notification to the Wia mobile app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*9U7NmsNJcwSzY8Mo.png" /></figure><h4>PIR Sensor Sensitivity Measures</h4><p>The PIR Sensor allows you to change the Delay Time as well as the Sensitivty Level.</p><p>The PIR Sensor is a digital device. This means that it reads two values: HIGH and LOW. When the sensor detects movement, it reads HIGH. Otherwise, it reads LOW.</p><p>The Delay setting determines how long the PIR Sensor will read HIGH after it has detected a motion. The Sensitivity Sensor determines the proximity at which the PIR Sensor will register a movement. This sensor is more accurate when it is set to a lower proximity level. You can control these settings using the orange panels located directly across from the pins you used to wire your device.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfa784fbcf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect a Sigfox Sens’It to Wia]]></title>
            <link>https://medium.com/@wiaio/how-to-connect-a-sigfox-sensit-to-wia-5d15d4ee59d7?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d15d4ee59d7</guid>
            <category><![CDATA[iot-platform]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[sigfox]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Wed, 15 Aug 2018 17:41:20 GMT</pubDate>
            <atom:updated>2018-08-15T17:41:20.758Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, we will connect the Sigfox Sens’It to the Wia platform.</p><h3>Components</h3><ul><li>Wia Account. <a href="https://dashboard.wia.io/login">You can create one here</a></li><li>Sigfox Sens’It</li><li>USB to Micro USB Cable</li></ul><h3>Connect the Sens’It to the Sigfox App</h3><p>First, plug in your Sens ‘It to ensure it stays charged. Then, <a href="https://www.sensit.io/">follow this link</a> to Sigfox’s platform for the Sens ‘It. In the upper right corner, click Launch App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hy9w5mWti9_uxIC0.png" /></figure><p>Choose to Activate a Sens&#39;It. The Device ID is written on the back of the Sens&#39;It. Enter the Device ID into the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/0*3acOrT4Rv5Kw8VMe.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*PmfJuAsnQd1rM-A0.png" /></figure><p>Continue and add your location. Follow the prompts to finish activating the Sens’It.</p><h3>Get the PAC</h3><p>Once the Sens’It is activated, <a href="https://www.sensit.io/app/sensit">launch the app</a>. In the left side menu, select the name of your device. Then, in the upper right corner, select Sens&#39;It details</p><p>On the right bottom of the page, click the blue button for Get my PAC. The next display will show your PAC. You will need this later.</p><h3>Connect the Sens’It to the Sigfox Backend</h3><p><a href="https://buy.sigfox.com/activate">Follow this link</a> to register your device so you can configure it in the Sigfox backend. Enter your location and click Next.</p><p>You will be prompted to enter your Device ID and PAC. The Device ID is the number on the back of the Sens&#39;It. The PAC is the sequence we found in the last step.</p><p>Continue to the Account step and create an account. Finish and confirm.</p><p>Now, <a href="https://backend.sigfox.com/auth/login">follow this link</a> to the Sigfox backend. Enter your login details for the account you just created.</p><h3>Send events to Wia</h3><p>Wia has a Sigfox integration available, so you can connect your sigfox device to the Wia platform.</p><h3>CREATE API KEYS</h3><ul><li>In the Sigfox backend, go to Group &gt; [Your group name] &gt; API Access &gt; New</li><li>Select DEVICES_MESSAGES [R]</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2o14mz-nOY1kj6cf.png" /></figure><p>Once checked, an API login and password will be created for you.</p><h3>ADD API KEYS TO WIA</h3><ul><li>Go to the <a href="https://dashboard.wia.io/login">Wia dashboard</a>.</li><li>Open the Space dropdown, by clicking on the Space name in the top left corner, and click Settings. Select Integrations in the sidebar.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kpgtMIADAmgP0iaM.png" /></figure><ul><li>Enter your API Access Login and Password. Note: This is not the one you use to login to the Sigfox backend dashboard, it is the one you just created.</li><li>You should now see your Inbound Key for Sigfox created.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CYG9sIXOwKRCvfPg.png" /></figure><h3>SETUP YOUR SIGFOX CALLBACK</h3><ul><li>Go back to the <a href="https://backend.sigfox.com/auth/login">Sigfox backend</a></li><li>Select Device Type, then under name column of the device type list you would like to integrate</li><li>On the left, select Callbacks (If there are any Wia callbacks already there, remove them)</li><li>Click New in the top left corner to create a new callback</li><li>Select Custom Callback</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/0*shy3T4tnI6nra-eP.png" /></figure><p>Enter the values below in each of the fields:</p><ul><li>Type: DATA UPLINK</li><li>Channel: URL</li><li>Url pattern: <a href="https://api.wia.io/v1/events">https://api.wia.io/v1/events</a></li><li>Use HTTP method: POST</li></ul><p>Headers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/0*_N3rCJ-JpDDmej50.png" /></figure><ul><li>Content Type: application/json</li><li>Body: Copy and paste the text below.</li></ul><pre>{<br>  &quot;integrations&quot;:{<br>    &quot;sigfox&quot;:{<br>      &quot;id&quot;:&quot;{device}&quot;<br>    }<br>  },<br>  &quot;name&quot;:&quot;sigfoxDataUplink&quot;,<br>  &quot;data&quot;:{<br>    &quot;sigfoxData&quot;:&quot;{data}&quot;,<br>    &quot;time&quot;:&quot;{time}&quot;,<br>    &quot;duplicate&quot;:&quot;{duplicate}&quot;,<br>    &quot;snr&quot;:&quot;{snr}&quot;,<br>    &quot;station&quot;:&quot;{station}&quot;,<br>    &quot;avgSnr&quot;:&quot;{avgSnr}&quot;,<br>    &quot;lat&quot;:&quot;{lat}&quot;,<br>    &quot;lng&quot;:&quot;{lng}&quot;,<br>    &quot;rssi&quot;:&quot;{rssi}&quot;,<br>    &quot;seqNumber&quot;:&quot;{seqNumber}&quot;<br>  }<br>}</pre><p>Click OK to save the callback.</p><p>Once your device sends an event it will automatically appear in the Wia dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*mXRGTczjGNQ4ceAO.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d15d4ee59d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Smart Mailbox with Sigfox and Pycom]]></title>
            <link>https://medium.com/coinmonks/build-a-smart-mailbox-with-sigfox-and-pycom-364e272666db?source=rss-6bed16e1ecb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/364e272666db</guid>
            <category><![CDATA[sigfox]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[mail]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Wia]]></dc:creator>
            <pubDate>Wed, 18 Jul 2018 15:17:35 GMT</pubDate>
            <atom:updated>2018-08-15T17:42:29.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*POraT5Z2L6-Gu1hh.png" /></figure><p>Today we’re going to show you how to create a Sigfox mail notifier using Wia and the Pycom SiPy.</p><p>This tutorial assumes that you have already connected Sigfox to Wia if you haven’t, please click <a href="https://developers.wia.io/v1.0/docs/pycom-sipy">here</a> to find a tutorial for initial Sigfox setup and publishing data to Wia.</p><h3>Components</h3><ul><li><a href="https://pycom.io/hardware/sipy-specs/">Pycom SiPy</a></li><li><a href="https://pycom.io/product/expansion-board-3-0/">Pycom Expansion Board</a></li><li>Sigfox compatible antenna</li><li>Mobile device (iOS or Android)</li><li><a href="https://www.amazon.co.uk/ELEGOO-Ultrasonic-Raspberry-Datasheet-Available/dp/B01M0QL1F1/ref=sr_1_3?ie=UTF8&amp;qid=1531485159&amp;sr=8-3&amp;keywords=hc-sr04">HC-SR04 ultrasonic sensor</a></li></ul><h3>Setup your board</h3><ul><li>Connect the SiPy to the Expansion board. (The Pycom logos should face the same way)</li><li>Connect the Sigfox antenna to the SiPy. The connection is the small gold circle on the bottom left of the SiPy board. Simply snap the antenna in place.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sRBVxs13dQ_5dcif.png" /></figure><p>For the HC-SR04 ultrasonic sensor, you’ll need to connect the following pins to the Pycom SiPy:</p><ul><li>HC-SR0 | Pycom</li><li>Vcc -&gt; Vin</li><li>Trig -&gt; G8</li><li>echo -&gt; G7</li><li>Gnd -&gt; GND</li></ul><h3>Setup Your Project</h3><p>in Atom:</p><ul><li>Create a new folder for your project. I’m going to call mine sigfox-mailbox</li><li>In <a href="https://atom.io/">Atom</a>, go to File &gt; New Window to open a new window</li><li>Add your newly created folder by clicking File &gt; Add Project Folder and navigating to it</li><li>If the <a href="https://atom.io/packages/pymakr">Pymakr</a> plugin is not open at the bottom of your Atom window, click on the arrow on the right hand side to open it</li><li>Select Settings &gt; Project Settings. In the address field replace the value with the device name from the step above e.g. /dev/tty.usbmodemPy343431 (Mac OS X), COM3 (Windows), /dev/ttyACM0 (Linux) then save the file</li></ul><h3>Publish a sigfox Event for our mail</h3><p>We’ll need three files for our application:</p><ul><li>boot.py which is run when the device is powered up</li><li>main.py which is where our main code is</li><li>ultrasonic.py is where is our functions for obtaining distance and calibration</li></ul><p>In Atom:</p><ul><li>Right click on your project and click New File. Enter boot.py as the filename</li><li>Copy and paste the code below into the file</li></ul><pre><strong>from</strong> machine <strong>import</strong> UART<br><strong>import</strong> machine<br><strong>import</strong> os</pre><pre>uart = UART(0, baudrate=115200)<br>os.dupterm(uart)</pre><pre>machine.main(&#39;main.py&#39;)</pre><ul><li>Right click on your project and click New File. Enter main.py as the filename</li><li>Copy and paste the code below into the file</li></ul><pre><strong>import</strong> time<br><strong>import</strong> pycom<br><strong>import</strong> socket<br><strong>from</strong> network <strong>import</strong> Sigfox<br><strong>from</strong> machine <strong>import</strong> Pin, Timer<br><strong>import</strong> ultrasonic<br></pre><pre>pycom.heartbeat(<strong>False</strong>)</pre><pre>echo = Pin(Pin.exp_board.G7, mode=Pin.IN)<br>trigger = Pin(Pin.exp_board.G8, mode=Pin.OUT)<br>trigger(0)</pre><pre># Get the chronometer object<br>chrono = Timer.Chrono()</pre><pre># init Sigfox for RCZ1 (Europe)<br>sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1)<br># create a Sigfox socket<br>s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW)<br># make the socket blocking<br>s.setblocking(<strong>True</strong>)<br># configure it as uplink only<br>s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, <strong>False</strong>)<br></pre><pre>calabrated_distance = ultrasonic.calabration(chrono, trigger, echo, 1)<br>mailed_distance = 0<br><strong>while</strong> <strong>True</strong>:<br>    time.sleep(30)<br>    distance = ultrasonic.getDistance(chrono, trigger, echo)<br>    print(&quot;distance: {}, calabration: {}&quot;.format(distance, calabrated_distance))<br>    <strong>if</strong> distance &lt; calabrated_distance:<br>        <strong>if</strong> distance != mailed_distance:<br>            s.send(&#39;&#39;) # Send 1 bit<br>            print(&quot;you got mail&quot;)<br>            mailed_distance = ultrasonic.calabration(chrono, trigger, echo)</pre><ul><li>Right click on your project and click New File. Enter ultrasonic.py as the filename</li><li>Copy and paste the code below into the file</li></ul><pre><strong>from</strong> machine <strong>import</strong> Pin, Timer<br><strong>import</strong> pycom<br><strong>import</strong> time<br><strong>import</strong> socket</pre><pre><strong>def</strong> <strong>calabration</strong>(chrono, trigger, echo, led = False):<br>    <strong>if</strong> led:<br>        pycom.rgbled(0x7f0000) # red<br>    prev_distance = 0<br>    distance = getDistance(chrono, trigger, echo)<br>    print(&quot;calibration distance is {}&quot;.format(distance))<br>    count = 0<br>    <strong>while</strong> <strong>True</strong>:<br>        prev_distance = distance<br>        distance = getDistance(chrono, trigger, echo)<br>        <strong>while</strong> prev_distance == distance:<br>            count+=1<br>            print(&quot;count: {}&quot;.format(count))<br>            <strong>if</strong> count &gt; 5:<br>                <strong>if</strong> led:<br>                    pycom.rgbled(0x007f00) # green<br>                    time.sleep(1.5)<br>                    pycom.rgbled(0) # off<br>                <strong>return</strong> distance<br>            time.sleep(5)<br>            prev_distance = distance<br>            distance = getDistance(chrono, trigger, echo)<br>        <strong>else</strong>:<br>            count = 0</pre><pre><strong>def</strong> <strong>getDistance</strong>(chrono, trigger, echo):<br>    chrono.reset()<br>    trigger(1)<br>    time.sleep_us(10)<br>    trigger(0)</pre><pre>    <strong>while</strong> echo() == 0:<br>        <strong>pass</strong><br>    chrono.start()</pre><pre>    <strong>while</strong> echo() == 1:<br>        <strong>pass</strong><br>    chrono.stop()</pre><pre>    distance = chrono.read_us() / 58.0<br>    <strong>if</strong> distance &gt; 400:<br>        <strong>return</strong> -1<br>    <strong>else</strong>:<br>        <strong>return</strong> int(distance)</pre><pre>    time.sleep(1)</pre><p>Your folder structure should now look like this:</p><ul><li>ultrasonic.py</li><li>boot.py</li><li>main.py</li></ul><p>Click Upload in the Pymakr plugin at the bottom of your window in Atom and send the code to your Pycom board. Now go to the Wia dashboard and you should see data appearing in the debugger section of your dashboard.</p><p>In order for the sensor to operate correctly, it needs to calibrate the distance inside you mail box.</p><h3>CALABRATION</h3><p>To calibrate the sensor, place the sensor in the mailbox where its suits best. Power the board; when the LED on the board is red, the sensor is calibrating; once the LED flashes green, the sensor has been calibrated. The sensor needs at-least 2cm of space in order for it to operate correctly.</p><p>Now when mail is inserted into your mailbox, the distance will be reduced from the calibrated distance and the code will publish an Event via Sigfox to Wia.</p><h3>Send a Push Notification</h3><p>Now for the next step, once we recieve the Sigfox event in Wia, we will send a notification to any connected phones that there is mail. For this we need to build a Flow.</p><p>Head over to your Wia dashboard and in the Space where your Sigfox device is held. From there click on the Flow icon in the left hand menu to go your Flows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5m6RXA1jOc0WWWhl.png" /></figure><p>Now to create your Flow, you can name it whatever you like. Once you have created a Flow, you should be taken to the Flow studio.</p><p>In the Flow studio:</p><ul><li>Drag the trigger event node from the left hand side onto the canvas</li><li>Click on the node and enter sigfoxDataUplink as the event name</li><li>Enable your Sigfox Device as the event source</li></ul><p>Now we are going add a notification for the Sigfox Event so we get notified of our inbound mail. To do this, you will require the Wia mobile app. You can download it for iOS <a href="https://itunes.apple.com/us/app/wia-talk-to-your-things/id1320616870?ls=1&amp;mt=8">here</a> and Android <a href="https://play.google.com/store/apps/details?id=io.wia.wia">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mC16vmtYjCbFU4fh.png" /></figure><p>In the Flow Studio editor:</p><ul><li>Drag over a notification node and enter the following text</li></ul><pre>You&#39;ve got Mail!</pre><p>Now you should receive Sigfox data to your mobile device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x4-c7_bYRhe4vfDm.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=364e272666db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/build-a-smart-mailbox-with-sigfox-and-pycom-364e272666db">Build a Smart Mailbox with Sigfox and Pycom</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>