-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments, Questions, open forum #1
Comments
I have the bridge and I think I can get it's ip just fine. I am on a mac and can't seem to get XAMPP to open your index file. |
I'll go out on a limb and assume that my project is the only files in your ht docs directory? If you go to 127.0.0.1 in a browser what do you see? I run this on Windows and have set it up on a virtual house, but that shouldn't matter. I'll try this on a mac this evening and try it out. Is xampp running? You may need to make sure it is running on port 80, if it is running on a different port you may need to address it like 127.0.0.1/index.php:PORT# hope that helps! |
I got the XAMPP working and set my getaway ip up in the include.php file. My IP is 10.0.1.4 and I now get this: Parse error: syntax error, unexpected '.0' (T_DNUMBER) in /Applications/XAMPP/xamppfiles/htdocs/include.php on line 8 This is what I have on line 8 of include.php: define("LIGTHING_URL", “10.0.1.4”); //IP address of gateway |
wanted to add that I did a port scan of the gateway ip and 443 is the only one open |
Ok so I set this up on my Mac (I typically dont use it) so, the first time I run the script, without the sync button I see this: when I press the sync button and refresh, I see this: I can see in this time my token is: fp67as0a9tidh2fdjxb01egp3y3dk8n64z34xh4b I copy this token and am going to paste it into my include.php file - I'm using text wrangler FYI - (From the comment above, I wonder if your text editor is placing odd markup. So my file looks like this: now when I refresh the screen I see: I think your text editor may be making decorative quotes which are not running. Also your IP is odd. What kind of router are you using. To Test to make sure you can hit your bridge, throw it's address in a browser, like so: https://192.168.1.114/gwr/images/ or for you https://10.10.1.4/gwr/images/ you should get a response from the bridge like so: in the picture there, it doesnt matter that it says forbidden, its just showing that bridge is responding. I think you may need to check your network settings. It seemed to work ok on my Mac using XAMPP. Best of luck, Bren |
IP is correct all Apple network hardware. The 10.0 is an "apple thing" quotes were the problem. working on token now |
Thanks so much. It's working. If it is acceptable, I will happily donate some cash as soon this gets the ability to do timers. I have about $250 worth of bulbs that now do nothing on all the timers they used to be on. Already bought a phillips hue and 13 replacement bulbs, but I would love to use my old TCP's |
That's fantastic! I'm glad to hear it is working :) I'm not looking for any cash, this is just a little pet project and I was actually going to look into programming some timers. My end goal is to run this on a Raspberry Pi and have a sensor trigger the lights. Re: timers, there are a few ways to do this, I could setup a database, and then you'd have to setup a cron job on your computer to check the script to see if it is time to turn on / off the lights. However if you are looking to try something, the interface I wrote, actually calls a little API behind the scenes using Javascript when you click the on/off buttons or drag on the slider. I haven't looked into event programming on a Mac - however, if there is a way to script tasks, all you would need to do is send get requests to the API file on intervals with the Bulb IDs or Room Ids. If you look at the top of my index file, I have some pretty simple little scripts eg: As an example, try putting this in your browser: It should turn on all the lights connected to the bridge :) In theory, if you could setup computer scheduled events, you could tell the event to open that page, and it would act like a timer. and then you could turn all the lights off by doing so: I know how to do this in Windows, but I'd have to look into how to do it on a Mac. Please if you could send me some screenshots of it working in your browser 👍 Thanks for trying it out! Brendon |
Well, I can't say I'm stoked to see it in PHP but I also have about $250 in TCP doorstops and would be rad to see them functioning again. I'd be happy to contribute code, I'd love to see these working via smartthings again! gonna setup php and give this a shot.. thanks! |
@ahhdem Fantastic, yes, please try it out. I am going to implement some scheduling code so people can setup schedules for the lights. Afterwards I will also working on reverse engineering some off the classes within the android app. (Easier to decompile an apk vs iPa) if you pm me, that will probably be the more difficult and time consuming part. |
Is this something that could be adapted into one of the hue bridge emulator projects such as https://github.com/bwssytems/ha-bridge to piggyback on all of the Hue integration all over the place? I was going to start from stockmopar's protocol teardown but this looks like it is much farther along. |
I believe this builds on StockMopars work, so should be farther along, yes. As far as the Hue integration, it would be totally possible to make a single project that handles both, but in my guess not likely to share much code (outside of UI etc). @bren1818 sorry I haven't had any time to contribute this week, my hub WAS in a state of never-updated for over a year but the dd-wrt access restrictions completely failed me [note to self: never trust anything other than hand written iptables rules. ugh.] and it upgraded/bricked itself -- the current update situation from greenwavereality appears to be broken unless my panicked unplugging upon seeng the green WAN light fubar'd the thing. I've got some TTL/USB adapters so I'm going to try and get on it and see if there is anything obvious hanging up the system but my GUESS is that I have zero image/software now so without some sort of a dump or restore I may be more-or-less out of the TCP game unless I pickup another hub/disappointed persons hub etc. nearly $300 in glowing paperweights. heh. updates next week, with luck. |
@Telekinetic as @ahhdem indicated it likely could be integrated (I haven't looked at that particular project) however the code base for the TCP stuff is specific to TCP. All of the calls to the TCP bridge are prefaced with GWR (Green Wave Reality) and im pretty positive the way hue communicates with its bulbs is a different protocol than how TCP does. That said, in the future, I'll look into Hue support as I have a few Hue lights too. I'm fairly certain though that given the number of Hue Light Apps out there, their communication schema is probably better documented. @ahhdem If you hit up Home Depot, they are clearing out the TCP stuff now, last weekend I picked up two bridges (which come with 2 bulbs each) for 20$ a pop. I figured at one point the bulbs were 20$ each so I'm coming out ahead and have two backup bridges to work with. There was a post on StockMoPar's page where someone indicated they had downloaded the update images. I reached out to them here: http://home.stockmopar.com/updated-connected-by-tcp-api/ but no reply yet. I didnt get any work done on this at all this week either. I started working on the scheduling but got side tracked. I have decompiled the TCP Android App back to their JAVA classes, but will still require some time tracing through the code to re-create or determine the bridge calls. Will try to get to this more next week 👍 |
@bren1818 the Hue bridge emulator is a particularly good fit for development integration because there are so many things that work with it. It isn't meant to actually bride to Hue bulbs, but to let things that have easy built-in ways to control Hue bulbs (like Amazon Echo and Wink and Smartthings etc etc do) think they are talking to Hue bulbs through a Hue bridge, when they are really talking to something else--in this case, Tcp bulbs through the Tcp gateway. It is essentially half of a translator, and the one I linked already has built in ways to have the Hue "inputs" translated into Udp outputs, which, as I understand, gets us a decent amount of the way to having these things easy to reintegrate. |
@Telekinetic - I see what you're saying, but what I was trying to get at is I presume that the Web interface which GreenWave used to have - before Hope that makes sense. Let me know if I got anything wrong though, I'm Cheers On Jul 30, 2016 1:45 AM, "Telekinetic" [email protected] wrote:
|
@thatguy73 - I have implemented a scheduler feature - very very new (not vigorously tested). It can be run two ways, leaving the browser open after clicking poll continuously, or, after saving your schedule, setting up a system event to execute the runSchedule.php file. Give it a go - not 100% sure if this is what you meant by timers, but hopefully you like it and some of the other updates. You will also need to put in your local url in the include.php to point to where you're hosting the 'site'. I should write a readme... Cheers! Bren |
Awesome project Bren, I was the one who posted the instructions on how to downgrade the firmware on the hub so it was usable again on that blog. I uploaded the files to a repo in the event you or anyone else needs them and clarified a few things in the instructions, and included the extracted root fs. sadly, haven't had the time to do much else than write a bash script to control my lights from ssh. https://github.com/hypergolic/greeenwave_firmware Hope it helps, sure was aggravated myself when mine got upgraded and I got locked out of everything and redirected to their stupid website. |
@hypergolic Fantastic! Thanks for uploading/sharing those files. Fortunately, I am/was still able to control my lights using the APP and via the project here. I'm still dredging through their app code, but havent made much progress. I feel I should at the very least figure out light detection etc. This right now is kind of a home automation project for me. Again much appreciated! |
thanks @hypergolic! I was about to buy a hub and light set for $20 bux online due to greenwave bricking my hub, but this should probably get me back up and running again! w00t |
awwwyiss. was able to get my hub back online.. lights are working again! sweet sweet dimability! I set a static dhcp record for the tcp hub, manually wrote some iptables rules to restrict it by MAC to talking to -just- my remote server, and used dnsmasq running on my gateway (which is my dhcp set dns server) to override *.greenwavereality.com/eu (it also talks regularly to tcp.greenwavereality.com -- using netcat to try and get more details on this) to my servers IP address. From there a simple nginx ssl host block was fine with the following addition: I guess the code in this repo wont be of much use to me, unless I find trouble integrating with smartthings and choose to upgrade the firmware intentionally -- especially now that I can go back! 👍 |
sent a pull request to @bren1818 that makes his code work on @hypergolic's posted firmware. I am back in action. Hoping to get some of the details from dev_sec on this thread: https://community.smartthings.com/t/any-interest-in-tcp-connected-hub-local-integration/51926 regarding his local device handler -- since I have no need to proxy ssl with the old firmware, a seamless integration -should- be possible! UPDATE: Looks like I might be able to use Todds work here: https://github.com/twack/TCP-Connect UPDATE2: I was able to make this work with some minor modifications. I used a proxy through a publically availablle web host into my private network to get to the tcp hub -- not sure if that was required or not. Once I have the code a little cleaned up and the modifications minimal I'll share it and link here. |
Glad you got it working :). FYI, I believe they use this library: http://www.nxp.com/products/interface-and-connectivity/wireless-connectivity/2.4-ghz-wireless-solutions/jennet-ip:JENNET-IP I pulled some interesting stuff off of it via the "holger" binary on it. If you are looking to sniff the mesh network without much work, it has tcpdump built into the firmware among another annoying things..it has more logging than I can ever imagine was needed, some urls i found: I updated my repo with some quick instructions on modifying, unpacking and repacking the firmware, as well as a updated image with ssh re-enabled & updates disabled via deleting the default dhcp route, until i get time to look over it and nail the door shut on updates forever, but since I dont plan on ever allowing it to talk outside of my network, having no default route was a fast way for me. https://busybox.net/downloads/binaries/1.21.1/busybox-powerpc Lightning fried my smart things hub recently, so I' cant really be of much assistance on integrating with that until I pickup a new one.. |
@thatguy73 @ahhdem @hypergolic I've been trying to get some info from support at TCP, although they don't say much. One thing they did note was, this is the "replacement" for TCP: http://consumer.nimbus9.co/ but it looks like all it offers is what my project is attempting to emulate. I'm still working on reverse engineering the code but not having much luck. I'm trying to work without downgrading my tcp bridge, but I may have to go that route. I cant capture the commands being issued as its over ssl, and the code isn't the easiest to trace. |
The modified firmware I posted uses a bit newer rootfs I believe, but with ssh enabled, so it may be useful to you in that fact. The original unmodified firmware is the version with SSH enabled from the factory that has the local http webserver instead of the https only webserver. |
i love this work, i had no idea you guys were keeping it going. I checked out that "Unifi Passport" they want for $150 for whomever bought out TCP Connected rights I'm assuming. If anyone has a home automation system, z-wave/zigbee/btle/wifi/insteon,etc check out Vera Plus, the new (April '16) home automation hub, it does all that but the magic is the apps from MiOS store, which, just so happens..... http://code.mios.com/trac/mios_tcplighting/wiki I actually thought I saw the dev lurking here, or on another TCP github project similar to this. This is a flawless integrated way to add all our tcp bulbs (I have.....42 now, since eBay auctions ended last week) Dirt cheap, crushed box return/pallet sales from Home Depot. Glad to see you guys figuring this out for more applications..... I signed up to comment on this. Thanks for getting me on Git. |
@hax0rmort, Glad you like it and thank you for the links. I actually just pushed an update to add some functionality. Wish I had more time to work on this, but it is a fun hobby. |
I am glad to see the efforts a few of you are giving here. I was about to pitch my hub and lights in the donation box. I tried the web interface and can't seem to get a token. I also have a serial connection to the hub but can't get anything other than garbage. It is a 3.3v FTDI serial. I am thinking about downgrading the firmware. Any suggestions for my first fix? TIA |
Hmm, what do you mean you have a serial connection to the hub? Why not use Otherwise just make sure you have the right ip address in the include file Also make sure you hit the sync button on your hub first. Other people have had success downgrading the firmware, I haven't done that On Aug 28, 2016 3:35 PM, "Stuart Rothrock" [email protected] wrote:
|
Bren is an absolute genius! Has anyone been able to link up the program to Smart Things? |
bren1818, I've been using HiddenStart (www.ntwind.com/software/hstart.html) in the task to launch the runSchedule.bat in the background, thus avoiding the command prompt window appearing every minute while I'm using the PC. Seems to be working well. |
Haven't heard of it but thanks for suggestion. In the task scheduler you
can make it so the cmd prompt doesn't pop up. See:
http://www.howtogeek.com/tips/how-to-run-a-scheduled-task-without-a-command-window-appearing/
Cheers, Bren
…On Nov 29, 2016 1:40 AM, "AinV07" ***@***.***> wrote:
bren1818, I've been using HiddenStart (www.ntwind.com/software/hstart.html)
in the task to launch the runSchedule.bat in the background, thus avoiding
the command prompt window appearing every minute while I'm using the PC.
Seems to be working well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACDCHwEU5n62y8ODRQG7oe1_8quFkCmyks5rC8j5gaJpZM4JSwDx>
.
|
@bren1818 I loaded your newest build and still cannot get the scheduler to work. Following your list of suggestions, everything up to and including the scheduled.sched is OK, the scheduled.actioned is missing. |
@Jofrah hmm your error is a 404 (File not found)... are you running on a Mac or linux machine by chance? Only thing I can think of is runSchedule.php has either been moved, or renamed (perhaps the S in Schedule isn't uppercased? Can you post a screen shot of your project directory? |
Ok so the lighting app isn't in your root folder. That's ok. Do you have a
virtual host set up? I think what's happening is you do not have a virtual
host setup, as the runSchedule.php must be being looked for in /htdocs vs
/htdocs/TCPLightingWebInterface-master/ as the file is there for sure.
Let me know if you have a virtual host or need help setting one up.
Cheers,
Bren
…On Nov 30, 2016 6:34 AM, "Jofrah" ***@***.***> wrote:
Nope. PC with Windows 7 (although I do want to port this to a R-Pi
eventually :-) .Here is the screen shot:
[image: image]
<https://cloud.githubusercontent.com/assets/24196487/20750869/f99afe52-b6c6-11e6-8b3e-156a4efe1515.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACDCH-iF1UJT_xMgVFK1-GCLVq0NIDjBks5rDV9SgaJpZM4JSwDx>
.
|
Could I just move everything over directly into the /htdocs root?
Thanks!
John
*From:* Bren [mailto:[email protected]]
*Sent:* November-30-16 10:23
*To:* bren1818/TCPLightingWebInterface <
[email protected]>
*Cc:* Jofrah <[email protected]>; Mention <[email protected]>
*Subject:* Re: [bren1818/TCPLightingWebInterface] Comments, Questions, open
forum (#1)
Ok so the lighting app isn't in your root folder. That's ok. Do you have a
virtual host set up? I think what's happening is you do not have a virtual
host setup, as the runSchedule.php must be being looked for in /htdocs vs
/htdocs/TCPLightingWebInterface-master/ as the file is there for sure.
Let me know if you have a virtual host or need help setting one up.
Cheers,
Bren
On Nov 30, 2016 6:34 AM, "Jofrah" ***@***.***> wrote:
Nope. PC with Windows 7 (although I do want to port this to a R-Pi
eventually :-) .Here is the screen shot:
[image: image]
<
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
,
or mute the thread
<
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXE1h6DaFIbu1m9Wu8KNMvRmNgqedRi5ks5rDZTZgaJpZM4JSwDx>
.[image: Image removed by sender.]
|
Yes you can. Virtual host is just another option if you want sub
directories in your htdocs
…On Nov 30, 2016 11:46 AM, "Jofrah" ***@***.***> wrote:
Could I just move everything over directly into the /htdocs root?
Thanks!
John
*From:* Bren ***@***.***
*Sent:* November-30-16 10:23
*To:* bren1818/TCPLightingWebInterface <
***@***.***>
*Cc:* Jofrah ***@***.***>; Mention ***@***.***>
*Subject:* Re: [bren1818/TCPLightingWebInterface] Comments, Questions,
open
forum (#1)
Ok so the lighting app isn't in your root folder. That's ok. Do you have a
virtual host set up? I think what's happening is you do not have a virtual
host setup, as the runSchedule.php must be being looked for in /htdocs vs
/htdocs/TCPLightingWebInterface-master/ as the file is there for sure.
Let me know if you have a virtual host or need help setting one up.
Cheers,
Bren
On Nov 30, 2016 6:34 AM, "Jofrah" ***@***.***> wrote:
> Nope. PC with Windows 7 (although I do want to port this to a R-Pi
> eventually :-) .Here is the screen shot:
> [image: image]
> <
https://cloud.githubusercontent.com/assets/24196487/20750869/f99afe52-
b6c6-11e6-8b3e-156a4efe1515.png
>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#1 (comment)-
263852203
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ACDCH-iF1UJT_xMgVFK1-
GCLVq0NIDjBks5rDV9SgaJpZM4JSwDx
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/bren1818/TCPLightingWebInterface/
issues/1#issuecomment-263900671>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AXE1h6DaFIbu1m9Wu8KNMvRmNgqedRi5ks5rDZTZgaJpZM4JSwDx>
.[image: Image removed by sender.]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACDCH3f7ovo-TSvXr82YxQYIhmTv-vu5ks5rDahUgaJpZM4JSwDx>
.
|
OK then. I’ll give it a try tonight.
Thanks!
*From:* Bren [mailto:[email protected]]
*Sent:* November-30-16 12:03
*To:* bren1818/TCPLightingWebInterface <
[email protected]>
*Cc:* Jofrah <[email protected]>; Mention <[email protected]>
*Subject:* Re: [bren1818/TCPLightingWebInterface] Comments, Questions, open
forum (#1)
Yes you can. Virtual host is just another option if you want sub
directories in your htdocs
On Nov 30, 2016 11:46 AM, "Jofrah" ***@***.***> wrote:
Could I just move everything over directly into the /htdocs root?
Thanks!
John
*From:* Bren ***@***.***
*Sent:* November-30-16 10:23
*To:* bren1818/TCPLightingWebInterface <
***@***.***>
*Cc:* Jofrah ***@***.***>; Mention ***@***.***>
*Subject:* Re: [bren1818/TCPLightingWebInterface] Comments, Questions,
open
forum (#1)
Ok so the lighting app isn't in your root folder. That's ok. Do you have a
virtual host set up? I think what's happening is you do not have a virtual
host setup, as the runSchedule.php must be being looked for in /htdocs vs
/htdocs/TCPLightingWebInterface-master/ as the file is there for sure.
Let me know if you have a virtual host or need help setting one up.
Cheers,
Bren
On Nov 30, 2016 6:34 AM, "Jofrah" ***@***.***> wrote:
> Nope. PC with Windows 7 (although I do want to port this to a R-Pi
> eventually :-) .Here is the screen shot:
> [image: image]
> <
https://cloud.githubusercontent.com/assets/24196487/20750869/f99afe52-
b6c6-11e6-8b3e-156a4efe1515.png
>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#1 (comment)-
263852203
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ACDCH-iF1UJT_xMgVFK1-
GCLVq0NIDjBks5rDV9SgaJpZM4JSwDx
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/bren1818/TCPLightingWebInterface/
issues/1#issuecomment-263900671>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AXE1h6DaFIbu1m9Wu8KNMvRmNgqedRi5ks5rDZTZgaJpZM4JSwDx>
.[image: Image removed by sender.]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
,
or mute the thread
<
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXE1h4krkarEikm_5Iwh9HJkrEsP-aRXks5rDaxcgaJpZM4JSwDx>
.[image: Image removed by sender.]
|
@bren1818 after moving everything to the htdocs/ root directory the scheduler now works!! Thanks for your help. Just out of curiosity, since it doesn't affect the operation of your scheduler, but do you have an idea of how the Bridge gets its clock and time-zone settings? It must get them from somewhere unless it has an on-board RTC, because it retains its (erroneous +20 minute time) even after power down... |
@Jofrah - Glad that worked. I haven't yet tested the app on a Raspberry Pi, but in theory it should work without issue. I would assume the bridge gets it's time information from a time server, that being said, when rooting around in some of their source code, I did find a set time methods, which included setting the datetime, timezone name, and by long/lat so its possible you could set it using one of the apps. As you acknowledged though, my scheduler relies on your system clock to issue the commands, so the clock on the bridge can be any time, and it wont matter. Cheers, |
Hi Bren - just wondering, is it possible to integrate your app with IFTTT? |
@bren1818 I've started testing on Linux Mint with LAMP installed. I can get as far as the "You haven't generated your token" message, but can't get it to catch the token. I can ping the bridge and have even used the manual commands to generate the token, then paste it into the *.php where you indicate to do so, but no joy. I think it has to do with the write permissions in the var/www/html directory. The tcp.token file isn't generated. I'm trying to figure out how to give write permission to your code from within the var/www/html directory where it all resides, but I'm just noodling around. Thanks! |
I just created the file manually and temporarily chmoded it 777 until the key generation was complete
Paul
On Dec 2, 2016, at 7:20 PM, Jofrah <[email protected]<mailto:[email protected]>> wrote:
@bren1818<https://github.com/bren1818> I've started testing on Linux Mint with LAMP installed. I can get as far as the "You haven't generated your token" message, but can't get it to catch the token. I can ping the bridge and have even used the manual commands to generate the token, then paste it into the *.php where you indicate to do so, but no joy. I think it has to do with the write permissions in the var/www/html directory. The tcp.token file isn't generated. I'm trying to figure out how to give write permission to your code from within the var/www/html directory where it all resides, but I'm just noodling around. Thanks!
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AWehm0EdZQWvopcfWl-hCLf3fEPAY1Zwks5rEMPjgaJpZM4JSwDx>.
|
@merrickw - I haven't worked with IFTTT but I just applied to 'make applets' on their site. I'm assuming it's likely that my stuff could be integrated with IFTTT. I am re-writing some of the files to make it more extensible. I also want to add Hue Support, which I think works with IFTTT so we'll see if I can get something at somepoint. @Jofrah try setting permissions on the html directory to 775 cd /var/wwwchmod -R 0775 htmlthen try to re-run the script. IF you cannot make it writeable, you can hard code the token in the include, just set the USE_TOKEN flag to 0 and paste the token accordingly. You may also need to make apache or whatever the www user is own www. Hope that helps! edit looks like Paul beat me to the post. Thanks @sktaylortrash |
Bren - I'm glad you're looking at it ... it might be cool if an applet could call a specific lighting scene ... ultimately I would say to Google Home "Hey Google, Lighting scene 5" and through your IFTTT applet scene 5 would be invoked on the TCP bulbs .... |
OK, so I chmoded html to 777, and created the file, but nothing got written into it when I pressed the sync button.. |
@Jofrah Please doublecheck that you have the correct bridge IP. If you haven't setup mac reservations on your router, it's very likely your bridge IP changed on you. Let me know |
2859 would be super awesome if you were able to have this as an IFTT applet!! That would be awesome. I know you posted several things in the Smart things forums, I'm wondering if anything has ever.come into fruition on getting the app to work with that yet. |
@bren1818, I checked and the bridge is still on 192.168.2.15. Could it be a port issue with the Apache2 server? Also, it still works with your code on my Win 7 machine. Which just made me think of another question: can more than one App access the bridge during the "same" time period? |
@Jofrah Yes more than one App can access the bridge at the same - so long as the app has its own token. In my build (not ready for prime time) I have my app accessing two bridges simultaneously (at least to get the environment) but shouldnt be a problem. Perhaps there is a firewall issue? To issue commands, this app uses CURL to post commands to the bridge. You could double check curl is enabled and no firewall rule. Hmmm |
Hi Bren - just curious about the scheduler; My events that I setup years ago are still in the gateway, show up in the tcp app/your app, and still fire; How are your scheduled events different and why wouldn't someone just use the events in the app? |
In absolute honesty @merrickw realistically if the app works for someone to schedule the events, they should absolutely use it over mine. That being said, the app scheduler doesn't seem to work for everyone, so I whipped up the one in my UI so somone could have a web interface to access. Mine doesn't store the schedule on the bridge (at-least yet). That all being said, I plan to add other devices to my project eg HUE, and perhaps IFTTT support for others, so in theory if/when I get there, there could be one Interface to control multiple products. |
@anick08 sorry I Missed your post. I did look into Smart Things, but only a little. I dont have a smart things hub, and you can't create an account with them unless you have one. Maybe one day 👍 |
Hello,
I have a large amount of these bulbs and would like to be able to use them again. Thanks so much for the work you are doing on this. How can I execute these files and run them? I tried something called XAMPP without much luck.
TIA
The text was updated successfully, but these errors were encountered: