Skip to content

Instantly share code, notes, and snippets.

@ubergesundheit
ubergesundheit / btc-eth-dca-buy.php
Created September 19, 2017 07:54 — forked from levelsio/btc-eth-dca-buy.php
This script runs daily and "Dollar Cost Average"-buys $40 BTC and $10 ETH per day
<?
//
// [ BUY BTC & ETH DAILY ON BITSTAMP ]
// by @levelsio
//
// 2017-08-23
//
// 1) buy $40/day BTC
// 2) buy $10/day ETH
//
@ubergesundheit
ubergesundheit / cpu_temp.service
Last active November 29, 2017 19:04
Read Raspberry Pi CPU Temperature and HTTP Post systemd timer
# /etc/systemd/system/cpu_temp.service
[Unit]
Description=HTTP Post cpu temperature to endpoint
[Service]
Type=oneshot
# set your post url as normal environment variable
# should have the form https://ingress.opensensemap.org/boxes/<boxID>/<sensorID>
Environment="URL=https://ingress.opensensemap.org/boxes/<boxID>/<sensorID>"
@ubergesundheit
ubergesundheit / .block
Last active May 9, 2017 18:17
Event API Locations
license: mit
luftdaten.info an openSenseMap senden
@ubergesundheit
ubergesundheit / index.html
Last active November 26, 2016 00:22
oSeM IDW
<!DOCTYPE html>
<html>
<head>
<title>openSenseMap Turf</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/notie/dist/notie.css">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://unpkg.com/[email protected]/dist/simple-statistics.min.js"></script>
#include <rn2483.h>
#include <SoftwareSerial.h>
#define APP_EUI "70B3D57ED000042A"
#define APP_KEY "20FA476202AABBD1FCD1B91EFAEC7B98"
#define RESET D7
#define PIN_SERIAL1_TX D5
#define PIN_SERIAL1_RX D6
SoftwareSerial mySerial(PIN_SERIAL1_RX, PIN_SERIAL1_TX); // RX, TX !! labels on relay board is swapped !!
#include <rn2483.h>
#include <SoftwareSerial.h>
#define APP_EUI "70B3D57ED000042A"
#define APP_KEY "20FA476202AABBD1FCD1B91EFAEC7B98"
#define RESET D7
SoftwareSerial mySerial(D6, D5); // RX, TX !! labels on relay board is swapped !!
//create an instance of the rn2483 library,
{
"description": "Vega Lite openSenseMap",
"data": {
"url": "https://api.opensensemap.org/boxes/data?boxid=578207d56fea661300861f3b&phenomenon=TagesLeistung&separator=comma&from-date=2016-08-17",
"format": {
"type": "csv"
}
},
"mark": "line",
"encoding": {
@ubergesundheit
ubergesundheit / keybase.md
Created February 17, 2016 21:41
keybase.md

Keybase proof

I hereby claim:

  • I am ubergesundheit on github.
  • I am geraldpape (https://keybase.io/geraldpape) on keybase.
  • I have a public key whose fingerprint is 2C17 F396 7A26 B956 BE90 7727 71AB 089A D4F7 C544

To claim this, I am signing this object:

"use strict"
const BASEURL = "https://api.opensensemap.org"
const BOXES_URL = `${BASEURL}/boxes`
const SINGLE_DAY = 86400000
const SINGLE_WEEK = SINGLE_DAY * 7
let now = Date.now()