Browsed by
Category: Programming

LED Post Box

LED Post Box

This project uses an Arduino Nano to add LEDs to a post box to alert the user to when there is post in the box. An Post (Ireland’s National Mail Carrier) sell a “DeliveryBox” which is a post box that can take parcels as well as letters. The post worker puts all your post in the box and scans the box which sends you an email. However I wanted a quick visual indicator to alert me when I passed the…

Read More Read More

Preview latest WordPress posts on an external website

Preview latest WordPress posts on an external website

I wanted to embed a preview of the latest posts from this blog on my main website. The problem was that this blog runs on WordPress and my website is a custom PHP site with Bootstrap. WordPress has a built in API (wordpress-site.com/wp-json/). So I wrote a PHP script to pull the information I wanted from the API (Post Title, URL, Date and the Featured Image). To use the API you call wp-get-post.php?post=0, the post can be changed between 0,…

Read More Read More