Blogs

Objective

In this part of the project, I process the message sent by Sigfox Backend via callback. To recap, this is the message:

http://jacksonng.org/sigfox/newnotifications.php?message={data}&deviceid={device}

The job of newnotifications.php is to read the message, check who it is intended for, and send the message to the receiver's mobile device. 

Whose message is this?

Objective

Low Power Wide Area Networks (LPWAN) are making IoT engineers all over the world excited. Sigfox is an LPWAN. The ability for Sigfox to send messages without using WIFI or the 4G network, as well as the limitation of 140 uplink messages a day with payload of 12 bytes per message is a complete shift in paradigm for what you could and couldn't do with it. When I first received my Sigfox developer shield from Unabiz, I quickly went ahead to hook up several sensors to send message to the Sigfox backend.

Motivation

For a few years, I have dreamt of building my own arcade console. It has remained a dream because where I live, there's no space to build nor store one. Then I started getting interested in building desktop versions of an arcade console but the problem remains, there isn't space big enough to put it. A few months ago, I met up with an ex-student. Gavin was interested marketing Makerbuinos in Singapore. Makerbuino is a DIY handheld retro game console, by Albert Gajšak, an 18(!) year old student from Croatia who first made it available through Kickstarter

Objective

Read Part 1 here

I have updated the Pulse Sensor project to give the Pulse Receiver a GPS. 

Now the Pulse Sender (the wearable that you will strap on your wrist) will send your pulse rate to the Pulse Receiver (which you will wrap around your waist) and then, apart from learning about your pulse rate, it knows where on earth you are.

Bill-Of-Materials

I added a NEO-6M UBLOX module that I purchased from Taobao. It uses the TinyGPS++ library. 

Fritzing

How It Works

Background

The Espressolite is a ESP8266 based microcontroller and the one that I feel the most passionate about; it is built as a collaboration between Espert Pte Ltd, a Singapore company, the folks from Chiang Mai Maker Club in Thailand, and based on the popular ESP8266 chip, developed by EspressIf Systems, based in Shanghai and also founded by a Singaporean. The Espressolite is manufactured by Cytron Technologies, from Penang in Malaysia. Whenever I need to tell a story about a collaborative invention, I share about the Espressolite. 

Thanks to Google Cloud Platform's free tier and $300 credit, I have been spending more time building on GCP. As I start to call GCP home, it's time to dress it up. My objectives are as follows:

  1. Setup a web-based configuration tool. I lived through the command-line era of MS DOS in the 80s and 90s but like most people, have long gotten used to the point-and-click interface. This will help me get productive again. Webmin is free and received a nice face-lift recently.
  2. Give my VM its own domain name - GoDaddy sells them cheap for the first year. 
  3. Do SSL.

Webmin

SSH into your VM. Edit your source list:

Use Case

My buddy, Mark and I have been hanging out on supper dates for the past 18 years. Sometimes he pays first and I forget to pay him back. The reverse happens at other times. We don't trust each other to maintain an Excel file to capture the records. I mean, look, what if Mark doctors the Excel file when I am not looking. This is obviously a great candidate for blockchain - now our records becomes immutable and the history of our misspending are forever etched in the blockchain.

This is what I set out to achieve in my Go-Dutch contract:

Objective

Mahesh Murthy has an amazing tutorial to setup an Ethereum environment to develop Truffle Dapps on the Ethereum blockchain. You can read it here. Part 1 of the tutorial explains the architecture of the Ethereum platforms and lets you execute a smart contract via a simple web page that runs locally. The blockchain runs locally using testrpc.

In the second tutorial, Murthy deployed the smart contract on Ropsten, Ethereum's testnet blockchain and runs a Truffle Dapp web application to allow users to interact with the smart contract. The Dapp runs locally.

Like how new recruits in the army are required to do a few pull-ups before lunch, I make myself complete at least 2 Codility challenges a week. If nothing, it helps to keep the mind thinking algorithmically - which I believe is a good thing.

This challenge requires one to cycle through a series of numbers in an array for N times. For example, given the array A = [3,8,9,7,6], to cycle this function once, it becomes A = [6,3,8,9,7]. Notice that the last element becomes the first, and then every other element moves 1 place up. 

To cycle it twice, it becomes A = [7,6,3,8,9].

To cycle it thrice, it becomes A = [9,7,6,3,8]. 

In essence, you are removing the last element, and then moving every element up by 1 place, and then putting the last element back into the first place. 

To achieve this, I used 2 loops, one to iterate through every element in the array and moving them up, and another one to do it n times.

Can a $5-a-month virtual server run an OAuth2 Server? My virtual server has been my testbed for many IoT projects that make Web API calls to the web services that I have developed. None of these were as secure as I want them to be because I have never gone around implementing an OAuth2 server. Instead, I had mostly depended on POST with username and password to authenticate a user. This is not optimum and definitely not elegant. How do I even sleep at night!?

My $5-a-month virtual server runs PHP and MySQL, so I set out to find out if a PHP implementation of an OAuth2 server will allow me to authenticate my Web API calls. B. Shaffer's OAuth2 PHP Library is what I used: https://bshaffer.github.io/oauth2-server-php-docs/, and this is a documentation of how I did it.

What I Did

Pages