navitron
 
Renewable Energy and Sustainability Forum
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address. Following continuous spam/hack attempts on the forum, "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: Navitron Partners With Solax to Help Create A More Sustainable Future | Navitron Calls for Increased Carbon Footprint Reduction In Light of Earth Overshoot Day | A plea from The David School - Issue 18
   Home   Help Search Login Register  
Pages: 1 2 3 4 [5] 6   Go Down
  Print  
Author Topic: RaspberryPi Python3 App for uploading Eco-Eye SmartPV serial o/p to PVOutput.org  (Read 48212 times)
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #60 on: February 11, 2016, 02:32:27 PM »

If anyone is interested, this is what the Nest integration looks like:



Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #61 on: May 25, 2016, 06:17:00 PM »

Announcing version V4-05-17

See about it here: https://www.navitron.org.uk/forum/index.php/topic,22190.msg257804.html#msg257804
Logged
paulburrows
Newbie
*
Offline Offline

Posts: 2


« Reply #62 on: June 13, 2016, 12:06:56 PM »

Have been waiting patiently for this to arrive.

Updated following your instructions and it is working a treat. I like the new settings interface and cumulative generation and consumption display.

Thank you very much for creating this  Smiley
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #63 on: June 13, 2016, 12:21:58 PM »

Thanks for the feedback, Paul.

Glad you like it! :-)
Logged
Icarus
Newbie
*
Offline Offline

Posts: 2


« Reply #64 on: February 21, 2017, 07:53:22 PM »

Hi Team eespvo.

I have installed your software on my pi & just received my Eco-eye today. The web dash looks great. Thanks for the work on it. Hoping to get it working with my system.

When I start eespvo I get the following errors in the log file.

Code:
20170221 183049 Sta > eespvo.py V4-05-19 [ProcID:1449] [PVSysId:5036]
20170221 183057 USB > Error reading GC USB
20170221 183057 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183057 USB > GC error: 'utf-8' codec can't decode byte 0xb1 in position 0: invalid start byte
20170221 183057 USB > GC error: <traceback object at 0x7648ea58>
20170221 183102 USB > Error processing USB stream (readings ignored: 0150000)
20170221 183102 USB > Error: <class 'IndexError'>
20170221 183102 USB > Error: list index out of range
20170221 183102 USB > Error: <traceback object at 0x7648e940>
20170221 183105 USB > Error reading GC USB
20170221 183105 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183105 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte
20170221 183105 USB > GC error: <traceback object at 0x7649a300>
20170221 183117 USB > Error reading GC USB
20170221 183117 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183117 USB > GC error: 'utf-8' codec can't decode byte 0xac in position 0: invalid start byte
20170221 183117 USB > GC error: <traceback object at 0x7648e580>
20170221 183122 USB > Error reading GC USB
20170221 183122 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183122 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 10: invalid start byte
20170221 183122 USB > GC error: <traceback object at 0x7648ea58>
20170221 183127 USB > Error reading GC USB
20170221 183127 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183127 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 6: invalid start byte
20170221 183127 USB > GC error: <traceback object at 0x7648e580>
20170221 183132 USB > Error reading GC USB
20170221 183132 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183132 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 7: invalid start byte
20170221 183132 USB > GC error: <traceback object at 0x7648ea58>
20170221 183137 USB > Error reading GC USB
20170221 183137 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183137 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 7: invalid start byte
20170221 183137 USB > GC error: <traceback object at 0x7649a2d8>
20170221 183153 USB > Error reading GC USB
20170221 183153 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183153 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte
20170221 183153 USB > GC error: <traceback object at 0x7648ea58>
20170221 183209 USB > Error reading GC USB
20170221 183209 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183209 USB > GC error: 'utf-8' codec can't decode byte 0xac in position 0: invalid start byte
20170221 183209 USB > GC error: <traceback object at 0x7648e580>
20170221 183214 USB > Error processing USB stream (readings ignored: 01520000)
20170221 183214 USB > Error: <class 'IndexError'>
20170221 183214 USB > Error: list index out of range
20170221 183214 USB > Error: <traceback object at 0x7649a1e8>
20170221 183221 USB > Error reading GC USB
20170221 183221 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183221 USB > GC error: 'utf-8' codec can't decode byte 0xb5 in position 1: invalid start byte
20170221 183221 USB > GC error: <traceback object at 0x7649a1c0>
20170221 183226 USB > Error reading GC USB
20170221 183226 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183226 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 14: invalid start byte
20170221 183226 USB > GC error: <traceback object at 0x7649a210>
20170221 183245 USB > Error reading GC USB
20170221 183245 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183245 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte
20170221 183245 USB > GC error: <traceback object at 0x7649aa80>
20170221 183250 USB > Error reading GC USB
20170221 183250 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183250 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 8: invalid start byte
20170221 183250 USB > GC error: <traceback object at 0x7648e580>
20170221 183255 USB > Error reading GC USB
20170221 183255 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183255 USB > GC error: 'utf-8' codec can't decode byte 0xb5 in position 2: invalid start byte
20170221 183255 USB > GC error: <traceback object at 0x7649a1c0>
20170221 183301 USB > Error reading GC USB
20170221 183301 USB > GC error: <class 'UnicodeDecodeError'>
20170221 183301 USB > GC error: 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte
20170221 183301 USB > GC error: <traceback object at 0x7648e580>

