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 <ESP8266WiFi.h> // Library for WiFi | |
#include <ESP8266WebServer.h> // Library for the web server | |
#include <ArduinoJson.h> // Library for JSON processing | |
#include <OneWire.h> // Library for DS18B20 sensor | |
#include <DallasTemperature.h> // Library for DS18B20 sensor | |
#include "credentials.h" // File with WiFi credentials | |
// Network Configurations | |
IPAddress ip(192,168,0,102); // Set the board's IP configuration | |
IPAddress gateway(192,168,0,1); |
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 <ESP8266WiFi.h> // Library for WiFi | |
#include <OneWire.h> // Library for DS18B20 sensor | |
#include <DallasTemperature.h> // Library for DS18B20 sensor | |
#include <Adafruit_MQTT.h> // MQTT client | |
#include <Adafruit_MQTT_Client.h> // MQTT client | |
#include "credentials.h" | |
// Content - credentials.h ########################################################## | |
// ################################################################################### | |
// WiFi Credentials | |
// #define WLAN_SSID "YOUR SSID" |
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/python | |
import os | |
import re | |
import subprocess | |
import time | |
import pyodbc | |
try: | |
response = subprocess.Popen('/usr/local/bin/speedtest-cli', shell=True, stdout=subprocess.PIPE).stdout.read() |