-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
23 lines (18 loc) · 1.29 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Overwrite these with your own settings in config.local.js!
//
// OpenHAB URL (without the "http://" part; note that you can't use "localhost" or "127.0.0.1" or OpenHAB will send "Connection Refused")
var openhabURL = "192.168.1.80:8080/rest/items/"; // TODO: change this to your Pi's IP address
// Log URL
var logURL = "http://192.168.1.80/data.php?item="; // TODO: change this to your Pi's IP address
// Wunderground API
// TODO: insert your API key and location code (example location code: pws:KNYNEWYO118)
var weatherURL = "http://api.wunderground.com/api/YOUR_API_KEY_HERE/conditions/q/YOUR_LOCATION_CODE_HERE.json";
var forecastURL = "http://api.wunderground.com/api/YOUR_API_KEY_HERE/forecast/q/YOUR_LOCATION_CODE_HERE.json";
// Logging level (0 = off, 1 = ajax errors only, 2 = some logging, 3 = full logging)
// This logs to the developer console: in Google Chrome, press F12 and make sure the "Console" tab is selected
var loggingLevel = 3;
// How often to check weather (in milliseconds)
var weatherFrequency = 600000; // every 600 seconds (= 10 minutes)
var forecastFrequency = 3600000; // every 3600 seconds (= 1 hour)
var reloadHour = 4; // time at which to reload the entire page. Helps keep things fresh (Chrome tends to time out the websockets). 24 hour format (0 = midnight, 23 = 11 PM)