pilight/pilight — pull request #74 by 1000io (2014-02-24 12:18:10+00:00)
Title: Development - generic_wattmeter & generic_webcam protocol added

generic_wattmeter send:

pilight-send -p generic_wattmeter -i 10 -w 1000
(w = watts * 100 to avoid decimal problems)

generic_wattmeter config:

"Wattmetter": {
"name": "Wattmetter",
"protocol": [ "generic_wattmeter" ],
"id": [{
"id": 10,
"coin": "eur",
"price": 456 //price per watt * 1000 (to avoid decimal problems)
}],
"watt": 100000,
"settings": {
"coin": 1, //show coin
"watt": 1, //show watt
"price": 1, //show price (watt * price)
}
}

generic_webcam config:

"Webcam": {
"name": "Webcam",
"protocol": [ "generic_webcam" ],
"id": [{
"id": 60,
"url": "http://www.meteosat.com/imagenes/meteosat/sp/d2-col.jpg" //image webcam url
}],
"settings": {
"interval": 1000, //image refresh interval
"width": 500 //image max width
}
}