Code Monkey home page Code Monkey logo

currentcostgui's People

Contributors

dalelane avatar oroulet avatar

Watchers

 avatar  avatar

currentcostgui's Issues

no graphs of data

What steps will reproduce the problem?
1. Download Once -> download via serial port
2.
3.

What is the expected output? What do you see instead?
Expected to see graphed data, I see no graphs. My cc128 has been running 
for a number of weeks now and from the display looks like it is recording 
data fine.

What version of the product are you using? On what operating system?
CC128 with 0.9.28 of the software, just downloaded and re-installed to see 
if that would help but no improvement.


Please provide any additional information below.

The trends tab shows some data but none of the other tabs show any data. 
Trends tab is giving me a lowest and highest usage as well as when I 
typically use the most electricity. It also says my usage has remained 
consistent for the last 9 months. The download of data seems to proceed 
fine.

Original issue reported on code.google.com by [email protected] on 5 Oct 2009 at 10:22

Provide temperature data

The temperature data from the CC128 is very useful, it would be good if 
currentcostgui could download this, show it in all of the graphs and export 
it in the CSV files.

Original issue reported on code.google.com by [email protected] on 17 Aug 2009 at 12:03

No Current Cost communications at all

What steps will reproduce the problem?
1. Running the currentcostgui, requesting real-time data
2. I am using an older Prolific v 2.0.2.1 driver
3. With the very latest Prolific v130 driver I get Error Code 10 and
yellow exclamation  mark against the Prolific PL2303 USB to Serial Com port 8.

What is the expected output? What do you see instead?
Error message = Serial Exception: could not open port 8 (2,'The system cannot 
find the file specified)

What version of the product are you using? On what operating system?
Version downlaoded today 24th Sep 2010, Windows XP SP3

Please provide any additional information below.
Is there a different recommended driver?

Original issue reported on code.google.com by [email protected] on 25 Sep 2010 at 1:28

Blank graph of live data

What steps will reproduce the problem?
1. Show Live Data
2.
3.

What is the expected output? What do you see instead?
A graph with a red data line. 
A graph is shown with changing axes but no data (red) line.

What version of the product are you using? On what operating system?
0.9.29

Please provide any additional information below.
0.9.28b works just fine.

Original issue reported on code.google.com by [email protected] on 1 Dec 2009 at 5:31

PlotGroupWeekData Related Error Message

What steps will reproduce the problem?
1. Connected up CC128 Meter
2. Downloaded Code from here
3. Set-Up web account and asked for Users data

What is the expected output? What do you see instead?
Saw a error reporting dialogue box with the following written in it:
Traceback (most recent call last):
  File "currentcost.py", line 510, in onSyncData
  File "currentcost.py", line 535, in downloadData
  File "currentcostvisualisations.pyc", line 323, in PlotGroupWeekData
TypeError: 'NoneType' object is not iterable

What version of the product are you using? 0.9.24
On what operating system? Windows XP SP2


Please provide any additional information below.


Original issue reported on code.google.com by neilgood on 28 Jul 2009 at 9:44

Import script fails

Using the latest HEAD to test the import script i get this, both with a new or 
old database file:

$  python2  import-data-envir.py /dev/ttyUSB0 
/home/higuita/apps/currentcost/envi-test.ccd 
{'msg': {'src': u'CC128-v1.30', 'type': u'1', 'dsb': u'00479', 'ch1': {'watts': 
u'00489'}, 'time': u'02:11:57', 'sensor': u'0', 'id': u'03170', 'tmpr': 
u'27.8'}}
Traceback (most recent call last):
  File "import-data-envir.py", line 61, in <module>
    run(s, db)
  File "import-data-envir.py", line 31, in run
    w2 = int(currentcoststruct["msg"]["ch2"]["watts"])
KeyError: 'ch2'

Original issue reported on code.google.com by [email protected] on 29 Jun 2012 at 1:11

currentcost.py not urf-8

On both 'currentcost-source-0.9.30.zip' and svn (r195) 'currentcost.py' is not 
correctly encoded to utf-8.

This causes problems with wxWidgets.

Original issue reported on code.google.com by [email protected] on 30 Oct 2010 at 2:32

Attachments:

Unable to parse reading from meter:

What steps will reproduce the problem?
1. Reading realtime data from Classic or new CC128 model

All version of the app with the "Live Data" up to the current release have 
produced this error some time after I have left it running.

The connection is direct on my Micorosft Windows Home Server.

Regards

Ian.


Original issue reported on code.google.com by [email protected] on 19 Feb 2009 at 7:51

