View arduino_wikipedia-twitter-bot.ino
/* The arduino version (for i.e. ESP12/ESP8266) of the python wikipedia twitter bot:
https://gist.github.com/Staubgeborener/c65184841c246a484768b4c252880fe3
https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/client-secure-examples.rst
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
WiFiClient client;
View python_wikipedia-twitter-bot.py
from twython import Twython
import urllib2
import sys
reload(sys)
sys.setdefaultencoding('utf8')
# get the keys on https://apps.twitter.com/
C_key = ""
C_secret = ""
View keybase.md

Keybase proof

I hereby claim:

  • I am staubgeborener on github.
  • I am staubgeborener (https://keybase.io/staubgeborener) on keybase.
  • I have a public key whose fingerprint is F59A 4CE2 EAB0 7CF0 C481 0007 DE73 1D14 DB3F E150

To claim this, I am signing this object:

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