{"id":349,"date":"2019-09-06T13:44:27","date_gmt":"2019-09-06T17:44:27","guid":{"rendered":"https:\/\/blog.markdepalma.com\/?p=349"},"modified":"2019-09-06T13:44:27","modified_gmt":"2019-09-06T17:44:27","slug":"wordpress-visitor-counter","status":"publish","type":"post","link":"https:\/\/blog.markdepalma.com\/?p=349","title":{"rendered":"WordPress Visitor Counter"},"content":{"rendered":"\n<p>A few years ago I became interested in electronic projects. I initially started tinkering with an original Raspberry Pi that purchased when they were first introduced and later moved to micro-controllers like the Arduino and <a href=\"https:\/\/store.particle.io\/collections\/wifi\/products\/photon\">Particle Photon<\/a> (previously known as Core). My first projects were a set of Raspberry Pi thermostats and a Raspberry Pi deadbolt lock. Both of which could be remotely controlled.<\/p>\n\n\n\n<p>After creating this blog I wanted a fun way to monitor visitors while at work. I wound up throwing together a <a href=\"https:\/\/store.particle.io\/collections\/wifi\/products\/photon\">Particle Photon<\/a> I had lying around with a <a href=\"https:\/\/www.adafruit.com\/product\/878\">7-segment display<\/a> and some PHP to create this desk counter. It uses a PHP page that returns the count using a MySQL query. The PHP page is retrieved via the Photon and displayed to on the LED counter. Anything with blinky lights makes for a fun desk toy!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blog.markdepalma.com\/wp-content\/uploads\/2019\/09\/IMG_20190906_105201.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"670\" src=\"https:\/\/blog.markdepalma.com\/wp-content\/uploads\/2019\/09\/IMG_20190906_105201.jpg\" alt=\"\" class=\"wp-image-352\" srcset=\"https:\/\/blog.markdepalma.com\/wp-content\/uploads\/2019\/09\/IMG_20190906_105201.jpg 694w, https:\/\/blog.markdepalma.com\/wp-content\/uploads\/2019\/09\/IMG_20190906_105201-300x290.jpg 300w, https:\/\/blog.markdepalma.com\/wp-content\/uploads\/2019\/09\/IMG_20190906_105201-624x602.jpg 624w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/a><\/figure>\n\n\n\n<p>You can get more details (along with the code) on the project on my Hackster page here: <a href=\"https:\/\/www.hackster.io\/mark-depalma\/wordpress-visitor-counter-db3cf8\">https:\/\/www.hackster.io\/mark-depalma\/wordpress-visitor-counter-db3cf8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few years ago I became interested in electronic projects. I initially started tinkering with an original Raspberry Pi that purchased when they were first introduced and later moved to micro-controllers like the Arduino and Particle Photon (previously known as Core). My first projects were a set of Raspberry Pi thermostats and a Raspberry Pi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116,73,87,115],"tags":[120,117,118,119],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-arduino","category-development","category-iot","category-php","tag-led","tag-particle","tag-photon","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=349"}],"version-history":[{"count":5,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":355,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions\/355"}],"wp:attachment":[{"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.markdepalma.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}