Attachments:

Doesn't support multiple sensor readings

As you know the CC128 supports 9 "appliance" sensors as well as the main
"house" sensor.

In our office we have two meters (don't ask), and CurrentCost advised us to
set it up as follows: one transmitter for meter 1 going into the "house"
sensor, and one transmitter for meter 2 going into the "appliance 1" sensor.

So we want to analyse the combined output of both sensors, both in the
currentcostgui app and in Excel via the CSV export.

To help you out I've attached an XML dump. It's pretty easy to recognise
which sensor each reading belongs to!

Original issue reported on code.google.com by [email protected] on 7 Aug 2009 at 11:22

Attachments:

Classic connection problem

I have Classic Cost Monitor but I am unable to download information from 
it to CurrentCost GUI. My computer is running XP3.

When I try to connect via COM1 I get a message "waiting for data from 
current cost meter 1 update remaining"  My computer then hangs and also 
the information on the Cost Monitor goes blank.

I see a similar problem was posted about the new CC128 Monitor but the 
solution given only made my problem worse....I had to pair the Transmitter 
and Monitor again and start again!



Original issue reported on code.google.com by [email protected] on 9 Jul 2009 at 5:33

Connect directly caused a error on first connect in .19a

On my first connecion using .19a I get connection, 3 bars on download meter
and then message "waiting for data from current cost meter 1 update
remaining"  After a short while i got an error message.
I then connected directly which worked, and then supply demand which
worked, then tried direct connect and it worked perfectly.  Restarted app
and it seems to work now, will keep you updated.
Regards
Stuart 

Original issue reported on code.google.com by [email protected] on 21 Feb 2009 at 11:51

Feature Request: Ability to tcp connect to host:port

In addition to Serial port and RSMB, can you add the ability to connect to
a tcp host:port.  This would help if the serial port is on a serial port
server, like ser2net.  There's no protocol, you just connect and the data
comes.

Original issue reported on code.google.com by [email protected] on 9 Jan 2010 at 11:44

com port

new install of currentcost, running source .py.  Have all pre-req.

however I tried miniterm and see clean data
C:\Python27>python -m serial.tools.miniterm com3 57600
--- Miniterm on com3: 57600,8,N,1 ---
--- Quit: Ctrl+]  |  Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
<msg><src>CC128-v0.15</src><dsb>00678</dsb><time>19:42:59</time><tmprF>84.2</tmp
rF><sensor>0</sensor><id>01898</id><type>1</type><ch1><watts>00184</watts></ch1>
<ch2><watts>00266</watts></ch2></msg>
<msg><src>CC128-v0.15</src><dsb>00678</dsb><time>19:43:05</time><tmprF>84.1</tmp
rF><sensor>0</sensor><id>01898</id><type>1</type><ch1><watts>00183</watts></ch1>
<ch2><watts>00261</watts></ch2></msg>



