Skip to content
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

Closed
thatguy73 opened this issue Jul 22, 2016 · 92 comments
Closed

Comments, Questions, open forum #1

thatguy73 opened this issue Jul 22, 2016 · 92 comments

Comments

@thatguy73
Copy link

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

@bren1818
Copy link
Owner

bren1818 commented Jul 22, 2016

No problem, I am happy my work is being used! I use XAMPP at home, so hopefully we can get it working for you too. The first question is though, do you have the TCP bridge or just the remotes? I have the bridge and originally used the app to configure and add my lights into appliances and "rooms".

Assuming you have the bridge, the next step is easy, make sure it is plugged in, and determine it's IP address. You can do this by logging into your router (192.168.1.1 or 192.168.0.1) and looking at the DHCP table to find the IP. For me, if you look into my include.php file, I have the LIGHTING_URL set to 192.168.1.114, you'll need to change this to your device. The next step is hit the sync button on the lighting bridge and open the files in a browser. XAMPP should by default open the index.php. Since you do not have a token set yet, the first time you run the script, you should get string printed on your screen like this:
token

Copy the token string, and paste it in the include.php file in the TOKEN variable.

After that, assuming you've done it right, when you refresh the index page, you should get a GUI which looks like the attached.
tcp lighting

Obviously rooms / lights may vary. Clicking the On or OFF buttons will turn the lights on and off, and the slider will control the brightness.

My plan is to deploy this on a local webserver like XAMPP and then password the site so I could in theory remotely control the lights. It works like a webpage.

I wont say my project is finished yet, I plan to improve on it, so you may see changes in the future. I haven't worked with adding 'new' bulbs or bulbs not assigned to a room yet, so I'll try that soon and see what we can do. Please let me know if that helps!

Cheers,

Bren

@thatguy73
Copy link
Author

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.

@bren1818
Copy link
Owner

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!

@thatguy73
Copy link
Author

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

@thatguy73
Copy link
Author

wanted to add that I did a port scan of the gateway ip and 443 is the only one open

@bren1818
Copy link
Owner

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:

screen shot 2016-07-22 at 6 49 00 pm

when I press the sync button and refresh, I see this:

screen shot 2016-07-22 at 6 51 32 pm

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:

screen shot 2016-07-22 at 6 54 19 pm

now when I refresh the screen I see:

screen shot 2016-07-22 at 6 56 07 pm

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:

screen shot 2016-07-22 at 6 59 38 pm

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

@thatguy73
Copy link
Author

IP is correct all Apple network hardware. The 10.0 is an "apple thing" quotes were the problem. working on token now

@thatguy73
Copy link
Author

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

@bren1818
Copy link
Owner

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:
/api.php?fx=dim&type=room&uid=ROOMID&val=DIMVALUE which replaces the key variables in the request string .

As an example, try putting this in your browser:
https://10.10.1.4/api.php?fx=toggle&type=all&uid=ALL&val=1

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:
https://10.10.1.4/api.php?fx=toggle&type=all&uid=ALL&val=0

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

@ahhdem
Copy link
Contributor

ahhdem commented Jul 25, 2016

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!

@bren1818
Copy link
Owner

@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.

@Telekinetic
Copy link

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.

@ahhdem
Copy link
Contributor

ahhdem commented Jul 30, 2016

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.

@bren1818
Copy link
Owner

@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 👍

@Telekinetic
Copy link

@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.

@bren1818
Copy link
Owner

@Telekinetic - I see what you're saying, but what I was trying to get at is
that the protocol used to communicate with the tcp bulbs is different than
the hue bulbs. The tcp bulbs (and hub) do not support IFTTT (if this then
that) that's why the commands to the tcp bulbs need to be custom and is why
you don't see much integration.

I presume that the Web interface which GreenWave used to have - before
taking it down and leaving everyone in the lurch - attempted to add some
IFTTT support and that's why at the time apps like Wink could control the
tcp bulbs if you gave it access to your account.

Hope that makes sense. Let me know if I got anything wrong though, I'm
still learning.

Cheers

On Jul 30, 2016 1:45 AM, "Telekinetic" [email protected] wrote:

@bren1818 https://github.com/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.


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-OtMw9oOpdEvhzQbGa1YZ6LHdeeks5qauTwgaJpZM4JSwDx
.

@bren1818
Copy link
Owner

bren1818 commented Aug 4, 2016

@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

@hypergolic
Copy link

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.

@bren1818
Copy link
Owner

bren1818 commented Aug 9, 2016

@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!

@ahhdem
Copy link
Contributor

ahhdem commented Aug 9, 2016

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

@ahhdem
Copy link
Contributor

ahhdem commented Aug 9, 2016

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:
error_page 405 =200 $uri;
to the server block, to allow POST to a static page.

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! 👍

@ahhdem
Copy link
Contributor

ahhdem commented Aug 9, 2016

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
to get some direct integration. Not sure if I can easily change the ApiURL Variable to do a local connection with my SmartThings v1 hub, but I'm gonna give it a go.

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.

@hypergolic
Copy link

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
The SDK is downloadable on their website. I had the toolchain and buildroot + sdk at one point and I cant find it now...

