Cloud Based Brownie Points System for the kids

It sparked from a conversation with Emma about how she and Ethan ought to receive a decent present from Santa this Christmas. I’ve had plenty of ideas in the past on how to track merits and demerits ranging from a whiteboard stuck to the fridge or bomb shelter door to a Google Assistant enabled method of populating a shared Google Sheet with awards and deductions. The Google Assistant method was close but there were limitations so I never got to complete that. Emma suggested the whiteboard method but I wasn’t keen to have an exposed whiteboard that is prone to “hacking” (modification) of scores when I’m out so I told her that I’d build something by the next day. I spent the entire night and the wife was very annoyed with me being still up at 5am while the kids rolled around restlessly without my presence in bed.

So let’s start with the requirements

  • Must be able to track points for 2 kids (Emma and Ethan)
  • Must be cloud-based so that multiple parents/guardians can have access to award/deduct points anytime, anywhere, with everything synchronised perfectly
  • Must be able to award / deduct points easily without fuss
  • Must have a real-time “dashboard” for the kids to check their scores at anytime from their iPads

After some considerations, I’ve chosen to build the web app in PHP, mySQL and javascript. Yes, yes, that’s a rather ancient stack but I’m not a fulltime developer and that was what I used to tinker with. I even had to deal with mysql_connect() being deprecated since PHP version > 5 – that shows how long it has been since I last touched this. Killed brain cells reading up on the newer PDO_MySQL extension and using jquery/ajax to make the experience more seamless.

For the admin portal (for parents to award/deduct points), I had to make sure that:

  • On document load, fetch Emma and Ethan’s current scores and populate them in the input form fields as shown in the screenshot
  • On any change to the fields, either via the -/+ buttons or editing the score directly in the input, the score in the input field will be sent to a separate PHP script along with the new score and for whom the score is meant for.
  • Check that mySQL returns an affected row count of >0 (technically it must be “1” for success modification of 1 record)
  • Every 3 seconds, Javascript will query the DB for the latest scores and update the input field element values (in case the other parent updated the score from another device). This is to reduce race condition though this implementation is really not full proof.
Howard's Cloud based brownie / star point merit system for kids
The admin portal. I’m obviously not a designer. Sorry!

For the kids’ dashboard,

  • Visually pleasing, fancy way of displaying the 2 scores
  • Javascript updates score every 2 seconds by calling the DB for the latest scores (Yes, yes, going to get judged for doing such polling but hey, it’s a private project and polling only happens if the dashboard is running).
Howard's Cloud Based Brownie / Stars merit points system for kids
Creating the background of the dashboard
Howard's Cloud Based Brownie / Stars merit points system for kids
What the kids will see

I also took pictures of the kids in order to use them for the dashboard. What a tiring day!

Sorry that I won’t be releasing the source codes as I deem myself as a sloppy, amateur coder. I, however, hope to inspire you guys out there to find creative ways to engage your kids!

Feel free to share your comments or feedback!

Choo Choo Train @ Kallang Wave Mall 2021

We took the kids (@doubleetoh) to Kallang Wave Mall for lunch and to get some groceries as we’re going to have a small steamboat lunch for Mother’s Day the next day. After lunch, we brought the kids to get their Zoomoov fix. We also gave in to their request for the Choo Choo Train ride as well. We used to pay $6 per kid but they seem to have switched their ticketing mechanics. A $6 ticket allows for 2 pax be it a child + parent or child + child. Since Emma and Ethan can already ride on their own, we spent $12 and that gave them 2 rounds of train ride together! They are also running a promotion now where each $6 ride ticket comes with a free gift! When do you receive the gift? During the ride, there will be a “pit stop” at Paco FunWorld where a man will come out with a box for the child to select his/her gift! Super cool and such a great deal!

Why it is better to order Sambucol Black Elderberry Syrup from iHerb

Sambucol, Black Elderberry, For Kids Syrup, Berry Flavor, 7.8 fl oz (230 ml)

The kids keep falling sick because Emma is now in full day childcare where she gets exposed to other children who are sick in the centre. Instead of whining about parents allowing their kids to childcare sick (which is partially understandable because our work culture doesn’t allow working adults sufficient flexibility to juggle a job and stay home to look after a sick child), we decided to purchase the Sambucol Black Elderberry Syrup from iHerb.

Since many parents swore by this product’s effectiveness in reducing sick days in children, we thought of giving it a shot. There are many local retailers or marketplaces selling Sambucol products such as Lazada but since this product has a expiry date, I decided to get it from iHerb since they move their products really fast and I’ve trusted them as our kids’ supplier of probiotics and multivitamins.

Best of all, 4 bottles of this qualifies you for 5% discount, free shipping to Singapore, 5% rebate as store credits and the price is the cheapest I’ve found so far!

Description of Sambucol Black Elderberry Syrup from iHerb

  • Dietary Supplement
  • For Kids
  • Gluten Free
  • 2 Years & Older
  • Developed by Dr Madeleine Mumcuoglu
  • Scientifically Tested
  • Support Immunity
  • High Antioxidants Levels
  • Dietary Supplement
  • Supports Immune System
  • Virologist Developed
  • Great Tasting Syrup
  • 100% Drug Free
  • BDP Kosher

Saumbucol, the original Black Elderberry extract, provides strong immune system support to help you and your family stay healthy throughout the year. Sambucol Black Elderberry extract conveniently arms you with some of the best protection natural has to offer.

Developed by a world renowned virologist, Sambucol is the unique black elderberry extract that has been used in scientific studies. By using a proprietary method of extraction, only Sambucol can guarantee consistent, immune supporting properties in every serving.

Trusted by millions worldwide, Sambucol can be taken every day for continuous immune system support.

Kosher: Supervised by the Chief Rabbinate of Beth Din De Paris.

Suggested Use

Use daily for maximum benefit

For Daily Maintenance:

  • 2-3 years: Take 1 (5 mL) teaspoon daily.
  • 4-12 years: Take 2 (10 mL) teaspoons daily.

For Intensive use:

  • 2-3 years: Take 1 (5 mL) teaspoon four times daily.
  • 4-12 years: Take 2 (10 mL) teaspoons four times daily.

Other Ingredients

  • Glucose syrup, purified water, citric acid, potassium sorbate (to retard spoilage)
  • Free from gluten, dairy, soy, wheat, nuts, artificial color and flavors.
  • Quality. Safety. Reliability. The PharmaCare name guarantees that this product is produced using the highest manufacturing standards, and PharmaCare stands behind every bottle of Sambucol that your purchase. Satisfaction Guaranteed.

Warnings

  • Not suitable for children under 2 years
  • Sealed for your protection. Do not use if seal is broken or missing.
  • To preserve quality and freshness, keep tightly sealed and keep in a cool, dry place. Keep out of the reach of children.