Skip to content

Instantly share code, notes, and snippets.

@jnachtigall
jnachtigall / rainDelay.py
Created June 6, 2024 06:01
Adding a rain delay for OpenSprinkler
# PLEASE SEE https://kevinsaye.wordpress.com/2021/07/05/adding-a-rain-delay-for-opensprinkler/
import requests
import sys
import time
import datetime
URL = "https://api.openweathermap.org/data/2.5/forecast?lat=YYY&lon=XXX&appid=SECRET"
delayURL = "https://MY_URL/cv?pw=SECRETTOO&rd="
# check every 6 hours
{
"numberAsNumber": 1,
"numberAsString": "1"
}
[16-May-2019 23:37:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /mysite/wp-content/themes/virtue_premium/lib/custom.php:240
Stack trace:
#0 /mysite/wp-includes/class-wp-hook.php(286): kt_add_search_form_to_menu('<li class="men...', Object(stdClass))
#1 /mysite/wp-includes/plugin.php(208): WP_Hook->apply_filters('<li class="men...', Array)
#2 /mysite/wp-includes/nav-menu-template.php(243): apply_filters('wp_nav_menu_ite...', '<li class="men...', Object(stdClass))
#3 /mysite/wp-content/themes/virtue_premium/templates/header-style-three.php(84): wp_nav_menu(Object(stdClass))
#4 /mysite/wp-includes/template.php(724): require('/srv/data/web/v...')
#5 /mysite/wp-includes/template.php(671): load_template('/srv in /mysite/wp-content/themes/virtue_premium/lib/custom.php on line 240
'use strict';
var APP = window.APP || {};
// document ready
// TODO: find a place for this object
APP.GsaFilter = {
gsaFilterModule: null,
btnGsaSwitcherFilter: null,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<style>
html, body, .map { height: 100%; width: 100%; };
</style>
<link href="http://openlayers.org/en/v3.1.1/build/ol.css" rel='stylesheet' type='text/css' />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.