I pulled some interesting stuff off of it via the "holger" binary on it.
https://gist.github.com/hypergolic/ab5f18587b58c6c7236f7e5bc5c42f59

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:
http://gobbler.greenwavereality.com/coredump.php
logger.greenwavereality.com:514
dev.greenwavereality.com:888

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
If its of any use this version of busybox works for me and has a lot of the functions that are missing in the stock version. I believe they use a a unix socket for talking from the cgi interface to the actual bridge, check netstat -l / /tmp/cs

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..

@bren1818
Copy link
Owner

@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.

@hypergolic
Copy link

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.

@bren1818 bren1818 changed the title Muggle would like to use this. Comments, Questions, open forum Aug 18, 2016
@hax0rmort
Copy link

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.

@bren1818
Copy link
Owner

@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.

@StuartRothrock
Copy link

StuartRothrock commented Aug 28, 2016

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
EDIT:
I got brave and downloaded the firmware without a glitch - thanks! - I am a happy camper now - off to scripting :)

@bren1818
Copy link
Owner

Hmm, what do you mean you have a serial connection to the hub? Why not use
standard network connection?

Otherwise just make sure you have the right ip address in the include file
of your bridge. I did just add a change to store the token to a file, and
made the default. Perhaps try disabling that option. Depending on webserver
it may not be writing the 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
in mine yet though.

On Aug 28, 2016 3:35 PM, "Stuart Rothrock" [email protected] wrote:

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


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/ACDCHybsEJH7j_EuE2VdQXnNkvH7wGt0ks5qkeMTgaJpZM4JSwDx
.

@anick08
Copy link

anick08 commented Nov 29, 2016

Bren is an absolute genius!

Has anyone been able to link up the program to Smart Things?
Or Bren, do you know how, since it seems like this was the entire point of writing this code?

@AinV07
Copy link

AinV07 commented Nov 29, 2016

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.

@bren1818
Copy link
Owner

bren1818 commented Nov 29, 2016 via email

@Jofrah
Copy link

Jofrah commented Nov 30, 2016

@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.
The F12 gives this:
image
I'm obviously doing something wrong...sorry for the trouble.

@bren1818
Copy link
Owner

@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?

@Jofrah
Copy link

Jofrah commented Nov 30, 2016

Nope. PC with Windows 7 (although I do want to port this to a R-Pi eventually :-) .Here is the screen shot:
image

@bren1818
Copy link
Owner

bren1818 commented Nov 30, 2016 via email

@Jofrah
Copy link

Jofrah commented Nov 30, 2016 via email

@bren1818
Copy link
Owner

bren1818 commented Nov 30, 2016 via email

@Jofrah
Copy link

Jofrah commented Nov 30, 2016 via email

@Jofrah
Copy link

Jofrah commented Nov 30, 2016

@bren1818 after moving everything to the htdocs/ root directory the scheduler now works!! Thanks for your help.
Next step is to port this to a machine I have running Linux Mint and LAMP. After that it will be the R-Pi!

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...
Thanks again!

@bren1818
Copy link
Owner

bren1818 commented Dec 1, 2016

@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,

@merrickw
Copy link

merrickw commented Dec 2, 2016

Hi Bren - just wondering, is it possible to integrate your app with IFTTT?
I was seeing nicely IFTTT integrates with Google Home and was thinking of next steps...

@Jofrah
Copy link

Jofrah commented Dec 3, 2016

@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!

@sktaylortrash
Copy link
Collaborator

sktaylortrash commented Dec 3, 2016 via email

@bren1818
Copy link
Owner

bren1818 commented Dec 3, 2016

@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
eg:

cd /var/www

chmod -R 0775 html

then 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

@merrickw
Copy link

merrickw commented Dec 3, 2016

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 ....

@Jofrah
Copy link

Jofrah commented Dec 3, 2016

OK, so I chmoded html to 777, and created the file, but nothing got written into it when I pressed the sync button..
Then tried pasting the token in manually, and now the "If you are seeing this.." no longer appears, but nothing else happen either. I also tried pasting the token into the Include file and also changed the USE_TOKEN to 0, same result, blank screen. There is an effect in both cases because something different is happening, but I dunno what.
I changed ownership of the html directory to www-data (which I think is the Apache server) still to no avail.
Thanks for now everyone.

@bren1818
Copy link
Owner

bren1818 commented Dec 4, 2016

@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

@anick08
Copy link

anick08 commented Dec 5, 2016

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.

@Jofrah
Copy link

Jofrah commented Dec 5, 2016

@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?
Some more useful info maybe-- I am able to access the Bridge manually from the Linux Mint machine using Firefox and the manual codes. I am able to read the token, paste it in and then get the complete (but un-parsed) device list and status.

@bren1818
Copy link
Owner

bren1818 commented Dec 5, 2016

@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

@merrickw
Copy link

merrickw commented Dec 5, 2016

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?

@bren1818
Copy link
Owner

bren1818 commented Dec 5, 2016

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.

@bren1818
Copy link
Owner

bren1818 commented Dec 5, 2016

@everyone I'm closing this topic and have opened a new one here: #6 as this one has gotten very long. Very happy about all the interest, keep the questions coming!

@bren1818 bren1818 closed this as completed Dec 5, 2016
@bren1818
Copy link
Owner

bren1818 commented Dec 5, 2016

@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 👍

Repository owner deleted a comment from SlimChaanbiPro Dec 28, 2017
sktaylortrash added a commit that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests