View GetRaspiStats.py
#This Script needs Python3. Original script from @funvill,
#edit (urllib and http/request support, also added gpu temperature) by @staubgeborener
#This edit allows to post raspberry pi stats on any php supported website. You could use this together with cron for example.
import os
import urllib.request, urllib.parse
# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
View esp32_promiscuousmode.c
#include "freertos/FreeRTOS.h"
#include "nvs_flash.h"
#include "lwip/err.h"
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
uint16_t offset = 0;
View ESP32_GetRSSI.c
/* ESP32 Get RSSI of packets- Promiscuous Mode
(C) 2017, Staubgeborener
https://github.com/Staubgeborener/ */
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "lwip/err.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
View HexToBinary.cpp
/* HexToBinary Headerfile
Convert Hexdata into binary
(C) 2017, Staubgeborener
https://github.com/Staubgeborener/ */
#include "HexToBinary.h"
#include <stdio.h>
#include <string.h>
HexToBinary::HexToBinary() {
View soil_moisture_esp8266.c
/* Copyright 2017 by Eric Schröder / Staubgeborener
Another soil moisture meassurement system with the esp8266.
DeepSleep Mode between 8 p.m. and 6 p.m. to safe battery power.
Time will be grabbed from the pool.ntp.org server (in this case de.pool.ntp.org);
Attention: pay attention to summer-/wintertime (boolean).
Every important step will be printed out for debugging.
WiFi has to be set up in line 16-17
Thingspeak support: The soil moisture meassurement will be sent to you thingspeak