google-code-export / measureit

Automatically exported from code.google.com/p/measureit
1 stars 0 forks source link

No data to PvOutput #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute /usr/bin/python /usr/local/measureit/python/data-input.py test
2.
3.

What is the expected output? What do you see instead?
I imagine to see my data on PvOutput site

What version of the product are you using? On what operating system?
1.1.5 on Raspberry

Please provide any additional information below.
Seems to correctly work exept for PvOutput data publishing.
I can see the right data on the local web interface, but nothing on PvOutput.

I changed file data-input.py using the last one from this website.

Here the error on the logfile:
2014-02-11 08:41:30,536 ERROR Can not connect to the serial device: Traceback 
(most recent call last):
  File "/usr/local/measureit/python/data-input.py", line 811, in <module>
    sensor_data_check( s, watt_sum, tmpr )
  File "/usr/local/measureit/python/data-input.py", line 448, in sensor_data_check
    sensor_data_pvoutput_status( sensor, watt, tmpr )
  File "/usr/local/measureit/python/data-input.py", line 574, in sensor_data_pvoutput_status
    sensor_data_pvoutput_status_generate( sensor )
  File "/usr/local/measureit/python/data-input.py", line 593, in sensor_data_pvoutput_status_generate
    url = 'http://pvoutput.org/service/r2/addstatus.jsp?key='+sensor_settings[sensor]['pvoutput_api']+'&sid='+str(sensor_settings[sensor]['pvoutput_id'])+'&d='+sensors[sensor]['pvoutput_watt_sum']['day']+'&t='+sensors[sensor]['pvoutput_watt_sum']['time']+'&'+type+'='+str(sum)+'&v5='+str(tmpr);
UnboundLocalError: local variable 'tmpr' referenced before assignment

Thank you very much and regards.

Enrico

Original issue reported on code.google.com by e.pilo...@gmail.com on 11 Feb 2014 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
A more detailed log ...

Original comment by e.pilo...@gmail.com on 11 Feb 2014 at 8:10

Attachments:

GoogleCodeExporter commented 9 years ago
Solved using grabber r371 :)

Original comment by e.pilo...@gmail.com on 11 Feb 2014 at 11:02

GoogleCodeExporter commented 9 years ago
Solved in version 116 that is available to download

Original comment by lalelu...@gmail.com on 19 Apr 2014 at 10:08