Skip to content

Instantly share code, notes, and snippets.

@tiede
tiede / keybase.md
Last active August 29, 2015 14:15
Keybase proof

Keybase proof

I hereby claim:

  • I am tiede on github.
  • I am kimtiede (https://keybase.io/kimtiede) on keybase.
  • I have a public key whose fingerprint is 6F31 5244 24CE E5B0 CAD4 FE3F 3FA4 23BF F345 FBC3

To claim this, I am signing this object:

@tiede
tiede / index.php
Last active August 29, 2019 11:29
<?php
$welcomeText='<p>Hello MMA</p>';
?>
<?=$welcomeText;?>
<?php
$xmlstr = <<<XML
<?xml version='1.0' standalone='yes'?>
<questions>
<question text='Do you like beer?'>
<answer text='YES!' />
# Fetches data from https://www.energidataservice.dk/tso-electricity/elspotprices
# API documentation http://docs.ckan.org/en/latest/api/index.html#making-an-api-request
from datetime import datetime, timedelta
import time
import requests
from influxdb import InfluxDBClient
import paho.mqtt.client as mqtt
import board
import displayio
import terminalio
import time
import random
from adafruit_display_text import label
SCREEN_WIDTH = 160
SCREEN_HEIGHT = 128
import board
import displayio
import terminalio
import time
from adafruit_display_text import label
from adafruit_display_shapes.rect import Rect
from adafruit_display_shapes.circle import Circle
from adafruit_pybadger import pybadger
import random