[vz-users] Meldung: Network Error

News news at spider-wolf.de
Sun Mar 12 10:31:12 CET 2017


Sorry kann dir nicht ganz folgen. 

Hier meine Option.js

vz.options = {
	language: 'de',
	precision: 2,							// TODO update from middleware capabilities?
	maxPrecision: {						// override precision for certain units
		'°C': 1
	},
	tuples: null,							// automatically determined by plot size
	refresh: true,						// update chart if zoomed to current timestamp
	interval: 24*60*60*1000,	// 1 day default time interval to show
	totalsInterval: 300,			// update interval for total consumption in s (only channels where initialconsumption > 0)
	pushRedrawTimeout: 1000,	// ms delay for collecting push updates before redrawing
	minTimeout: 2000,					// minimum refresh time in ms
	shortenLongTypes: false,	// show shorter type names in table
	middleware: [
		{
			title: 'Local (default)',
			url: 'middleware.php'
			// live: 8082					// NOTE: live updates require
														//    - push-server running and
														//    - either apache proxy forwarding configured according to
														//			https://github.com/volkszaehler/volkszaehler.org/issues/382
														// 		- or push-server live update port configured and accessible
		}, {
			title: 'Volkszaehler Demo',
			url: '//demo.volkszaehler.org/middleware.php'
		}
	],
	monthNames: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
	dayNames: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
	lineWidthDefault: 2,
	lineWidthSelected: 4,
	speedupFactor: 2,   // higher values give higher speedup but can produce chunky display
	hiddenProperties: ['link', 'tolerance', 'local', 'owner', 'description', 'gap', 'active'] // hide less commonly used properties
};

/**
 * Plot options are passed on to flot
 */
vz.options.plot = {
	colors: ['#579D1C', '#7E0021', '#FFD320', '#FF420E', '#004586', '#0084D1', '#C5000B', '#FF950E', '#4B1F6F', '#AECF00', '#314004', '#83CAFF'],
	series: {
		shadowSize: 0,
		points: {
			radius: 3
		}
	},
 	legend: {
		show: true,
		position: 'nw',
		backgroundOpacity: 0.80,
	},
	xaxis: {
		mode: 'time',
		timezone: 'browser'
	},
	axisLabels: {
		show: false // set to true to show labels
	},
	yaxes: [
		{
			axisLabel: 'W', // assign el. energy to first axis- remove if not used
			tickFormatter: vz.wui.tickFormatter		// show axis label
		},
		{
			// alignTicksWithAxis: 1,
			position: 'right',
			tickFormatter: vz.wui.tickFormatter		// show axis label
		}
	],
	selection: { mode: 'x' },
	crosshair: { mode: 'x' },
	grid: {
		hoverable: true,
		autoHighlight: false
	}
};

vz.options.saveCookies = function() {
	var expires = new Date(2038, 0, 1); // some days before y2k38 problem

	for (var key in vz.options) {
		if (vz.options.hasOwnProperty(key) &&
			typeof vz.options[key] != 'function' &&
			typeof vz.options[key] != 'object' &&
			typeof vz.options[key] != 'undefined'
		) {
			$.setCookie('vz_' + key, vz.options[key], {expires: expires});
		}
	}
};

vz.options.loadCookies = function() {
	for (var key in this) {
		var value = $.getCookie('vz_' + key);
		if (value !== undefined) {
			switch(typeof this[key]) {
				case 'string':
					this[key] = value;
					break;
				case 'number':
					this[key] = Number(value);
					break;
				case 'boolean':
				 	this[key] = (value == 'true');
					break;
			}
		}
	}
};



> Am 12.03.2017 um 08:46 schrieb Andreas Götz <cpuidle at gmail.com>:
> 
> Das reicht, schaue ich mit an. Fürs erste genügt es wenn Du demo aus der options.js entfernst, dann sollte der Fehler weg sein. 
> 
> Viele Grüße,
> Andreas
> 
> Am 12.03.2017 um 08:34 schrieb News <news at spider-wolf.de <mailto:news at spider-wolf.de>>:
> 
>> Hi,
>> 
>> ich arbeite mit OSX. habe im Safari die „Fehlerkonsole einblenden“ ausgewählt. Hoffe das ist gemeint
>> 
>> <Bildschirmfoto 2017-03-12 um 08.32.42.png>
>> 
>>> Am 12.03.2017 um 08:15 schrieb Andreas Götz <cpuidle at gmail.com <mailto:cpuidle at gmail.com>>:
>>> 
>>> Entwicklerkonsole
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170312/8291d33e/attachment.html>


More information about the volkszaehler-users mailing list