upstatemike Posted November 4, 2008 Posted November 4, 2008 Is there a way to set the event viewer to provide a less detailed view? I'm looking for something that uses the assigned names rather than the Insteon addresses and just show changes as in: Device "Kitchen Lights" ON Device "Front Hall" Fast OFF Scene "Evening" ON X-10 L4 OFF etc. The way I want to use it is to walk around testing a bunch of stuff and then scan down the list of actions in the event viewer to verify which actions registered correctly. The detailed events in showing raw Insteon traffic are great for looking at a small number of commands in detail but for larger lists of commands the simple format would be much more readable.
upstatemike Posted November 4, 2008 Author Posted November 4, 2008 Actually, the log is already in this format and I guess I could do my tests and then review it in Excel. I'm just suggesting that it would be handy to have an event viewer view that shows the log entries in real time. Or is there already a way to do this in the GUI?
Brignolo Posted November 4, 2008 Posted November 4, 2008 The way I want to use it is to walk around testing a bunch of stuff and then scan down the list of actions in the event viewer to verify which actions registered correctly. The detailed events in showing raw Insteon traffic are great for looking at a small number of commands in detail but for larger lists of commands the simple format would be much more readable. This would be an excellent addition. I, like many others, have been chasing the "status" issue (see http://forum.universal-devices.com/viewtopic.php?t=1752) for several months. This would enable me to resolve communication issues at the device.
bpwwer Posted November 4, 2008 Posted November 4, 2008 Would a windows command line utility that did this be helpful? Not that I need more things to do but this seems pretty simple. Even a GUI based app wouldn't be too hard, I have most of the code to do this in one of my plug-ins already.
upstatemike Posted November 4, 2008 Author Posted November 4, 2008 Would a windows command line utility that did this be helpful? Not that I need more things to do but this seems pretty simple. Even a GUI based app wouldn't be too hard, I have most of the code to do this in one of my plug-ins already. Anything that shows simple "log style" events in real time.
G W Posted November 4, 2008 Posted November 4, 2008 The best way to do this is to subscribe to the web service.
upstatemike Posted November 4, 2008 Author Posted November 4, 2008 The best way to do this is to subscribe to the web service. OK.. What does that mean exactly? Is it something like subscribing to an online magazine?
G W Posted November 4, 2008 Posted November 4, 2008 The best way to do this is to subscribe to the web service. OK.. What does that mean exactly? Is it something like subscribing to an online magazine? Yes it is. Each time an event happens, the ISY send the details in a XML file to the computer that issued the subscription. I have my web server subscribe to the ISY. The ISY send the event data to the web server. The web server then reads the data and writes it to a SQL table. It also keeps in memory, the status of every node. I can also query the table top see what has happened in the past for each node. The web service is very powerful.
bpwwer Posted November 5, 2008 Posted November 5, 2008 Ok, here's version 1.0 of a command line event viewer app for Windows. It does use the web services to subscribe to the ISY and thus needs Microsoft's .NET framework version 3.0 or later. Also, it's only going to work with ISY firmware versions 2.6.6 and 2.6.7. Open a command prompt and run: isylogger It will log device status changes and the events associated with button presses. Other events will probably be logged too but they won't be formatted. You can grab it from here: http://www.bobshome.net/isy/isylogger.zip
upstatemike Posted November 5, 2008 Author Posted November 5, 2008 Ok, here's version 1.0 of a command line event viewer app for Windows. It does use the web services to subscribe to the ISY and thus needs Microsoft's .NET framework version 3.0 or later. Also, it's only going to work with ISY firmware versions 2.6.6 and 2.6.7. Open a command prompt and run: isylogger It will log device status changes and the events associated with button presses. Other events will probably be logged too but they won't be formatted. You can grab it from here: http://www.bobshome.net/isy/isylogger.zip I gave it a try but got this error: Description: Stopped working Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: isylogger.exe Problem Signature 02: 1.0.0.0 Problem Signature 03: 491119c0 Problem Signature 04: mscorlib Problem Signature 05: 2.0.0.0 Problem Signature 06: 47577b16 Problem Signature 07: 416b Problem Signature 08: 27 Problem Signature 09: 2M52EXV2C4QV0UEVRPJP1P2VVUBSMIVE OS Version: 6.0.6001.2.1.0.768.3 Locale ID: 1033
upstatemike Posted November 5, 2008 Author Posted November 5, 2008 MORE ERROR INFO FROM THE SYSTEM PROMPT WINDOW (IP and user / password edited for this post) C:\Users\Michael>isylogger XX.XX.XX.XX ***** ***** ISYLogger version 1.0 Copyright© 2008 Robert Paauwe Created service client. Set ClientCredentials. Get ISY Config. Get Nodes Config. Unhandled Exception: System.ServiceModel.CommunicationException: The maximum mes sage size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding eleme nt. ---> System.ServiceModel.QuotaExceededException: The maximum message size qu ota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. --- End of inner exception stack trace --- Server stack trace: at System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceeded () at System.ServiceModel.Channels.HttpInput.GetMessageBuffer() at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStr eam) at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception& req uestException) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpCha nnelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeS pan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message messag e, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim eout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall Message methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req Msg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa ta, Int32 type) at ISYLogger.UDISYServices.UDIServices_PortType.GetNodesConfig(GetNodesConfig Request request) at ISYLogger.UDISYServices.UDIServices_PortTypeClient.ISYLogger.UDISYServices .UDIServices_PortType.GetNodesConfig(GetNodesConfigRequest request) at ISYLogger.Program.Main(String[] args) C:\Users\Michael>
bpwwer Posted November 5, 2008 Posted November 5, 2008 Was the first problem related to the .net framework version? If so, maybe I would be better off not using the web services framework. That would allow the app to run with .net 2.0 I'm going to blame the crash on Michel, he convinced me to use web services instead of writing all my own code - just kidding Michel It looks like this ISY is sending more data in a HTTP packet than what the default message size allows. I can configure that setting so I just bumped it up to 4X (256K). That should be large enough. But my setup doesn't have enough device/scenes to exceed the 65K size so I can't really test it. I just updated my website with a new version. Let me know if it works. Anybody else have any other feedback?
upstatemike Posted November 6, 2008 Author Posted November 6, 2008 I tried the new one but had the same problem. I checked the .net 3.0 settings and saw that 2 items were not checked by default. I checked those items and Windows installed those elements but it didn't solve the issue.
bpwwer Posted November 6, 2008 Posted November 6, 2008 Ok, I made it leaner (but not any meaner). It is now built against .net 2.0. I replaced all the web services calls with more generic http request calls. Usage and output remain the same. http://www.bobshome.net/isy/isylogger.zip Usage: isylogger Output looks like this: ISYLogger version 1.2 Copyright(C) 2008 Robert Paauwe Get Nodes Config. Start Subscription. ISY is Idle. Bedroom Chest...................... at 0 Bedroom Control - 1................ at 0 FR Control - 1..................... at 0 FR Control - 2..................... at 0 FR Control - 3..................... at 0 Office Fan......................... at 255 Kitchen Nook....................... at 0 Dinning Room....................... at 0 Hall / Family Room................. at 0 Living Room Floor.................. at 0 Hallway #1......................... at 0 Front Porch........................ at 255 Hallway Keypad..................... at 0 Living Room - Hall................. at 0 Bedroom - Hall..................... at 0 Bedroom Floor...................... at 0 Family Room Accent Lamp............ at 229 Family Room Table Lamp............. at 216
aLf Posted November 6, 2008 Posted November 6, 2008 Did I miss the original post on this? Sounds like a great option! How do I get the software and do you have instructions on using it. Sorry for the post-event posting. Regards, aLf
bpwwer Posted November 6, 2008 Posted November 6, 2008 Did I miss the original post on this? Sounds like a great option! How do I get the software and do you have instructions on using it. Sorry for the post-event posting. Regards, aLf You can grab a copy from my website, http://www.bobshome.net/isy/isylogger.zip It's pretty simple, unzip the program, open a command prompt, execute the program with your ISY's ipaddress, username, and password as arguments. Not fancy auto detecting of the ISY.
upstatemike Posted November 6, 2008 Author Posted November 6, 2008 This one works great... but how do you exit? ctrl C?
bpwwer Posted November 6, 2008 Posted November 6, 2008 This one works great... but how do you exit? ctrl C? Yeah, Ctrl-C
Recommended Posts