This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |