Skip to content

Instantly share code, notes, and snippets.

@jotathebest
jotathebest / peopleCounter.py
Last active July 12, 2022 13:07
Pedestrian detector that sends people counter results to Ubidots. Libraries: OpenCV, requests, imutils
from imutils.object_detection import non_max_suppression
import numpy as np
import imutils
import cv2
import requests
import time
import argparse
import time
import base64
@jotathebest
jotathebest / UBIDOTS_FSM.cpp
Created September 21, 2017 23:41
This script is intended to explain how to send data using a Finite State Machine, FSM, to Ubidots
/****************************************
* Include Libraries
****************************************/
#include "UbidotsESPMQTT.h"
/****************************************
* Define Constants
****************************************/
#define TOKEN "...." // Your Ubidots TOKEN
#define WIFINAME "...." //Your SSID
@jotathebest
jotathebest / Ubidots TCP ESP8266.cpp
Last active July 24, 2017 20:32
This scripts sends data to Ubidots using TCP with a NodeMCU
/*************************************************************************************************
* This Example sends harcoded data to Ubidots and serves as example for users that have devices
* based on ESP8266 chips that we don't support with a library. This script is intended to send
* data through TCP
*
* This example is given AS IT IS without any warranty
*
* Made by Jose García.
*************************************************************************************************/
@jotathebest
jotathebest / ESP8266_MultipleValues_Ubidots.cpp
Created June 2, 2017 14:52
Send multiple values to Ubidots
/*************************************************************************************************
* This Example sends harcoded data to Ubidots and serves as example for users that has devices
* based on ESP8266 chips that we don't support with a library.
*
* This example is given AS IT IS without any warranty
*
* Made by Jose García.
*************************************************************************************************/
@jotathebest
jotathebest / ESP8266_Ubidots.cpp
Last active May 10, 2017 19:25
Basic example for sending data to Ubidots using ESP8266 based devices
/*************************************************************************************************
* This Example sends harcoded data to Ubidots and serves as example for users that has devices
* based on ESP8266 chips that we don't support with a library.
*
* This example is given AS IT IS without any warranty
*
* Made by Jose García.
*************************************************************************************************/
@jotathebest
jotathebest / Ubidots_PubSubClient_Example.ino
Last active March 20, 2021 08:02
This script is a basic example for sending data to Ubidots using the PubSubClient library. It is useful for developers that want to make their own libraries to connect their devices.
/****************************************
* Include Libraries
****************************************/
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <stdio.h>