It does not display anything in the web dash. But the csv4s is being populated. A snipit below...

Code:
Date                  Time EGen(Wh) PGen(W) ECon(Wh) PCon(W) Volts
21/02/2017 19:03:15 75.761 0 150584.107 336355.2 240
21/02/2017 19:03:17 75.761 0 150584.304 355.2 240
21/02/2017 19:03:21 75.761 0 150584.704 360 240
21/02/2017 19:03:25 75.761 0 150585.098 355.2 240
21/02/2017 19:03:29 75.761 0 150585.496 357.6 240
21/02/2017 19:03:33 75.761 0 150585.893 357.6 240
21/02/2017 19:03:37 75.761 0 150586.293 360 240
21/02/2017 19:03:51 77.144 355.2 150587.685 357.6 240
21/02/2017 19:03:58 77.144 0 150587.75 33.6 240
21/02/2017 19:03:58 77.144 0 150587.751 357.6 240
21/02/2017 19:04:06 77.144 0 150588.545 357.6 240
21/02/2017 19:04:06 77.144 0 150588.545 352.8 240
21/02/2017 19:04:39 80.227 336 150591.849 360 240
21/02/2017 19:04:41 80.227 0 150592.032 336 240
21/02/2017 19:04:55 80.227 0 151900.985 336333.6 240
21/02/2017 19:04:57 80.227 0 151901.171 336 240
21/02/2017 19:05:01 80.227 0 151901.547 338.4 240
21/02/2017 19:05:05 80.227 0 151901.918 333.6 240
21/02/2017 19:05:09 80.227 0 151902.286 331.2 240
21/02/2017 19:05:13 80.227 0 151902.662 338.4 240
21/02/2017 19:05:17 80.227 0 151903.04 340.8 240
21/02/2017 19:05:21 80.227 0 151903.414 336 240
21/02/2017 19:05:25 80.227 0 151903.819 364.8 240
21/02/2017 19:05:44 80.227 0 151905.796 374.4 240
21/02/2017 19:05:45 80.227 0 151905.899 374.4 240
21/02/2017 19:06:25 84.294 369.6 151909.967 369.6 240
21/02/2017 19:06:35 85.361 369.6 151911.041 372 240
21/02/2017 19:06:37 85.361 0 151911.245 369.6 240

Also the csv5m is getting populated...

Code:
Date Time EGen(Wh) PGen(W) ECon(Wh) PCon(W) Volts Broughton(C)
21/02/2017 18:30 0 0 0.232 355.2 240 12 Mostly Cloudy <
21/02/2017 18:35 8.902 58.062 32740.376 154522.892 240 12 Mostly Cloudy |
21/02/2017 18:40 18.096 66.646 68536.47 118588.369 240 12 Mostly Cloudy |
21/02/2017 18:45 31.829 87.247 69857.727 11642.682 240 12 Mostly Cloudy |
21/02/2017 18:50 53.2 139.133 87900.227 137088.2 240 12 Mostly Cloudy |
21/02/2017 18:55 65.547 77.088 112014.738 277794.432 240 12 Mostly Cloudy |
21/02/2017 19:00 74.48 71.2 149167.243 255686.473 240 12 Mostly Cloudy |
21/02/2017 19:05 80.227 24.971 151901.547 16903.543 240 11.9 Mostly Cloudy |
21/02/2017 19:10 91.064 47.914 152566.907 2907.857 240 11.9 Mostly Cloudy |
21/02/2017 19:15 99.763 34.761 179178.099 211638.426 240 11.9 Mostly Cloudy |


