Martijn Heeroma wrote:I can make this easier in a future build...
would be nice, I think I'll wait for that
In the next build (not yet posted), try using $dev.addressStr. It'll contain either the X10 or INSTEON address as a string.
Matt
Martijn Heeroma wrote:I can make this easier in a future build...
would be nice, I think I'll wait for that
In the next build (not yet posted), try using $dev.addressStr. It'll contain either the X10 or INSTEON address as a string.
Matt
Martijn Heeroma wrote:Is it possible to add the dev.description string also ?
Martijn Heeroma wrote:and the "last 50 log lines"
Yes, I just added $dev.desc to the next build (still not yet posted).
NSScanner *theScanner;
NSInteger brightness;
NSString *brightnessstring = [[Devicelist objectAtIndex: gCurrentDevice_Nr] objectForKey:@"DeviceBrightness"];
theScanner = [NSScanner scannerWithString:brightnessstring];
while ([theScanner isAtEnd] == NO)
{
[theScanner scanInteger:&brightness];
}
slider.value =brightness;
- (void)sendCommandToIndigoURL:(NSString *)CommandURL
{
// create the request
NSString *string1 = @"http://";
NSString* string2 = [string1 stringByAppendingString:gIndigoServer_IPAddress ];
NSString* string3 = [string2 stringByAppendingString:@":"];
NSString* string4 = [string3 stringByAppendingString:gIndigoServer_WebPortNr];
NSString* string5 = [string4 stringByAppendingString:@"/"];
NSString* string6 = [string5 stringByAppendingString:CommandURL];
NSString* string7 = [string6 stringByAppendingString:@"?device="];
NSString* IndigoCommandURL = [string7 stringByAppendingString:gCurrentDevice_Name];
NSLog(@"IndigoCommandURL: %@", IndigoCommandURL);
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:[IndigoCommandURL stringByAddingPercentEscapesUsingEncoding:kCFStringEncodingUTF8]]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
// create the connection with the request
// and start loading the data
NSURLDownload *theDownload=[[NSURLDownload alloc] initWithRequest:theRequest
delegate:self];
if (theDownload) {
// set the destination file now
//[theDownload setDestination:CONFIG_SOURCE_PATH allowOverwrite:YES];
} else {
// inform the user that the download could not be made
}
}
Users browsing this forum: No registered users and 3 guests