Arkiv för kategorin “TWatch”


Efter några veckors kvällsarbete är det nu dags att berätta om ProcessIt! (arbetsnamn), en modulbaserad Windowsservice som kommer att ersätta FF2DB och även TWatch på sikt. Dock är det så mycket mer än bara en ersättare för dessa två program. ProcessIt! är designat för att kunna stödja mängder av funktioner, med hjälp av moduler som fungerar som fristående program, men som också kan kommunicera med andra moduler genom ett gemensamt gränssnitt för utökad funktionalitet.

I första versionen kommer det att finnas stöd för databaser, bevakning av andra programs loggfiler samt 1-Wire. Därefter kommer stöd för Telldus’ Tellstick för styrning av lampor osv. Det finns också planer på ett klientprogram för visualisering av det data som passerar genom systemet; så som temperaturer, status på brytare mm.

En del av er känner kanske igen namnet; ni minns inte fel! Jag arbetade med detta projekt redan i höstas, men pga diverse orsaker blev det lagt på is. Nu är det hursomhelst igång igen och snart dags för en första beta.

Projektets sida finner du här.

Comments Inga kommentarer »

Äntligen har jag haft tid att börja experimentera med att logga vår elförbrukning. Programmet jag använder är EMC, ett gratisprogram skrivet av Techtrade.

Efter ett par dagars experimenterande och lite mailväxlande med Göran Krook på techtrade har jag fått det som jag vill ha det…iaf för tillfället. Eftersom jag är på humör för att skriva nu ska jag berätta hela historien för er. Håll tillgodo.

Första steget var att bestämma vilken form av sensor jag skulle använda, eller rättare sagt vilken kompexitetsgrad den skulle ha; endast en sensor baserad på en fotodiod fungerar i mitt fall. Valet stod mellan en väldigt enkel bestående av tre komponenter och en andra variant med ett tiotal komponenter. Den senare inkluderade kompensation för bakgrundsljus och därmed var betydligt mindre känslig för störningar, men samtidigt betydligt jobbigare att löda ihop. Valet föll på den enklare varianten då jag ju alltid Läs resten av inlägget »

Comments Inga kommentarer »

I samband med ominstallationen av servern uppdaterade jag Statlink. I den senaste versionen av detta program har FlatFile-databasen gjorts om så att filerna numera har namn efter ID-nummer. FF2DB klarar av att hantera detta utan problem, allt som behövs är att ange filen nya namn i konfigurationen. Jag har också åtgärdat ett problem i programmet så det gör tre försök och avbryter därefter inläsningen om något blir fel, istället för att som tidigare försöka med alla resterande filer. En ny version finns att ladda ner snart.

Även TWatch bör fungera med Statlink’s nya format.

Comments Inga kommentarer »

Sådärja, nu var serverbytet klart, trevligt med en egen server! I och med alla förfrågningar av mina program så har jag beslutat mig för att göra dom tillgängliga för nedladdning. Exakt när det är klart vet jag inte, men så snart som möjligt.

Comments Inga kommentarer »

Pust! Spenderat hela dagen med att måla brädor som ska ersätta vår norra fasad. Oljefärger är alltid så kladdiga, hellre använder jag vattenbaserade färger - täckfärgen är som tur är vattenbaserad. C:a 80 brädor á 4.2m blir i snitt 75m2, plus alla ändar och kanter….tur att det tar slut någon gång!

Fick ännu en förfrågan angående TWatch idag, kul!

Comments Inga kommentarer »

Varför är livet som ketchup? Ibland händer ingenting och sedan….pang, allt på en gång! Likadant är det på jobbet, ena stunden har man jobbat undan så pass att man kan göra det man har planerat att göra, nästa stund kommer det in panikjobb som måste vara klara igår! Ursh!

Mera ketchup effekt:
Jag har fått förfrågningar om både TWatch och FF2DB inom loppet av några dagar. Intresset för dessa program har ju varit svalt, men nu verkar det alltså som om det ökar. Det ska bli kul att se var det tar vägen….får peka på donationsknappen :)

Funderar på att skaffa ett konto hos site5.com igen. Var mycket nöjd med dem då jag sysslade med Dragonfly CMS. Måste ju ha någonstans att distribuera TWatch och FF2DB ifrån.

Comments Inga kommentarer »