Given that it has generated figures after dark I think something is not quite rite.
I am not a coder so any thoughts on how to get rid of the error & get correct data in the .csv ?

BTW I wish my array was generating this in the dark !!

Thanks Andy
Logged

1.56KWp array. 8 x Hengji PV-Tech HJM190M-24 panels + SMA sunny Boy 2000HF. 33 deg tilt South facing. http://pvoutput.org/intraday.jsp?id=6305&sid=5036
Icarus
Newbie
*
Offline Offline

Posts: 2


« Reply #65 on: February 21, 2017, 09:36:41 PM »

Just noticed that the web dash says

Quote
Last Update: eespvo waiting to start

I have gone to "settings > Main & ticked "Allow eespvo to start:" & clicked on "Submit" but nothing happens.
Will this happen if log file is full of "Error reading GC USB" ??

Logged

1.56KWp array. 8 x Hengji PV-Tech HJM190M-24 panels + SMA sunny Boy 2000HF. 33 deg tilt South facing. http://pvoutput.org/intraday.jsp?id=6305&sid=5036
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #66 on: February 22, 2017, 10:33:11 AM »

Hi Andy,

Sorry for the delay, I've only just seen your post...

Welcome!   Cheesy  Sorry you are having problems.   Angry

First thing; you shouldn't bee seeing any errors reading the USB input (GC Error - just stands for Generation/Consumption Error). The USB Data stream should be two 4 digit numbers separated by a comma, e.g. 1107,0041, but what you are getting is 150000. Plus the "codec can't decode byte" errors suggest that most of the characters are coming through very corrupted so can't be interpreted.

Try setting the "Settings > Optional > EESPVO Setting > Logging Level" to "Full". Look for the file "eespvo/work/eespvo.log" (you can use the web interface to view the log file, but when doing a full log this method soon gets swamped - something on the fix list). This should then show you something like this:

20170222 092019 F: GeU - USB > GC read: 1
20170222 092019 F: GeU - USB > GC read: 1107,00
20170222 092019 F: GeU - USB > GC read: 1107,0041
20170222 092019 D: PrD - Ext > CAGA:1107,0041
20170222 092019 V: PrD - Add > EGen:0.109Wh,PGen:97.99W,ECon:2.94Wh,PCon:2645.73W,T:4.0s

The "GC read" lines show the Read buffer filling up. The "CAGA:" shows the final read Consumption and Generation in one hundredths of Amps.

Don't leave the Error Level on Full for too long, it generates an awful lot of log data!

Try wiggling the USB cable about. I sometimes get USB read problems, as the cable can be a bit loose in it's sockets at both ends. I guess it is always possible that the active components in the cable (Prolific based USB/Serial adapter) could be malfunctioning, but let's hope not. I would suspect the connections first.

The reason CSV files are being produced suggests that some data is getting through. This is clearly corrupted because it shows you are generating 150KW at 7pm! Again the Full log should give us an idea of how the data is being processed.

Since there is CSV data, there should be data for the web interface to use. The comms between the EESPVO app and the web interface is through files that are created in the "eespvo/shdmem" folder. This folder should contain the files "pv_4sec.txt" and "pv_4sec_history.txt". The first is a single realtime entry for updating the web data every 4sec, and is easy to read. The second contains a history of 4sec data, and is less easy to read - basically it is the same as the single shot data, but with each entry terminated by a "?" (sometimes, with luck, the utility you are using to display the contents will wrap the data so that each entry appears on it's own line).

It's worth having a look at the content of these files to see what is being written. "pv_4sec.txt" should look something like this :

22/02/2017,09:44:35,117.132,172.08,7084.275,2693.53,0,6967.143,239

and "pv_4sec_history.txt" like this:

22/02/2017,07:45:51,0.0,0.0,1246.787,117.11,0,1246.787,239?22/02/2017,07:45:55,0.0,0.0,1246.919,119.5,0,1246.919,239?22/02/2017,07:45:59,0.0,0.0,1247.057,124.28,0,1247.057,239?22/02/2017,07:46:03,0.0,0.0,1247.182,112.33,0,1247.182,239?22/02/2017,07:46:07,0.0,0.0,1247.31,114.72,0,1247.31,239?22/02/2017,07:46:11,0.0,0.0,1247.434,112.33,0,1247.434,239?22/02/2017,07:46:15,0.0,0.0,1247.554,107.55,0,1247.554,239?

The columns are: Date, Time, Gen Whr, Gen W, Con Whrs, Con W, Exported Whrs, Imported Whrs, Volts

Hopefully this is enough to be going on with. By all means post or send me the log and txt files (you may want to remove any sensitive data, e.g. passwords, email address) from the log before you do though - especially if you are posting it!

Cheers, Jim
« Last Edit: February 22, 2017, 10:37:58 AM by JST200 » Logged
dazboj
Newbie
*
Offline Offline

Posts: 4


« Reply #67 on: September 26, 2018, 02:45:59 PM »

Hey,
I joined here to say thank you for this awesome script.
I have v5 running on a Raspberry Pi and have created my own script that pulls the data from the pv_4sec.txt file and uses the data to enable/disable my car charger using the excess solar.

Thanks again.
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #68 on: September 26, 2018, 03:56:41 PM »

Hi dazboj,

Thanks for your kind words. Using eespvo as a basis for charging your car is awesome genuflect

There hasn't been much traffic on this thread for quite some time!

I do have a confession to make... Over 18months ago I produced a new version that fixed some minor bugs, improved the Web graphs a little and integrated SBFspot (http://github.com/SBFspot/SBFspot/blob/master/README.md) which connects to SMA inverters via Bluetooth. It allows the capture of both the generated power and voltage direct from the inverter.

If anyone is interested, I'm prepared to upload the new version.

Cheers, Jim
Logged
dazboj
Newbie
*
Offline Offline

Posts: 4


« Reply #69 on: September 27, 2018, 09:22:10 AM »

I had actually been looking for about 6 months for a monitor that will tell me the import/export figure. There's so many monitors out there, but most can only give the reading but not which direction.
I finally came across eco-eye a few weeks ago and it's perfect for what I needed and your script save me a lot of time.
I have a Ginlong Solis Solar inverter with the WiFi dongle, but this didn't give me the needed figure.

I now use my cars API to start/stop charging as and when there is enough excess solar being exported.

I hope it's ok to use the v5.00.11 from your Dropbox as I didn't see you mention of the release.
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #70 on: September 27, 2018, 11:01:11 AM »

Yes that's fine. I'd forgotten I'd put it in the Public folder.
As I said I've been using it for 18months and it seems OK.

The only issue is I haven't properly documented the updates in this forum yet, but there is a change log at the beginning of the code. If your OK with that, then carry on.

Cheers, Jim
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #71 on: December 16, 2018, 05:18:21 PM »

Hi all eespvo users,

You may not be aware that Weather Underground are removing access to their Application Programming Interface (API) as of 31st Dec 2018. This means that eespvo won't be able to get Weather data from this site after this date.

I hope to change to a different weather service, OpenWeather (http://openweathermap.org), as soon as I can rewrite the code. This will mean that you will need to sign up to OpenWeather and get an API key from them: http://openweathermap.org/api. Instead of being able to use a local weatherstation, you will need to select a nearby town to your location. More of this when I have the code written.

Cheers, Jim
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #72 on: December 27, 2018, 04:01:35 PM »

V6-00-02

This is a major release.  It is required if you wish to use the weather option using OpenWeatherMap, as WeatherUnderground has removed its free access.
It also supports the use of SBFspot (which is an open source project to get actual and archive data out of an SMAŽ inverter over Bluetooth).
It also provides various bug fixes.

See about it here: https://www.navitron.org.uk/forum/index.php/topic,22190.msg257804.html#msg257804
« Last Edit: December 27, 2018, 04:03:28 PM by JST200 » Logged
dazboj
Newbie
*
Offline Offline

Posts: 4


« Reply #73 on: December 29, 2018, 10:54:40 AM »

Thank you.

I had a bit of an issue with my Pi being stuck in a reboot loop after rebooting, however after starting eespvo manually then rebooting it seems to have stabilised.
Logged
JST200
Jr. Member
**
Offline Offline

Posts: 58


« Reply #74 on: December 29, 2018, 11:34:39 AM »

Hi dazboj,

Glad you got it sorted.  Smiley

Is there anything in the log file that gives a clue as to why it was rebooting? It turned out the changes were pretty straightforward, so there shouldn't have anything to cause a reboot. But you never know...  Wink

Cheers, Jim
Logged
Pages: 1 2 3 4 [5] 6   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!