Diag log
2012-07-06 11:31:52,770 CurrentCost software - v 0.9.30
2012-07-06 11:31:52,770 -------------------------------
2012-07-06 11:31:52,770 python     : version '2.7.2'
2012-07-06 11:31:52,770 numpy      : version '1.6.2'
2012-07-06 11:31:52,770 scipy      : version '0.11.0b1'
2012-07-06 11:31:52,770 matplotlib : version '1.1.1'
2012-07-06 11:31:52,770 wxpython   : version '2.8.12.1 (msw-unicode)'
2012-07-06 11:31:52,770 sqlite     : version '2.6.3'
2012-07-06 11:31:52,772 ENTRY  appInit
2012-07-06 11:31:53,058 ENTRY    connectToDatabase
2012-07-06 11:31:53,059 DEBUG      reading application settings file
2012-07-06 11:31:53,068 ENTRY      drawMyGraphs
2012-07-06 11:31:53,068 DEBUG        Empty hour data collection
2012-07-06 11:31:53,076 EXIT       drawMyGraphs
2012-07-06 11:31:53,076 EXIT     connectToDatabase
2012-07-06 11:31:58,369 ENTRY    onDownloadOnceSerial
2012-07-06 11:31:58,369 DEBUG      currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:31:58,369 DEBUG      creating a new serial connection
2012-07-06 11:31:58,387 DEBUG      last used serial port: COM3
2012-07-06 11:31:59,417 ENTRY      getDataFromCurrentCostMeter
2012-07-06 11:31:59,418 DEBUG        currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:31:59,418 ENTRY        currentcostserialconn :: connect
2012-07-06 11:31:59,418 DEBUG          creating serial connection definition 
using port COM3 and timeout of 5 seconds
2012-07-06 11:31:59,418 DEBUG          Exception - failed to connect
2012-07-06 11:31:59,420 DEBUG          coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:31:59,420 DEBUG          retrying connection using CC128 baud 
rate using port COM3 and timeout of 3 seconds
2012-07-06 11:31:59,420 DEBUG          Exception - failed to connect
2012-07-06 11:31:59,420 DEBUG          coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:31:59,420 EXIT         currentcostserialconn :: connect
2012-07-06 11:31:59,421 ERROR        Failed to connect to CurrentCost meter - 
unknown cause
2012-07-06 11:31:59,421 EXIT       getDataFromCurrentCostMeter
2012-07-06 11:31:59,421 EXIT     onDownloadOnceSerial
2012-07-06 11:32:13,200 DEBUG    currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:32:14,319 ENTRY    currentcostserialconn :: connect
2012-07-06 11:32:14,319 DEBUG      creating serial connection definition using 
port COM3 and timeout of 5 seconds
2012-07-06 11:32:14,319 DEBUG      Exception - failed to connect
2012-07-06 11:32:14,319 DEBUG      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:14,319 DEBUG      retrying connection using CC128 baud rate 
using port COM3 and timeout of 3 seconds
2012-07-06 11:32:14,319 DEBUG      Exception - failed to connect
2012-07-06 11:32:14,321 DEBUG      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:14,321 EXIT     currentcostserialconn :: connect
2012-07-06 11:32:18,615 ENTRY    onDownloadAllSerial
2012-07-06 11:32:18,615 DEBUG      currentcostserialconn :: isConnected - 
returning False
2012-07-06 11:32:18,615 DEBUG      creating a new serial connection
2012-07-06 11:32:18,632 DEBUG      last used COM port: COM3
2012-07-06 11:32:19,690 DEBUG      user entered COM port value: COM3
2012-07-06 11:32:19,690 DEBUG      connecting to serial port
2012-07-06 11:32:19,690 ENTRY      currentcostserialconn :: connect
2012-07-06 11:32:19,690 DEBUG        creating serial connection definition 
using port COM3 and timeout of 5 seconds
2012-07-06 11:32:19,690 DEBUG        Exception - failed to connect
2012-07-06 11:32:19,690 DEBUG        coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:32:19,690 DEBUG        retrying connection using CC128 baud rate 
using port COM3 and timeout of 3 seconds
2012-07-06 11:32:19,690 DEBUG        Exception - failed to connect
2012-07-06 11:32:19,690 DEBUG        coercing to Unicode: need string or 
buffer, int found
2012-07-06 11:32:19,690 EXIT       currentcostserialconn :: connect
2012-07-06 11:32:19,690 ERROR      Failed to connect to CurrentCost meter
2012-07-06 11:32:19,690 ERROR      coercing to Unicode: need string or buffer, 
int found
2012-07-06 11:32:20,763 EXIT     onDownloadAllSerial
2012-07-06 11:32:26,256 ENTRY    currentcostlivedata :: disconnect
2012-07-06 11:32:26,256 EXIT     currentcostlivedata :: disconnect
2012-07-06 11:32:26,269 EXIT   appInit

Original issue reported on code.google.com by [email protected] on 6 Jul 2012 at 3:35

patch to allow newer firmware reading


In newer versions of the firmware, the xml version is higher than 0 and so the 
code
fails.

Here is a example of my output:

<msg><src>CC128-v1.30</src><dsb>00174</dsb><time>03:49:57</time><tmpr>25.7</tmpr
>
<sensor>1</sensor><id>03704</id><type>1</type><ch1><watts>00337</watts></ch1></m
sg>

attached is a small pacth to remove the v0.x  check for a more generic code.

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 11:29

Attachments:

Installation error.

What steps will reproduce the problem?
1. Unzip the Windows package
2. Run the currentcost.exe
3.

What is the expected output? What do you see instead?
I get a window coming up that tells me to check the error log. THe 
contents of the error log is:

Traceback (most recent call last):
  File "currentcost.py", line 33, in <module>
  File "matplotlib\__init__.pyc", line 677, in <module>
  File "matplotlib\__init__.pyc", line 660, in rc_params
  File "matplotlib\__init__.pyc", line 242, in wrapper
  File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached
  File "matplotlib\__init__.pyc", line 478, in _get_data_path
RuntimeError: Could not find the matplotlib data files



What version of the product are you using? On what operating system?
Using 0.9.19a on WinXp SP2


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Feb 2009 at 11:39

UnicodeEncodeError: 'ascii' codec can't encode character

