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
/* | |
* Trafik Yoğunluğu | |
* Biga İmam Hatip Ortaokulu | |
* | |
* Proje Öğrencileri | |
* İsmail Eray Karaman | |
* Alperen Çakmak | |
* | |
*/ | |
// Sensörleri bir sayı dizisi içine koyalım. Sensör pinleri aynı zamanda kesme pinleridir. |
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
var spawn = require('child_process').spawn; | |
temp = spawn('cat', ['/sys/class/thermal/thermal_zone0/temp']); | |
temp.stdout.on('data', function(data) { | |
console.log('Result: ' + data/1000 + ' degrees Celcius'); | |
}); |
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
var http = require("http"); | |
var fs = require("fs"); | |
var server = http.createServer(function(request, response) { | |
var temp = fs.readFileSync("/sys/class/thermal/thermal_zone0/temp"); | |
var temp_c = temp/1000; | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.write("Raspberry Pi cpu temperature: "); |
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
/* | |
* GSMSimHTTP Post analog value Example | |
* | |
* GSMSim_HTTP.ino | |
* | |
* By Erdem ARSLAN | |
* Version: v.2.0.1 | |
* | |
* The MIT License (MIT) | |
* |
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
#include <SoftwareSerial.h> | |
SoftwareSerial sim(7,8); | |
void setup() { | |
// put your setup code here, to run once: | |
sim.begin(57600); // RX 7 - TX 8 | |
Serial.begin(115200); | |
Serial.println("Basladik!"); |
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
# Scanner i2c en MicroPython | MicroPython i2c scanner | |
# Renvoi l'adresse en decimal et hexa de chaque device connecte sur le bus i2c | |
# Return decimal and hexa adress of each i2c device | |
# https://projetsdiy.fr - https://diyprojects.io (dec. 2017) | |
import machine | |
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4)) | |
print('Scan i2c bus...') | |
devices = i2c.scan() |
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
cd /usr/share/ca-certificates | |
sudo su | |
wget http://sertifika.meb.gov.tr/MEB_SERTIFIKASI.cer | |
openssl x509 -inform der -in MEB_SERTIFIKASI.cer -out MEB_SERTIFIKASI.crt | |
dpkg-reconfigure ca-certificates |
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
# Change default Pi password | |
sudo passwd pi | |
# Update and Upgrade Pi | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
# Change Servername of Pi | |
# Change TimeZone |
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
/* Config Sample | |
* | |
* For more information on how you can configure this file | |
* see https://docs.magicmirror.builders/configuration/introduction.html | |
* and https://docs.magicmirror.builders/modules/configuration.html | |
* | |
* You can use environment variables using a `config.js.template` file instead of `config.js` | |
* which will be converted to `config.js` while starting. For more information | |
* see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables | |
*/ |
OlderNewer