<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>smart plug - THINGS IO | Low-code data koppelen vanuit Groningen</title>
	<atom:link href="https://things.io/tag/smart-plug/feed/" rel="self" type="application/rss+xml" />
	<link>https://things.io</link>
	<description>Low-code koppelen van data</description>
	<lastBuildDate>Tue, 19 Dec 2023 06:47:44 +0000</lastBuildDate>
	<language>nl-NL</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Nieuwe order, verse koffie graag!</title>
		<link>https://things.io/nieuwe-order-verse-koffie-graag/</link>
					<comments>https://things.io/nieuwe-order-verse-koffie-graag/#respond</comments>
		
		<dc:creator><![CDATA[Hans Blaauw]]></dc:creator>
		<pubDate>Thu, 19 Aug 2021 13:27:30 +0000</pubDate>
				<category><![CDATA[Business Process Automation]]></category>
		<category><![CDATA[Dutch]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[Innovate]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[nieuwe orders]]></category>
		<category><![CDATA[shelly cloud]]></category>
		<category><![CDATA[slimme lamp]]></category>
		<category><![CDATA[smart plug]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">http://things.io.transurl.nl.transurl.nl/site/?p=8674</guid>

					<description><![CDATA[<p>Ik laat je zien hoe je in plaats van een saaie email melding voor een nieuwe order ook iets met IOT kan doen.</p>
<p>The post <a href="https://things.io/nieuwe-order-verse-koffie-graag/">Nieuwe order, verse koffie graag!</a> first appeared on <a href="https://things.io">THINGS IO | Low-code data koppelen vanuit Groningen</a>.</p>]]></description>
										<content:encoded><![CDATA[<section class="wp-block-uagb-section uagb-section__wrap uagb-section__background-undefined uagb-block-d589cdb8"><div class="uagb-section__overlay"></div><div class="uagb-section__inner-wrap">

<section class="wp-block-uagb-section uagb-section__wrap uagb-section__background-undefined uagb-block-3786dd56"><div class="uagb-section__overlay"></div><div class="uagb-section__inner-wrap">

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">

<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">

<h2 class="wp-block-heading">Wat is IOT?</h2>


<p>IOT is letterlijk vertaald &#8220;Internet of Things&#8221;. Dit is het vakgebied waar apparaten live op het Internet zijn aangesloten om of te voorzien in onze informatiebehoefte of dingen aan te sturen.</p>


<h3 class="wp-block-heading">Wat heeft dat te maken met mijn orders op mijn e-commerce site?</h3>


<p>Op zich niet zo heel veel maar willen we allemaal niet op een<strong> leuke manier</strong> te weten komen of er een nieuwe bestelling is geplaatst? Ik dacht het wel, zeker voor de teamspirit!</p>


<p>Een email is saai en krijgt alleen diegene die de winkel beheert in zijn mailbox. Wat nou als we dit wat leuker kunnen maken door bijvoorbeeld op kantoor een speciale lamp aan te zetten? Of misschien een luchtalarm <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>


<h3 class="wp-block-heading">Wat heb je nodig?</h3>


<p>In dit geval richt ik me op een simpele oplossing waarbij we een IOT Smart Plug gebruiken van het bedrijf Shelly. Dit bedrijf levert een mooie en betrouwbare Smartplug die je eenvoudig kunt aansturen via een app. of de Cloud.</p>


<figure class="wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/s_plug_s_x1-1000x1000-1.webp" alt="" data-id="8678" data-full-url="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/s_plug_s_x1-1000x1000-1.webp" data-link="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/?attachment_id=8678" class="wp-image-8678"></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly-plugs-1-1000x1000-1.jpg" alt="" data-id="8679" data-full-url="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly-plugs-1-1000x1000-1.jpg" data-link="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/?attachment_id=8679" class="wp-image-8679"></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly-plugs-2-1000x1000-2.jpg" alt="" data-id="8680" data-full-url="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly-plugs-2-1000x1000-2.jpg" data-link="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/?attachment_id=8680" class="wp-image-8680"></figure></li></ul><figcaption class="blocks-gallery-caption">Shelly Smartplug S</figcaption></figure>


<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">

</div>


<p>Je moet zelf even uitzoeken hoe je de Smart plugs configureert, er bestaat goede documentatie hoe dit te doen.</p>


<h4 class="wp-block-heading">Device id en authorisatie key van Shelly cloud</h4>


<p>Nadat je de Smart Plug hebt geconfigureert via de app. moet je in de <strong><a href="https://my.shelly.cloud/" target="_blank" rel="noreferrer noopener">cloud</a></strong> (of via app.) nog even wat gegevens ophalen.</p>


<h5 class="wp-block-heading">Authorisatie key</h5>


<figure class="wp-block-image size-full"><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly_cloud_key.png" alt="" class="wp-image-8684"><figcaption>Haal de key op via Security</figcaption></figure>


<h5 class="wp-block-heading">Device ID</h5>


<figure class="wp-block-image size-full"><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly_device_id.png" alt="" class="wp-image-8685"><figcaption>Noteer de device ID.</figcaption></figure>


<h4 class="wp-block-heading">Hoe krijg je dit voor elkaar?</h4>


<p>Er zijn meerdere wegen die naar Rome lijden. Grofweg heb ik twee manieren:</p>


<ul class="wp-block-list"><li>Je kunt een stukje PHP code schrijven en dat hosten op je eigen site met een webhook in WooCommerce;</li><li>Je kunt het integratieplatform <a href="https://www.integromat.com/?pc=thingsio" target="_blank" rel="noreferrer noopener sponsored nofollow"><strong>Integromat</strong></a><a href="https://www.integromat.com/?pc=thingsio"> </a>gebruiken met een webhook in WooCommerce.</li></ul>


<h4 class="wp-block-heading">Eigen code</h4>


<p>Onderstaande code werkt maar is geen perfect geschreven code. Bewaar onderstaande code in de php file &#8220;api_shelly.php&#8221; en zet dit in een map op je server.</p>


<p>Hieronder zie je de code:</p>


<pre class="wp-block-code"><code>//sample url to call on your own server
//api_shelly.php?deviceid=your_device_id&amp;turn=on
//options
turn can have values: on, off
$url='https://shelly-14-eu.shelly.cloud/device/relay/control';
	
	//turn on
	$fields = array(
		'auth_key'=&gt;'your_shelly_key',
		'turn'=&gt;urlencode($_GET["turn"]),
		'channel'=&gt;0,
		'id'=&gt;urlencode($_GET["deviceid"])
	);
	switchRelay ($fields,$url);
function switchRelay($fields,$url)
	{
		var_dump($fields);
		$fields_string = http_build_query($fields);
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL,$url);
		curl_setopt($ch,CURLOPT_POST,count($fields));
		curl_setopt($ch,CURLOPT_POSTFIELDS,$fields);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		$response = curl_exec($ch);
	}</code></pre>


<p>Je hebt nu alle ingrediënten om dit te koppelen aan nieuwe orders die via WooCommerce binnenkomen. Dit doe je in het volgende scherm. Dit scherm bereik je via de WooCommerce instellingen en dan naar het tabblad geavanceerd.</p>


<figure class="wp-block-image size-large"><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/woo_webhook_1-1024x262.png" alt="" class="wp-image-8686"></figure>


<p>Klik op Webhook toevoegen en vul de volgende gegevens in op het scherm:</p>


<p><strong>Naam</strong><br>Een naam die je de webhook wilt geven</p>


<p><strong>Status</strong><br>Kies de optie <strong>Actief</strong>.</p>


<p><strong>Onderwerp</strong><br>Kies de optie <strong>Bestelling toegevoegd</strong>.</p>


<p><strong>Aflever-URL</strong><br>Vul de locatie van het script in zoals eerder aangemaakt.</p>


<p>Klik op Webhook bedwaren en deze is actief. Elke keer als er een nieuwe bestelling is dan zal het script worden aangeroepen en de Smart Plug geactiveerd worden via de Cloud. Sluit een lamp aan en voilà.</p>

</div>

</div>


<h4 class="wp-block-heading">Via Integromat</h4>


<p>Wat mij betreft is dit de eenvoudigste manier. Je maakt een flow aan in Integromat en je koppelt deze vervolgens aan de webhook van WooCommerce.</p>


<p>Wij hebben een BluePrint klaar staan om te <a href="https:///things.io.transurl.nl/downloads/shelly_plug.json"><strong>downloaden</strong> </a>voor Integromat. Je hebt wel een betaald account nodig bij Integromat.</p>


<div class="wp-block-uagb-marketing-button uagb-marketing-btn__outer-wrap uagb-marketing-btn__align-center uagb-marketing-btn__align-text-center uagb-marketing-btn__icon-before uagb-block-0cff1f06"><div class="uagb-marketing-btn__wrap"><a href="https://www.integromat.com/?pc=thingsio" class="uagb-marketing-btn__link" target="_blank" rel="noopener noreferrer"><div class="uagb-marketing-btn__title-wrap"><div class="uagb-marketing-btn__icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"></path></svg></div><h6 class="uagb-marketing-btn__title">Integromat account</h6></div><div class="uagb-marketing-btn__prefix-wrap"><p class="uagb-marketing-btn__prefix">Wij ontvangen een kleine bijdrage voor het doorverwijzen.</p></div></a></div></div>


<p>In de Integromat flow staat de webhook in het eerste deel van de flow.</p>


<figure class="wp-block-image size-large"><img decoding="async" src="https://sites-wpthings.wovvoi.easypanel.host.transurl.nl.transurl.nl/site/wp-content/uploads/2021/08/shelly_integromat_flow-1024x520.png" alt="" class="wp-image-8689"></figure>

</div></section>


<p></p>

</div></section>



<p></p><p>The post <a href="https://things.io/nieuwe-order-verse-koffie-graag/">Nieuwe order, verse koffie graag!</a> first appeared on <a href="https://things.io">THINGS IO | Low-code data koppelen vanuit Groningen</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://things.io/nieuwe-order-verse-koffie-graag/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