I’ve just uploaded a beta 1 version of the flat file to database conversion tool I’ve been working on. You can download it here: (beta download no longer available)

To run it you’ll need to extract the files to a folder of your choice an then edit the settings. The “settings.xml” that comes with the archive is setup to work with the files produced by Husdata.se’s Statlink software, as well as Lämpömittari (although I have yet to verify this).

The configuration should be pretty self explanatory. There are really only a few settings you’ll need to change; the FlatFileToDb/DatabaseConnection/* and the FlatFileToDb/DateSortedFiles/RootPath settings.

If you’re going to use this software with Statlink, you’re now all set. Users trying to get it to work with Lämpömittari need to edit the FlatFileToDb/DateSortedFiles/* settings as the filenames are likely not the same as Lämpömittari produces.

I don’t recommend changing the <../File/RegExp>-tags unless you really know how regular expressions works.

Once you have the settings sorted, you can now use the SQL script file that comes with the archive to create the required database on your MySQL server. If you’re not using the default configuration in the FlatFileToDb/DateSortedFiles/ section you’ll have to create your own database with associated tables.

There are two modes the application can run in; Auto parsing and manual. To enable the auto parsing mode you’ll have to start the application using the command switch “/auto”, ie. “c:\path\FlatFileToDatabase.exe /auto”. When in auto mode, most of the user interface is disabled.

Exiting the application can only be done using the exit-button, other ways (ALT-F4 etc.) will only hide the application window; it will then only be available through a double-click on the applications icon the notification area (or Systray, depending on who you ask) on your Start-bar.

Even though I doubt that by using this application you put you and yours in danger (or your files for that matter), you use this software at your own risk.

Comments Inga kommentarer »

The work on the new TWatch (I’ll likely change that name later on) has begun. I’m currently working on the Flat-file-to-Db application. The core is about 80% finished and working fine.

The main purpose of this application is to read the flat file database produced by Statlink, but it will also have a limited support for other flat files; as long as the values are in the form date-value, and one item per line, the application will be able to read it (with the appropiate configuration, of course).

I’ve decided to make this applications work in two modes:

  1. First Use Conversion
  2. Monitoring

The First Use Conversion mode will have a simple user interface allowing the user to make some choices before the flat-file-to-database conversion starts.

The Monitoring mode will work in the background, parsing the flat files in real-time. Naturally, this is the mode the application will run in once the initial data conversion is complete.

The application is configured using a XML file. Seeing as the configuration is very simple I’ve opted not to make a configuration dialog; this might be added at a later time if enough requests are voiced.

I’ve opted for a MySQL database since it is very easy to install and configure, and it also runs good on older computers with good performance. The fact that it also has very good support for .Net didn’t make the choice any harder :)

Comments Inga kommentarer »

Today I’ve spent some time thinking about what I want to do with TWatch and here’s what’s going to happen:

  1. The development of the current TWatch will cease.
  2. A new, multi part application will be created.
    It will include:
    1. A database to hold the data.
    2. A flat-file-to-db converter/monitor.
    3. A client to view and process the data.

I feel that continuing working from the flat files delivered by Statlink, puts quite a lot restrictions on what I can do without writing a database-like layer around the files. The current TWatch does its job nicely, but adding more features requires more work than it should due to the lack of a real, searchable database.

I’ve opted to use MySQL as the database since it is freely available and very easy to install, even for someone who’s never done it before.

That’s all for today, now it is time to do some sketching on the design. Cheers!

Comments Inga kommentarer »


Peter, over at husdata.se, has released a new version of his software for the IVT heatpumps. The major improvement is the ability to place the status labels on a custom background, so that you can create your own view of your installation - very nice! Since he hasn’t posted any screen shots on this feature, I’ve added a screen shot from my own setup so you can see what it is all about. I made the background image in SketchUp, a very easy-to-use 3D rendering program.

Another new feature that has been added are graphs for the temperature readings, also a nice thing to have. Depending on which features Peter intends to implement TWatch might become obsolete… I’ve had some thoughts to move from todays flat-file database to a SQL database to both increse the parsing speed and to ease the addition of new featers to TWatch.

Lastly, I’ve ordered a few samples of the 1-Wire temperature sensors from Maxim and I’m going to try their .NET API, should be an interesting experiment.

Update: Someone else also liked the 3D model I made: Click me

Comments Inga kommentarer »