My old nemesis ‘precision’ has once again reared it’s ugly face. I missed the stringstream precision settings (stupidly assuming the string stream would recognize a double vs. a float type, bad assumption). The stringsteam library is a good example of where bugs come from. Anyways, fixed it and updated the page and github.
Added a faster way to read doubles (type=’B’) without string conversion from the DBF, the function is called readFieldAsDouble(int). Sometimes, strings are just too slow when you have a lot of data!
So I finally had time to post the DBFEngine I wrote in C++ as open source. It can read and write simple dbf (foxpro) files. It was made for people who needed an easy way to import and export without having to use ADO or some other huge database engine. Enjoy! DBFEngine
Today I compiled a simple MODBUS application to run on the Raspberry Pi. Since MODBUS has no security build into the standard, this will only be good for home or private networks, or through a VPN tunnel. My goal is to make a simple device that can be used to monitor things around the house. The first thing I am going to monitor and control is my garage door and man door in the garage. I will be posting all the instructions under the Pi Projects Section on the site as I complete it.
So, I was really bored and made a coin stack gauge. Really lame graphics, but I will eventually get around to improving it if people want to use it.
Just finished some bug fixes for the alarm areas if missing the ll or hh params. Also wrote a simple fuel gauge.