{"id":691,"date":"2022-10-31T15:41:00","date_gmt":"2022-10-31T15:41:00","guid":{"rendered":"https:\/\/chris-stubbs.co.uk\/wp\/?p=691"},"modified":"2024-07-01T17:41:32","modified_gmt":"2024-07-01T16:41:32","slug":"building-a-queue-for-the-emf-roamer-with-the-vonage-sms-api-and-php","status":"publish","type":"post","link":"https:\/\/chris-stubbs.co.uk\/wp\/?p=691","title":{"rendered":"Building a Queue for the EMF Roamer with the Vonage SMS API and PHP"},"content":{"rendered":"\n<p>If you haven&#8217;t heard of <a href=\"https:\/\/www.emfcamp.org\/\">Electromagnetic Field (EMF) Camp<\/a>, imagine a field in the quaint English countryside, temporarily populated by 2,500 curious tech\/maker enthusiasts; fiber internet, radio masts, robotic bartenders, lasers illuminating the sky, and wild\/wacky inventions as far as the eye can see.<\/p>\n\n\n\n<p>One of these wacky inventions was the EMF Roamer, a quarter-scale wooden Tesla Cybertruck, deployed to roam around the side, controlled by anyone over the internet!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"511\" src=\"https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c.jpg\" alt=\"\" class=\"wp-image-692\" style=\"width:839px;height:auto\" srcset=\"https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c.jpg 800w, https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c-300x192.jpg 300w, https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c-768x491.jpg 768w, https:\/\/chris-stubbs.co.uk\/wp\/wp-content\/uploads\/2024\/07\/52125273707_4ab982b7a7_c-470x300.jpg 470w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n\n\n\n<p>Just allowing people to drive it line of sight wasn\u2019t good enough! Especially not in the world of the Internet of Things. Live video from a camera, along with the location on a map is streamed to the user while they have control of the roamer.<\/p>\n\n\n\n<p>A free for all in terms of control would have been a mess, so we devised a queue system. People could join the queue in their web browser and wait their turn, or provide a mobile phone number to receive an SMS when their turn is up (thanks Vonage!). The queue system is \u201cserverless\u201d, in that it does not require a dedicated server. Instead, it runs on simple shared hosting, with PHP coordinating the queue on-demand, which is stored in a MySQL database.<\/p>\n\n\n\n<p>To build a queue system for yourself, take a look at the <a href=\"https:\/\/github.com\/chrisstubbs93\/WebUserQueue\">WebUserQueue <\/a>project on my GitHub, or follow the guide on the <a href=\"https:\/\/developer.vonage.com\/en\/blog\/building-a-queue-for-the-emf-roamer-with-the-vonage-sms-api-and-php\">Vonage Developer Blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you haven&#8217;t heard of Electromagnetic Field (EMF) Camp, imagine a field in the quaint English countryside, temporarily populated by 2,500 curious tech\/maker enthusiasts; fiber internet, radio masts, robotic bartenders, lasers illuminating the sky, and wild\/wacky inventions as far as &hellip; <a href=\"https:\/\/chris-stubbs.co.uk\/wp\/?p=691\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-691","post","type-post","status-publish","format-standard","hentry","category-hacky-racers"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=691"}],"version-history":[{"count":1,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/691\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/691\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chris-stubbs.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}