Skip to content

Instantly share code, notes, and snippets.

@orienterare
orienterare / statusboard-pegel.php
Created January 1, 2015 22:06
Prints the current level of a measuring station to a Panic Statusboard DIY widget
<?php
#
## get the drive now json
$pegelURL = "https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/5952050.json?includeTimeseries=true&includeCurrentMeasurement=true";
$process = curl_init($pegelURL);
curl_setopt($process, CURLOPT_HEADER, false);
curl_setopt($process, CURLOPT_RETURNTRANSFER, true);
@orienterare
orienterare / DriveNow-Statusboard.php
Last active August 29, 2015 14:12 — forked from noestreich/DriveNow-Statusboard.php
Script showing free DriveNow and Car2Go vehicles in Hamburg in a specified vicinity for Panic Status Board
<?php
##config for homelocation and radius (in meter)
$myhomelat = "53.554340";
$myhomelng = "9.988971";
$myradius = "400";
## get the drive now json
$driveURL = "https://www.drive-now.com/php/metropolis/json.vehicle_filter?cit=40065";
$process = curl_init($driveURL);
curl_setopt($process, CURLOPT_HEADER, false);
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

Keybase proof

I hereby claim:

  • I am orienterare on github.
  • I am orienterare (https://keybase.io/orienterare) on keybase.
  • I have a public key whose fingerprint is 0C4D 9682 A169 2848 0681 F2F4 B8F1 7A41 41BB 2093

To claim this, I am signing this object: