LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

sgoffman

all messages by user

12/30/2015
Topic:
Error logged when triggering Scene On

Scott Goffman
Scott Goffman
Things seem to be working fine, but I noticed today that, starting on 11/22/15, an error is getting logged to errors.xml whenever I trigger a Scene On (either via event or manually), I assume due to one of the devices in that scene:

Okay, I can't paste the error message because this forum software freaks out and assumes that the presence of xml tags must be some sort of ISIS attack.

I've attached it in a text file, but for future reference, how can I insert code snippets & xml chunks into a message? On most forums the tags will encapsulate, but that doesn't work here.

-Scott
12/30/2015
Topic:
Not updating

Scott Goffman
Scott Goffman
Not sure if this is a bug, but I noticed that I'm still running 1.3.2130; the 1.3.2157 update was never auto-installed. Is that because my upgrade subscription has expired? If so, how can I re-activate it?

edited by sgoffman on 12/30/2015
12/30/2015
Topic:
Not updating

Scott Goffman
Scott Goffman
Gotcha, thanks for the info!
12/30/2015
Topic:
Error logged when triggering Scene On

Scott Goffman
Scott Goffman
Chris Cicchitelli wrote:

P.S. As long as we're talking about the forum software... wink It would be very nice to have the thread page numbers at the top of each page as well as at the bottom. Currently, if I want to see the most recent posts in a thread, I have to scroll to the very bottom before I can jump to the last page.
edited by sgoffman on 12/30/2015



Agreed that's annoying. I'll work on that...
edited by ccicchitelli on 1/2/2016
12/30/2015
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
[edit] Your tip helped, it turned out I had only pulled down the .cs and config for the CastleOSService; I ran svcutil on service2, and now have CastleOSUnsecuredService.cs and the unsecured connection config info.

Would still love to get sample authentication code, though, because I suspect I'm making this unnecessarily complicated...

-Scott
edited by sgoffman on 12/30/2015
1/2/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
Understood, and not a problem. Enjoy the show!
1/11/2016
Topic:
Scripts not running

Scott Goffman
Scott Goffman
Mike, in your new script did you remember to include "using CastleOSCoreService;"?

Just curious, does this work:


using System;
using CastleOSCoreService;
using System.Diagnostics;
using System.Net;

public class MyScript
{
public void Main(string[] args)
{
WebReq("http://localhost:5005/office/playlist/mix");
}

public static void WebReq(string url)
{
using (var wb = new WebClient())
{
var response = wb.DownloadString(url);
}
}
}
3/8/2016
Topic:
1.3.2212 stability problems

Scott Goffman
Scott Goffman
Since COS updated itself to 1.3.2212 a few days ago I've been having stability issues. When the the Core Service first starts up, everything is fine, but over the next (roughly) 24 hours, the CPU usage gradually climbs, memory usage goes up to about 1.5 GB, and the UI becomes slower and slower until it's completely unresponsive. At that point, I have to stop and restart the Core Service.

I'm not positive about this, but activating any Scene seems to either cause or accelerate the problem.

Are older versions available for download so I can roll back for now?

-Scott
3/8/2016
Topic:
1.3.2212 stability problems

Scott Goffman
Scott Goffman
Yes, I'm using an Insteon PLM. I'll send the remote support request.

Thanks,

-Scott
3/8/2016
Topic:
1.3.2212 stability problems

Scott Goffman
Scott Goffman
Do you mean the CastleOS admin account password? The default should still work. I am remoted into the server now, and TeamViewer is showing "Please wait until your partner joins the session."
3/9/2016
Topic:
1.3.2212 stability problems

Scott Goffman
Scott Goffman
Hi Chris,

Unfortunately, the problem is still occurring; when I went to use the UI last night it was unresponsive and I had to restart the core service. This morning it was back up to 1.1GB and constant CPU hammering.

Just a few errors reported, all "Queue processing failed 02 check."

-Scott
3/9/2016
Topic:
Once again, can't reach core services

Scott Goffman
Scott Goffman
If you're having the same issues I'm having with the latest version, you'll have to stop and restart the Core Service. That buys me about 12 hours of normal usage, then I have to do it again.

-Scott
3/10/2016
Topic:
Getting Excited About Curtains

Scott Goffman
Scott Goffman
That looks like a Chinese clone of the Makita kits (http://www.discounthomeautomation.com/Shop-By-Category/Makita-Drapery-Openers) that I'm using, with WAAAAAY better prices.

Looking forward to hearing your results, I hope it goes well!

-Scott
3/10/2016
Topic:
Getting Excited About Curtains

Scott Goffman
Scott Goffman
Since you're wiring it to your home automation system you won't miss the timer function; I used it briefly, but its lack of a battery backup is super-annoying.

One other possible difference: The IR receiver on the Makita model is on a rigid, bendable arm so you can position it away from the wall; the wire on the METechs doesn't look as stiff.
3/13/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
Thanks Chris. Does the new Beta change the way I should access the API via C#, or is only for REST queries? Either way, I would still like to see sample C# authentication code if you have it.

-Scott
3/13/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
Right, I've got that part set up already, but I was never able to get the secured client to accept the credentials. So what I'm still looking for is what you wrote: "The final piece to the puzzle is generating the authentication credentials to use with the secured service, and that is done in C#. I can provide a code sample for that, as well as the encryption key used for the credentials."

-Scott
3/13/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
Authentication still fails on today's beta: "The HTTP request was forbidden with client authentication scheme 'Basic'."
3/13/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
You would seriously rather debug my cobbled-together test-bed project than post some sample code? Y'know, if you want people to actually use your API you're going to have to post samples at some point...

But if that's really how you want to do this, you can grab it from here: http://goffman.net/downloads/CastleOScmd.zip

-Scott
3/13/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
That's great, I'll take a look at it tonight! Thanks!

-Scott
3/16/2016
Topic:
WCF Authentication

Scott Goffman
Scott Goffman
Chris, just wanted to let you know that the DotNet DLL works great, it's exactly what I was looking for. I used it to write a simple command-line tool that my old Harmony IR remotes now use to send lighting commands to CastleOS. Thanks again!

Oh, one small request: The DLL requires the .net Framework 4.5.2, which in turn requires Windows 7 SP1; I can upgrade my older HTPCs to that, but if you aren't actively using 4.5 features, you might consider building it against 4.0 (or releasing the source so users can compile it with whatever framework they're using).
-Scott
edited by sgoffman on 3/16/2016
1234 ..6