Skip to content

Instantly share code, notes, and snippets.

@dj0001
dj0001 / noaahue.html
Last active June 10, 2018 05:21
weather warnings from NOAA on philipshue
moved to <a href="https://github.com/dj0001/DWD/blob/gh-pages/new/noaa/noaa.html">github</a>
@dj0001
dj0001 / Readme.md
Last active June 8, 2018 11:23
weather warnings from Meteoalarm on philipshue

meteoalarm-hue

light changes color for weather warnings ma

Metoalarm is a web site that provides up-to-date weather warnings for most of Europe.

API

Download the batchfile and doubleclick it.
If you use windows < win10 1803 you need to download cURL

@dj0001
dj0001 / dwdhue.bat
Last active December 14, 2018 15:17
weather warnings from DWD on philipshue
Rem DWD-Warnmodul (win10 1803), parameter addresse
@echo off
set lat=48.37& set lon=10.90
set /p lat="Enter lat(%lat%) " & set /p lon="Enter lon(%lon%) "
set bridge=http://localhost:8000/api/newdeveloper
if "%1"=="" (set /p bridge="change bridge adress(%bridge%) ") else (set bridge=%1)
set light=1
set /p light="select light(%light%) "
@dj0001
dj0001 / main.js
Last active May 21, 2018 03:27
forked from hueSimulator/public_html/js/main.js simulate bulb
$(function() {
var logError = function(response) {
$("#log").prepend("<div class='error log'>" + response.status + " " + response.statusText + "</div>");
};
$("#linkbutton").on("click", function(event) {
event.preventDefault();
$.ajax({
url: '/linkbutton'