All Projects → twilio → wireless-fleet-tracker

twilio / wireless-fleet-tracker

Licence: other
Create a Twilio-powered Fleet Tracker that uses off-the-shelf components to track and log: miles driven, hours of uptime and downtime, locations, average speed, and fuel consumption.

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to wireless-fleet-tracker

Twilio Video App Ios
A collaboration application built with the Twilio Video iOS SDK
Stars: ✭ 196 (+833.33%)
Mutual labels:  twilio
plivo
This package enables to send message or OTP to any mobile.This package uses external plivo api.
Stars: ✭ 20 (-4.76%)
Mutual labels:  twilio
VaporTwilioService
Twilio API provider for all your Vapor needs
Stars: ✭ 19 (-9.52%)
Mutual labels:  twilio
Fullstackpython.com
Full Stack Python source with Pelican, Bootstrap and Markdown.
Stars: ✭ 2,667 (+12600%)
Mutual labels:  twilio
zestdb
ZestDB
Stars: ✭ 18 (-14.29%)
Mutual labels:  internet-of-things
flex-plugin-builder
Packages related to building a Twilio Flex Plugin
Stars: ✭ 69 (+228.57%)
Mutual labels:  twilio
Node Twilio
A (deprecated) Twilio helper library for node. Use the official one:
Stars: ✭ 183 (+771.43%)
Mutual labels:  twilio
messages
A python package designed to make sending messages easy and efficient!
Stars: ✭ 38 (+80.95%)
Mutual labels:  twilio
blueprint-examples
This is where you can find officially supported Cloudify blueprints that work with the latest versions of Cloudify. Please make sure to use the blueprints from this repo when you are evaluating Cloudify.
Stars: ✭ 25 (+19.05%)
Mutual labels:  blueprints
ESP32 Thing Plus
ESP32 Thing-compatible board using the WROOM module and a QWIIC connector.
Stars: ✭ 18 (-14.29%)
Mutual labels:  internet-of-things
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (+119.05%)
Mutual labels:  twilio
HomeAssistantRepository
🏡 Home Assistant on Gentoo Linux.
Stars: ✭ 26 (+23.81%)
Mutual labels:  internet-of-things
PySMS
Simple Python API that that allows you to send texts via SMTP with a best effort approach and process replies via IMAP
Stars: ✭ 19 (-9.52%)
Mutual labels:  twilio
Rooms
Ephemeral conference rooms powered by Twilio and Google App Engine
Stars: ✭ 234 (+1014.29%)
Mutual labels:  twilio
fregata
A self hosted REST API for message delivery
Stars: ✭ 19 (-9.52%)
Mutual labels:  twilio
Twilio Video App Android
A collaboration application built with the Twilio Video Android SDK
Stars: ✭ 186 (+785.71%)
Mutual labels:  twilio
apostello
sms for your church
Stars: ✭ 62 (+195.24%)
Mutual labels:  twilio
iot-workshop
A complete IoT Workshop
Stars: ✭ 42 (+100%)
Mutual labels:  internet-of-things
iot-device-management
Leveraging Ethereum blockchain platform for identity, authentication and reputation of IoT devices
Stars: ✭ 84 (+300%)
Mutual labels:  internet-of-things
iota-python
A Pure-Python implementation of IOTA node
Stars: ✭ 30 (+42.86%)
Mutual labels:  internet-of-things

Fleet Tracker Blueprint

Disclaimer: The blueprints and information made available on this page are examples only and are not to be used for production purposes. Twilio disclaims any warranties and liabilities under any legal theory (including, without limitation, breach of contract, tort, and indemnification) in connection with your use of or reliance on the blueprints. Any liabilities that arise in connection with your use of these blueprints shall solely be borne by you. By accessing and downloading these blueprints, you agree to the foregoing terms.

Problem Commercial vehicle fleet managers are required by law to track various driver and vehicle behaviors. Beyond the data logging mandated by law, there are other behaviors that employers might want to track. If they had a low-cost, reliable, and technical monitoring solution, they could remove or minimize the risks associated with their fleet management.

Solution We will create a Twilio-powered Fleet Tracker that uses off-the-shelf components to track and log: miles driven, hours of uptime and downtime, locations, average speed, and fuel consumption.

Degree of Difficulty (1-5): 2 This device requires some knowledge of the C programming language, microcontroller basics, and GPIO wiring.

What You’ll Need

Before we get started, here's a quick overview of what you'll need to build the Fleet Tracker:

Electronic Components In order to build your own Fleet Tracker, you'll need the following items:

Fleet Tracker Blueprint Development Flow

Serverless Twilio Fleet Tracker involes 3 separate development process

  • Twilio Runtime Functions
  • Angular Single Page Application
  • MultiTech Dragonfly hardware

Prebuilt Assets

If you do not want to build everything yourself, you could skip all steps related to building assets, and take artifacts and instructions from https://github.com/twilio/wireless-fleet-tracker/tree/serverless/assets directly.

Preparations

Developing Twilio Runtime Functions

Test function locally

Go to runtime directory.

$ twilio-runtime-utils.sh -c context-local.yaml run Authenticator/descriptor.yaml Authenticator/testdata/simple.yaml 
{"success":true,"username":"twilio","ttl":3600,"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6InR3aWxpby1mcGE7dj0xIn0.eyJqdGkiOiJTSzI2MzQ3MTM2N2E0OGI2Yjc4NjEyZTQyYzA5ZmFkNmI3LTE0OTUyMDQ5NDkiLCJncmFudHMiOnsiaWRlbnRpdHkiOiJ0cnVtcCIsImRhdGFfc3luYyI6eyJzZXJ2aWNlX3NpZCI6IklTYzg5NThjOGIzODNmZmM2YjhkMTc2ZmJlYmViMWE1YTkifX0sImlhdCI6MTQ5NTIwNDk0OSwiZXhwIjoxNDk1MjA4NTQ5LCJpc3MiOiJTSzI2MzQ3MTM2N2E0OGI2Yjc4NjEyZTQyYzA5ZmFkNmI3Iiwic3ViIjoiQUM3OTMzOTk2M2E5OWY0NzZlNmYwYjMyMTRhYmQ0OGE5ZCJ9.IPQ5QTkTacXaQ4YI4nifii_yrabI5Fk5gzYse8M4tT4"}

$ twilio-runtime-utils.sh -c context-local.yaml run FleetManager/descriptor.yaml FleetManager/testdata/list.yaml  

$ twilio-runtime-utils.sh -c context-local.yaml run FleetManager/descriptor.yaml FleetManager/testdata/add.yaml  

...

Deploy function

Currently twilio runtime RESTful API is not available, manual deployment process is needed. However you could follow instruction generated by the following commands:

$ twilio-runtime-utils.sh -c context-local.yaml deploy FleetManager/descriptor.yaml 

$ twilio-runtime-utils.sh -c context-local.yaml deploy Authenticator/descriptor.yaml 

Required functions

For Twilio Fleet Tracker, two functions are required:

  • Authenticator, token authentication for Admin UI
  • FleetManager, list/add/delete/genkey for vehicles

Developing Angular Single Page Application

Go to angular directory.

Run webpack dev server locally

$ npm install
$ ./node_modules/.bin/grunt dev

Build assets

$ ./node_modules/.bin/grunt build

Deploy assets to Twilio Runtime

Upload these files to Twilio Runtime assets:

$ ls -lh angular/build/assets/*.{js,html,js.map}
-rw-r--r-- 1 zmiao TWILIO\Domain Users 1.7K Aug 16 16:41 angular/build/assets/index.html
-rw-r--r-- 1 zmiao TWILIO\Domain Users  16K Aug 16 16:41 angular/build/assets/index.js
-rw-r--r-- 1 zmiao TWILIO\Domain Users  63K Aug 16 16:41 angular/build/assets/index.js.map
-rw-r--r-- 1 zmiao TWILIO\Domain Users 160K Aug 16 16:41 angular/build/assets/styles.js
-rw-r--r-- 1 zmiao TWILIO\Domain Users 343K Aug 16 16:41 angular/build/assets/styles.js.map
-rw-r--r-- 1 zmiao TWILIO\Domain Users 465K Aug 16 16:41 angular/build/assets/vendor.js
-rw-r--r-- 1 zmiao TWILIO\Domain Users 2.0M Aug 16 16:41 angular/build/assets/vendor.js.map

Developing MultiTech Dragonfly hardware

  1. Create an ARMmbed developer account
  2. Visit the Dragonfly Fleet Tracker repository
  3. Click the yellow Import into Compiler button
  4. Click the Import button

That's it! As a reminder, full instructions for this tutorial can be found in the Fleet Tracker Blueprint.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].