Send a Message to Pebble Watch using Android App

You can send a message from your Android app to a connected Pebble watch. We will use PebbleKit Android, the library that enables communication with Pebble. To use it, add PebbleKit to your list of dependencies in the dependencies block (add this if it does not already exist): dependencies { // … compile ‘com.getpebble:pebblekit:3.0.0’ } […]

Continue reading


PHP Function that Returns the Date for a Specific Day Between Two Given Dates

Here’s a PHP function that returns the date for a specific day between two given dates. The function takes two dates formatted as YYYY-MM-DD and creates an inclusive array of the dates between the from and to dates. function getDateForSpecificDayBetweenDates($startDate, $endDate, $weekdayNumber) { $startDate = strtotime($startDate); $endDate = strtotime($endDate); $dateArr = array(); do { if(date(“w”, […]

Continue reading