Skip to content

Instantly share code, notes, and snippets.

@paulocanedo
paulocanedo / temperatura_humidade_hora-ntp.ino
Created September 11, 2019 00:43
Projeto Arduino: Temperatura, humidade (DHT22), horario NTP, LED 7SEG TM1637
# O que fazer para melhorar a eficiência energética?
# projeto: https://ibb.co/D9sMqyf
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <Arduino.h>
#include <TM1637Display.h>
<?php
echo '<pre>';
var_dump(getallheaders());
@paulocanedo
paulocanedo / update_date_time_onvif_cam.js
Created May 23, 2020 01:37
update date and time of a onvif cam
// update date and time of a onvif cam
const onvif = require('onvif');
const Cam = onvif.Cam;
onvif.Discovery.on('device', (cam) => {
new Cam(cam, function (err) {
if (err) {
console.error('Connection Failed for ', err);
return;
#!/bin/sh
#script para testar conectividade com internet, caso não tenha internet reinicia o sistema
tempo_timeout=3
tempo_espera_entre_ping=3
ip_avaliacao=8.8.8.200
while :
do
@paulocanedo
paulocanedo / .config
Created November 12, 2021 12:29
MY custom config for openwrt with nanopi r4s
#
# MY custom config for openwrt with nanopi r4s
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
CONFIG_HOST_OS_LINUX=y
# CONFIG_HOST_OS_MACOS is not set
# CONFIG_TARGET_sunxi is not set