I downloaded the version 0.9.3 and I got this log when i run currentcost.exe so 
i cant execute it.

Traceback (most recent call last):
  File "currentcost.py", line 38, in <module>
  File "pylab.pyc", line 1, in <module>
  File "matplotlib\pylab.pyc", line 247, in <module>
  File "matplotlib\pyplot.pyc", line 78, in <module>
  File "matplotlib\backends\__init__.pyc", line 25, in pylab_setup
  File "matplotlib\backends\backend_tkagg.pyc", line 7, in <module>
  File "Tkinter.pyc", line 38, in <module>
  File "FixTk.pyc", line 60, in <module>
  File "os.pyc", line 420, in __setitem__
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 
40: ordinal not in range(128)

I tryed running as admin and with compability XP SP2 and more but nothing.

How can i solve it?

Thanks in advance!


Original issue reported on code.google.com by [email protected] on 3 Apr 2013 at 7:17

import fails

I just try to download the history from the currentcost device (enviR usb)
but the import reports:
"Received 0 update with history data, 0 updatewith live (no history) data
xxx invalid updates"
and xxx increments every few seconds while the progress bar slowly increases 
(there's one month worth of data to retreive)

I'm using currentcost version 0.9.30 on windows 7 64 bits.
I got the usb drivers from currentcost website and their C2 terminal software 
shows the correct information (date, watt, temperature) using COM6

After restarting currentcost, and downloading history I get:
"Received 0 update with history data, xxx updatewith live (no history) data
0 invalid updates".
The "show live data" option also works, but there's definetely one month of 
data on the device, but i can only get the live data. 

Any idea on the issue? thanks

Original issue reported on code.google.com by [email protected] on 2 Sep 2011 at 8:47

File corruption during download?

What steps will reproduce the problem?
1. Select Download History -> Download Once -> Download via serial port
2. COM6. Select OK
3.

What is the expected output? What do you see instead?
Download of the CurrentCost data.
Serial Exception: could not open port om6: (2,'CreateFile', 'The system
cannot find the file specified.')

What version of the product are you using? On what operating system?
0.9.21. Windows XP

Please provide any additional information below.
I think a data file has got corrupted but I don't know how to find out
which one. I can still see all hourly, daily, monthly info etc.

Original issue reported on code.google.com by [email protected] on 1 May 2009 at 8:31

Average Weekday Graph Not Correct

Hi Dale

Great app, just a small issue the Average Day graph has a title of Average
Weekday.  Actually the code isn't using weekday it's actually using weekends

       for k, v in hourData.iteritems():
            if v > 0:
                if k.weekday() >= 5:
                    hoursCount[k.hour] += 1
                    hoursSum[k.hour] += v

While not being wrong, a week day and weekend version would be useful (or
quick title change of course).

Regards

Rob

Original issue reported on code.google.com by [email protected] on 19 Dec 2009 at 1:14

performance during live graphing


What is the expected output? What do you see instead?
6 wxPython windows produced

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

just loaded .17 on XPSP3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 4 Feb 2009 at 5:48

ERROR during live graphing. error reading from COM port



What steps will reproduce the problem?
1. latest version of Currentcost ( 0.9.28)
2. Connect using Show Live Date...Connect via Serial Port
3. Works for a while (minutes/hours) then error shown:  
"error reading from COM port: global name 'err' is not defined"

What is the expected output? What do you see instead?
Exepcted to continue to see live graph update...error as shown instead (and 
need to connect again using Show live data...Connect via serial port.

What version of the product are you using? On what operating system?
Windows XP SP3. 
STC4002 with 2 extra sensors (3 phase)  

Please provide any additional information below.
have tried on a different computer- same error.

thanks

steve

Original issue reported on code.google.com by [email protected] on 4 Sep 2009 at 10:03

gaps in hourly data

What steps will reproduce the problem?
1. download data com 4
2.
3.

What is the expected output? What do you see instead?
gaps in data on hourly tab

What version of the product are you using? On what operating system?
0.9.13

Please provide any additional information below.
thid has hapend more often on update to lattest verssion

Original issue reported on code.google.com by [email protected] on 21 Dec 2008 at 2:24

Attachments:

REQ: Save XML line to a file.


It would be useful for me to have a local file data.xml which containe dthe
last xml line.

This would be overwritten each update.
I'm considering altering currentcostserialconn.py readUpdate.

Is this something you would consider adding?
Even better would be a http server offering the lastest xml on a
configurable port.

Original issue reported on code.google.com by [email protected] on 16 Jul 2009 at 4:01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.