Hi Ian,
thanks for your great job !!!!
I'm testing and i have sometimes this error:
Time now: 09:39:33 Usage: 954.5 W Gen: 78.2 W
Time now: 09:39:37 Usage: 954.5 W Gen: 0 W
Time now: 09:39:41 Usage: 947.6 W Gen: 78.2 W
Time now: 09:39:45 Usage: 947.6 W Gen: 71.3 W
Time now: 09:39:49 Usage: 954.5 W Gen: 73.6 W
Time now: 09:39:53 Usage: 959.1 W Gen: 71.3 W
Time now: 09:39:57 Usage: 954.5 W Gen: 73.6 W
Time now: 09:40:01 Usage: 945.3 W Gen: 73.6 W
Time to output status. AvgUse: 899 W AvgGen: 40 W
Params: d=20140110&n=0&v2=40&v4=899&t=09%3A40&v6=230.0&c1=0
Traceback (most recent call last):
File "pvs2pvo.py", line 95, in <module>
processReading(reading)
File "pvs2pvo.py", line 79, in processReading
addReading(useWatts, genWatts)
File "pvs2pvo.py", line 58, in addReading
if postPVstatus(timeNow, 0, avgUse, 0, avgGen, pvs_volts, 0.0):
File "pvs2pvo.py", line 39, in postPVstatus
conn.request("POST", pvo_uri, params, headers)
File "/usr/lib/python3.2/http/client.py", line 970, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.2/http/client.py", line 1008, in _send_request
self.endheaders(body)
File "/usr/lib/python3.2/http/client.py", line 966, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.2/http/client.py", line 811, in _send_output
self.send(msg)
File "/usr/lib/python3.2/http/client.py", line 749, in send
self.connect()
File "/usr/lib/python3.2/http/client.py", line 727, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.2/socket.py", line 415, in create_connection
raise err
File "/usr/lib/python3.2/socket.py", line 406, in create_connection
sock.connect(sa)
socket.error: [Errno 110] Connection timed out
root@raspberrypi:/home/pi/Desktop#
where am I doing wrong
