This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Feb 24 16:52:20 2018 | |
Realiza a captura das notícias do site do G1/ES e insere no banco de dados | |
MySQL | |
https://dcalixtoblog.wordpress.com | |
@author: calixto | |
""" | |
#importações |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
PHP WEBTEMP v1.0 | |
Este código realiza a leitura da temperatura através do pino A8 do Arduino Mega 2560 | |
e através do shield Ethernet realiza a persistência da temperatura coletada, aliado | |
a um script PHP que realiza exibição dos dados. | |
Desenvolvido por Deividson Calixto da Silva. | |
BLOG: https://dcalixtoblog.wordpress.com | |
Agradecimento ao Dr. Charles A. Bell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
PHP WEBTEMP v1.0 | |
Este código realiza a leitura da temperatura através do pino A8 do Arduino Mega 2560 | |
e através do shield Ethernet realiza a persistência da temperatura coletada, aliado | |
a um script PHP que realiza exibição dos dados. | |
Desenvolvido por Deividson Calixto da Silva. | |
BLOG: https://dcalixtoblog.wordpress.com'; | |
--> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `historico_temp` ( | |
`id_historico_temp` int(11) NOT NULL AUTO_INCREMENT, | |
`sala` varchar(45) DEFAULT NULL, | |
`temperatura` int(11) DEFAULT NULL, | |
`data` datetime DEFAULT NULL, | |
PRIMARY KEY (`id_historico_temp`) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Protótipo de Fechadura Eletrônica Simples(Sem gerenciamento via rede) | |
autor: Deividson Calixto da Silva | |
*/ | |
#include | |
#include | |
#include | |
#include | |
#include | |
#include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: AnalysIR | |
Revision: 1.0 - Initial release | |
Revision: 1.1 - update generic digitalPinToInterrupt to support most arduino platform | |
This code is provided to overcome an issue with Arduino IR libraries | |
It allows you to capture raw timings for signals longer than 255 marks & spaces. | |
Typical use case is for long Air conditioner signals. | |
You can use the output to plug back into IRremote, to resend the signal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Projeto: Automação de Ar condicionado, utilizando sensor eletrônico de Temperatura LM35 e um Emissor de Infra-Vermelho. | |
* Garante que Ar condicionado retorne ligar após uma queda de força elétrica, através do controle de Temperatura do ambiente. | |
* Bibliotecas utilizadas: 1)para envio do código RAW: IRemote encontrada no site: https://github.com/shirriff/Arduino-IRremote | |
* 2)para leitura do sinal: Fora utilizado o Algoritmo encontrado no site abaixo: | |
* http://www.analysir.com/blog/wp-content/uploads/2014/03/Arduino_Record_Long_AirConditioner_Infrared_Signals_10.txt | |
* | |
* | |
* Autor: Deividson Calixto da Silva email: deividsoncs[A][g]mail[.]com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h:panelGroup id="pnl_captcha" rendered="#{comunitarioBean.captchaVisivel}"> | |
<div class="row center"> | |
<p:graphicImage id="img_captcha" value="#{captchaBean.captcha}" cache="false" style="border-radius: 10px"/> | |
<p:commandButton class="oButton" icon="ui-icon-refresh" process="@this" update="img_captcha" title="Atualiza imagem do captcha!"/> | |
<p:inputText id="it_captcha" value="#{comunitarioBean.captcha}" style="max-width: 85px"> | |
<p:ajax process="@this" partialSubmit="true" update="@this"/> | |
</p:inputText> | |
<p:watermark for="it_captcha" value="Digite aqui!"/></div> | |
<div class="row center"> | |
<small style="font-weight: bold; color: #000">obs.: Digite os caracteres da imagem acima!</small></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dint.util.ManageBean; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.GradientPaint; | |
import java.awt.Graphics2D; | |
import java.awt.RenderingHints; | |
import java.awt.image.BufferedImage; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.Serializable; |