eman
New Member
Posts: 8
|
Post by eman on Oct 29, 2013 10:58:33 GMT
Hi People, I have created a Web Service wrapper to further extend the Blync SDK. This allows any application (web, forms) hosted on any platform (Windows, Mac, Linux) to control a Blync light by calling the web service endpoints. I haven't figured out a good business application for it yet, but I enjoy hosting the web service on the workstations of my colleagues and watch them go crazy when I take control of their Blync light It might help build a physical dashboard that works with system monitoring software like SCOM or Nagios which can execute the web service to display flashing red lights in the office when critical systems go down. Well I hope it helps. Please let me know if you find this useful or need help installing the web service. Best Regards, Emmanuel Attachments:BlynclightWCF.zip (15.58 KB)
|
|
|
Post by Anton on Oct 29, 2013 23:24:06 GMT
Hi Emmanuel,
I like what you have done here. My company might be able to benefit from this. Is it possible to provide some instruction on how to install this web service?
Regards from Munich
|
|
eman
New Member
Posts: 8
|
Post by eman on Nov 1, 2013 14:20:24 GMT
Hi Anton,
Instructions as follows:
1)Extract the zip file to a folder. 2)Open IIS Manager and right click on the “Sites” node and select “Add Website..”, then point to the folder in step 1). Specify a port number if you like. 3)Voila - your Blync web service is running.
The web service can be consumed using this endpoint URL http://<ServerName>:<PortNumber>/BlynclightService.svc You'll be able to see all the various methods to control the Blync light from there.
I'll think about making an install package for this if it makes things easier.
Best Regards,
Emmanuel
|
|
|
Post by Anton on Nov 7, 2013 6:37:47 GMT
Thank you Emmanuel. This is a very fun tool Best Regards
|
|
|
Post by tskunka on Nov 24, 2013 23:34:31 GMT
Does the website go to the root of the extracted files or the level below where the .svc file is? I'm not having luck getting this running under IIS under Windows 8.1. This should be easy but it is being a pain. Thanks.
|
|
|
Post by Anton on Nov 27, 2013 5:52:30 GMT
Hi tskunka,
I made the website path point to the Blynclight folder not the BlynclightWCF folder from the ZIP. So when you open the website in IIS you see a bin folder within the website only.
Did you try that? Are you getting errors?
Best Regards
|
|
|
Post by tskunka on Nov 28, 2013 7:03:37 GMT
Got a bit farther I think... but still no luck. This is a spare PC I have... it is joined to a domain but logged in with my dot.net account... which has admin... but this feels like a perms thing.
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070021 Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". Config File \\?\C:\Blynclight\web.config
Requested URL http://localhost:82/ Physical Path C:\Blynclight Logon Method Not yet determined Logon User Not yet determined
Config Source: 20: <system.webServer> 21: <modules runAllManagedModulesForAllRequests="true"/> 22: </system.webServer>
|
|
eman
New Member
Posts: 8
|
Post by eman on Dec 1, 2013 11:06:29 GMT
Hi Tsunka,
For IIS 8, please turn on the following Windows feature through Control Panel -> Programs:
.NET Framework -> WCF Services -> HTTP Activation.
That should solve your issue.
Of course, please ensure that the user account running the Application Pool has Read and Execute access to the folder hosting the web service files.
Please let me know if this solves your issue.
Best Regards,
Emmanuel
|
|
pete
New Member
Posts: 5
|
Post by pete on Apr 11, 2014 13:56:54 GMT
Hi eman, nice work! I also get the 500 Server error and don't know why. Do you by any chance have a step by step instructions on what exactly to do? I did all the steps above
|
|
pete
New Member
Posts: 5
|
Post by pete on Apr 15, 2014 6:52:21 GMT
tskunka: Click "Start button" in the search box, enter "Turn windows features on or off" in the features window, Click: "Internet Information Services" Click: "World Wide Web Services" Click: "Application Development Features" Check (enable) the features. I checked all but CGI. This will solve that problem, but now i am getting another one
|
|
pete
New Member
Posts: 5
|
Post by pete on Apr 15, 2014 7:01:23 GMT
ok next steps open command prompt an put those commands:
DISM /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
now its working for me
|
|
pete
New Member
Posts: 5
|
Post by pete on Apr 15, 2014 7:38:22 GMT
Emmanuel could you provide a sample web service call? Somehow I cant figure out how to change the color ^^
//EDIT got it working now, did you built in multi device feature?
|
|
eman
New Member
Posts: 8
|
Post by eman on May 11, 2014 0:15:48 GMT
Emmanuel could you provide a sample web service call? Somehow I cant figure out how to change the color ^^ //EDIT got it working now, did you built in multi device feature? sorry for the slow reply pete. great to hear you got it working. good idea on multi-device feature. I dont think the SDK provides multi-device support. I posted to see if there is any movement on this.
|
|