[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4699: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4701: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4702: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4703: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Current Cost Support Forum :: View topic - C++ Code to read xml from envir?
Current Cost Support Forum
http://www.currentcost.com/support/

C++ Code to read xml from envir?
http://www.currentcost.com/support/viewtopic.php?f=24&t=1636
Page 1 of 1

Author:  Automan [ Sat Sep 10, 2011 3:25 pm ]
Post subject:  C++ Code to read xml from envir?

I have not played with C++ since we were rolling out Advanced Novell Netware which needed 640kb rather than 256kb of workstation RAM.

Thus, I wrote a program to check ram size and log to a folder on the server the results.

So I am a little rusty :)

Thus my question...

I guess someone has already done the code to read from the com port and split the data into the various channels.

(I am after a dashboard program that shows in near real time all channels at once on a PC screen).

Compatibility with the new Optismart would also be nice :)

Many thanks

Automan.

Author:  SeekerAfterTruth [ Sun Sep 11, 2011 2:54 pm ]
Post subject:  Re: C++ Code to read xml from envir?


Author:  Automan [ Mon Sep 12, 2011 3:37 pm ]
Post subject:  Re: C++ Code to read xml from envir?


Author:  SeekerAfterTruth [ Tue Sep 13, 2011 1:57 am ]
Post subject:  Re: C++ Code to read xml from envir?


Author:  sashton [ Sun Jan 15, 2012 2:17 pm ]
Post subject:  Re: C++ Code to read xml from envir?

First of all I would like to thank Seeker for his PS example.

I too wanted to graph my use; generation; export and IAMs. My skill level is ungifted tinkerer. The bespoke software I found out there was either inflexible or omitted features I required.

The PS example showed me how simply PS will parse the XML so all I really added was a little logic and call Invoke-Expression RRDtool update ... to enter the data into RRDtool.
RRDtool is the ideal place to store your history data. It is simple to set up, doesn't treat Windows as a poor brother to Lx and is easy as pie to produce graphs from.
Hey presto! and I have capture, database and graphing.
e.g. this took less than 20mins to setup and an hour to watch it collect the data



Happy to provide examples if anyone is as baffled as I was a few days ago.

S
...now all I have to get to work is the CGI graphing code.

Author:  Automan [ Thu Feb 02, 2012 11:28 am ]
Post subject:  Re: C++ Code to read xml from envir?


Author:  sashton [ Wed Mar 07, 2012 9:50 am ]
Post subject:  Re: C++ Code to read xml from envir?

I'm sorry for the delay in replying. I had one of the opti-smart transmitters freezing once every couple of days and eventually gave up fiddling with it and bought a replacement one. Here's hoping that this isn't a portent that the transmitters will fail on a regular basis.
The graphs are now published on a local Windows box via IIS at http://www.bowmill.net - Solar PV menu
I'll publish a "how I did this" page there this weekend which will include the script reading the EnviR along with the RRD create and graph definitions.
S

Author:  sashton [ Fri Mar 09, 2012 6:36 pm ]
Post subject:  Re: C++ Code to read xml from envir?

Automan
Did you ever get a reply from CC about the Optismart continuously incrementing the counter at about 0.64Kw when connected to a meter with the LED solidly on? The Elster A100Cs I have behave like this.

While not exporting or generating, like your experiences in the hardware forum, I was seeing the counters incrementing by about 640/hour when no power was being passed.
I wanted to capture the incremental power used over a day and found the only way I could acheive this was to increment the base counter reading while the rate was indicated as 0Kw. A bit of a kludge but it works.

The problem with this that I now have used all my free sensor slots on the EnviR so I now have two IAMs I cannot use without buying another receiver.

I guess I could return the kit to CC but hopefully you can tell me they fixed the problem for you.

S

Author:  sashton [ Thu Mar 15, 2012 3:52 pm ]
Post subject:  Re: C++ Code to read xml from envir?

I have been tried to post a reply including my code/sertup to this forum three times now.
For some reason they are not showing. I have had no notification that my proposed posting breaks any rules.
Examples of what I have put together can be seen at www.bowmill.net under the Solar PV button.

I have had to compensate for a steady increase in the counter value from the Optismart when no current is flowing (at about 640 Watts). Essentially I increase the base counter at this rate when the power value returned from the device indicates 0 Watts.

S

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/