Controlling Hue Lights with JavaScript | Home Automation #04

Поделиться
HTML-код
  • Опубликовано: 28 мар 2019
  • Build your problem solving skills at brilliant.org/jakewright
    In this video we build a Node service to control Philips Hue lights 💡
    github.com/jakewright/tutoria...
    ----------------------------------------
    4K CAMERA amzn.to/2EGMQRi
    MICROPHONE amzn.to/2B0KqKS
    CHEAPER MIC amzn.to/2EGFZHo
    VLOGGING CAMERA amzn.to/2EGqGhZ
    SMALLER CAMERA amzn.to/2EHMPg7
    LED LIGHT amzn.to/2AZgMpB
    TINY LIGHT amzn.to/2B0KJFx
    SOCIAL MEDIA
    twitter / jakewrightuk
    facebook / jakewrightuk
    instagram / jakewrightuk
    snapchat jakewrightuk
    jakewright.net
  • НаукаНаука

Комментарии • 122

  • @edhead76
    @edhead76 29 дней назад

    This was mind-blowing. I'm still learning quite a bit about the nuances of node, and watching how your brain works really helped me gather a bit more of the logical mindset I should be using in future projects. Thank you for putting this together.

  • @flubadubdubthegreat1272
    @flubadubdubthegreat1272 5 лет назад +81

    Good to see you again Jake, we missed you!

    • @jjahmad9109
      @jjahmad9109 5 лет назад +1

      Jake you're real pro. You have unique knowledge deliverance style, please keep making videos.❤️

  • @mikemanders6685
    @mikemanders6685 5 лет назад +1

    The format was great, subbing to see you continue this

  • @hanchesterman5661
    @hanchesterman5661 5 лет назад

    Keep videos like this coming. I like your way of giving enough info to follow allong, but at the same time getting straight to the point and comunicating clearly what level of knowledge you expect from your audience in a nice way. I took away something usefull. Cheers for that👍🏻

  • @amandashen4642
    @amandashen4642 5 лет назад

    Wowwww!It is your first time to update a video since last week I followed you. what a surprise!!! Hopefully, you can update more frequently. It is really nice to see you. This lights up my day.

  • @lmakinen
    @lmakinen 5 лет назад

    This was awesome, well done! Thank you for the upload and thorough (yet concise) explanations :)

  • @GayGallois
    @GayGallois 5 лет назад

    Thanks Jake. Good to see you again.

  • @nezuhs
    @nezuhs 5 лет назад

    So interesting. Really enjoyed watching this - please make more of these!

  • @ach9447
    @ach9447 5 лет назад +2

    Welcome back. Please post more often.

  • @DafuqModeOn
    @DafuqModeOn 5 лет назад +7

    Hey Jake! I really enjoyed this format. I'd love if you could put some resources into the description, so that we could try this ourselves :)

  • @themarksmith
    @themarksmith 5 лет назад +2

    Excellent video Jake, thanks - as feedback, I found both the content on the specific project and the underlying technology useful - in particular where you explained what you were doing in the wider context of Javascript programming was great for me as a relative JS newbie... I am interested in the actual home automation project you are working on so would like to see more on that, but if you could continue to expand on what you are doing as you did in this video (and maybe more deeply), so that those who are not specifically following along in the context of a home automation project can still gleen useful insights related to more general JS/Node topics - which is what I took away from this video and I'd like to see more along the same or similar lines in future...

  • @zixifan218
    @zixifan218 5 лет назад

    Brilliant video, very useful and a big thank u!! BTW you don't need to make each video so high-quality, but do keep vlogging Jake!

  • @user-xc1rc8ue9s
    @user-xc1rc8ue9s 5 лет назад +20

    Nice video Good to see you...
    Make some more vlogs...Like Cooking travelling..

  • @nkonyou
    @nkonyou 5 лет назад +1

    This format works for me. Although I do not own any smart appliances and watch only because of you. Just film more!

  • @agilefrontiers9348
    @agilefrontiers9348 2 года назад

    Time travelling from June, 2022: My friend - you saved me a TON of research. I'm working on controlling the vents in my upstairs/downstairs. I have HUE motion sensors in every room. What most folks don't know is that the motion sensors also contain TEMPERATURE sensors. So I should be able to sense the temperature in every room and adjust the A/C accordingly. Thanks much, I'm subscribing!

    • @tommyxd11
      @tommyxd11 Год назад

      That’s a really cool idea did you manage to do it at the end?

    • @agilefrontiers9348
      @agilefrontiers9348 Год назад +1

      @@tommyxd11 I ALMOST did it. I got everything working - but the sensors don't register F or C, it's some sort of other number that looks like about 10x of C, plus some offset. I guessed at a linear interpolation formula (even taking measurements against a thermometer), but it didn't seem to be the same for each sensor. The project is on the back burner, but I'll resurrect it soon.

  • @amandashen4642
    @amandashen4642 5 лет назад

    Although I know nothing about java and stuff like that, I am still would like to see more about you and your life. Have a good day!

  • @Herman-ge2ux
    @Herman-ge2ux 5 лет назад

    Love it, would love it even more if you upload more!:)

  • @ChristopherTalke
    @ChristopherTalke 5 лет назад +2

    Good to see you back!
    Not sure why you blurred you LAN IPs, can’t really do anything without knowing your WAN IP 👍

  • @Aguycalledmax
    @Aguycalledmax 5 лет назад +1

    I really like this video format and seeing how you plan out your projects. If I could recommend anything I would say to spend more time demonstrating the results of code rather than typing and then perhaps link to a github so we can browse around ourselves. Love what you're doing though keep it up.

  • @rajtadavi6970
    @rajtadavi6970 5 лет назад +7

    Please be consistent while uploading cause your videos are informative and entertaining as well
    Keep going bro

  • @CraigSchubert
    @CraigSchubert 5 лет назад

    Was great to see the creation and refactoring process - cheers! :-)

  • @tehsimo
    @tehsimo 5 лет назад

    Very cool. I have a hue, and had no idea there was such a simple API.

  • @boeggy6639
    @boeggy6639 5 лет назад

    Bro you got yourself a subscriber from Singapore :D

  • @CaptainTaelos
    @CaptainTaelos 5 лет назад

    Hey Jake!
    Nice, relaxing and enjoyable video, you inspired me to try to do something similar myself!
    I strongly agree on the Promises/async-await stuff you said. I'd say it's my area of expertise and I'd definitely recommend any aspiring JS developers try to impress employers with strong asyncronous-handling skills.
    I've got a question for you, if you don't mind. How do you deal or cope with the stress and intensity of work at Monzo? I just joined what is now my the first start-up in my career (also in London) and I feel the late hours can sometimes get overwhelming. Do you have any tips?

  • @geoffjan1
    @geoffjan1 4 года назад +1

    You have helped me loads with html and css, please make more videos on divs, go slower though and make them longer than 12 min lol
    keep it up your great. cheers geoff

  • @Salamander014
    @Salamander014 4 года назад

    I wish you went into more detail about connecting together the services (when you called "axios.get("service.config/read/service.controller.hue") I thought I missed something. )
    But this format was great.
    This is amazing, and hopefully inspired me to build something similar (and if I do, I'll deploy it to kubernetes! this is beggggging to be deployed to kubernetes)
    Thank you for this!
    I could literally watch this entire thing without the fast forwards (but I'm a Sys admin, normal people would probably get bored...)
    Stay golden.

  • @cruzer6571
    @cruzer6571 5 лет назад

    Great video! Glad I youtube recommended this video :)

  • @DeOPe
    @DeOPe 3 года назад

    Damn, this is so addictive and nice to watch, thanks for your videos, especially on this interesting topic! Would love to work with you in a company or on projects

  • @SotaMaehara
    @SotaMaehara 5 лет назад +5

    Jake uploading is becoming a meme now 😂

  • @aviralgautam7081
    @aviralgautam7081 5 лет назад +17

    Ohhhh ! He's Alive 😄😄😄

  • @oscarjim3
    @oscarjim3 5 лет назад

    Jake very interesting in getting the lighting setup. However, a good portion of it is beyond what I am self-teaching myself. BTW, when are you going to do your exertion s in your beautiful country again?

  • @indaykitty7302
    @indaykitty7302 5 лет назад

    Nice one Jake:) i am your new fan here in Philippines:) more more video

  • @davidmyg7825
    @davidmyg7825 5 лет назад

    please upload more tutorial, i really have learnt a lot more than attending to class.

  • @khaledtribes
    @khaledtribes 4 года назад

    I'm about a year late, but I would love to see more of these!

  • @gbroton
    @gbroton 5 лет назад

    I will be back in september to watch new episode!

  • @abcdxx1059
    @abcdxx1059 5 лет назад

    keep killing it

  • @HostDotPromo
    @HostDotPromo 5 лет назад

    Wanna use this for my pad and make it awesome looking. So sick what you can do with JS 🔥

  • @armandsalle8447
    @armandsalle8447 5 лет назад

    Nice ! Good job

  • @patrickjoel8779
    @patrickjoel8779 4 года назад

    Wow it looks interesting.

  • @anouarben779
    @anouarben779 5 лет назад

    these kind of videos are excellent one observation only if you could break it even down to people who are not that experienced in software development that would be great !

  • @Programming-Fun-With-Hima
    @Programming-Fun-With-Hima 5 лет назад

    I really do love your accent, very coooool

  • @MarcusNerloe
    @MarcusNerloe 4 года назад +1

    Amazing tutorial, thanks. Can you maybe do a tutorial on something about the Google Home, or Google Chromecast? :) Could be nice.

  • @Emy-vv6zd
    @Emy-vv6zd 5 лет назад

    finaly tutorial thnx dude

  • @remcogubbels6218
    @remcogubbels6218 5 лет назад +1

    First of all very clear and useful (not just for hue lights) vlog, just two questions as you mentioned promises around ~7 minutes, is there a specific reason you didn't go for async/await? And why are you using node 8, not 10?

    • @jakewrightnet
      @jakewrightnet  5 лет назад +1

      Good questions. Later in the video I used async/await for some of the code. I just wanted to demonstrate both and make the point that they're the same. I don't write much JavaScript in real life but tend to prefer async/await (it just looks neater?). The choice seems arbitrary and down to personal preference largely though -- not sure what any normal conventions are, but I imagine in a company writing JavaScript there'd be some kind of style guide that restricts you to one or the other.
      Why did I use Node 8? Because I didn't properly research what the latest version of Node was and misread the list of versions of the Docker image on Docker Hub 😂 (tbf they're ordered 8, 6, 11, 10). But yeah I should've used a newer version.

  • @jesusislife917
    @jesusislife917 5 лет назад +1

    Good job

  • @rondoevendans217
    @rondoevendans217 4 года назад

    Hi jack, i like the video about philips hue and the possibility to send Http request to differnt devices.
    i have a question. is it possible to send trigger time in the request so the lights go off after (for example) 10 sec. or 10 min
    i hope you can give me a answer.
    thanks
    Ron

  • @cavazza_tommaso
    @cavazza_tommaso 5 лет назад

    Damn really perfect video here

  • @ShivBhatt08
    @ShivBhatt08 5 лет назад +5

    I am so happy to see you back on the vlogs. I have a question. How much did Cambridge help you learn basics and moderate level of programming?

  • @Rod24e
    @Rod24e 2 года назад

    Hello Jake ! , may i integrate HUE with React JS :) ?? , this video is amazing, i wanna do it in my home :)

  • @zeroblue5599
    @zeroblue5599 5 лет назад

    Wondefull project

  • @user-gh2lw9zu8o
    @user-gh2lw9zu8o 5 лет назад

    do i need the huge bridge?... for ordering hue light.

  • @barefeg
    @barefeg 5 лет назад

    How do you get intelisense from vscode without running npm install locally?

  • @jjahmad9109
    @jjahmad9109 5 лет назад +2

    Jake please explain more about javascript, react and angular.. I am waiting 😊

  • @Nonsense116
    @Nonsense116 5 лет назад +1

    can you go deeper or link me some resources for communicating between services? Also where does the service get "hosted"? Is it like a central web server where you will host it using AWS or some other provider?

    • @haydo8373
      @haydo8373 5 лет назад

      He'll most likely host everything on his home server. He said each service would run in a docker container. Docker can create a virtual network so that each service can communicate between each other.

  • @sky_block_king3039
    @sky_block_king3039 5 лет назад

    what program are you using for javascript and html and other stuff like that?

    • @peterutekal8288
      @peterutekal8288 5 лет назад

      if you mean the text editor, he uses visual studio code

  • @MR0605
    @MR0605 3 года назад

    can this code be coverted to an application

  • @dogame5
    @dogame5 2 года назад

    Nice video, but can you make it again for beginner? Im really confused and don't know how it works. I would like to control my light at home from school or work. Is that possible true with this?

  • @pin689
    @pin689 5 лет назад +1

    username is a weird name for the access token in the hue bridge api :) Also why are you building different backend services in different languages? Why not just build all of them in python or go or node.js ?

    • @jakewrightnet
      @jakewrightnet  5 лет назад +1

      I know but it's what the docs call it ¯\_(ツ)_/¯ I'm building them in different languages mostly just for the opportunity to learn and work with other languages. At work I basically exclusively write Go so it's a good chance to refresh my knowledge of other languages. If this was a "real" project, I'd do them all in one language (probably Go).

  • @rogerbadibanga2993
    @rogerbadibanga2993 5 лет назад +3

    Jake, how this project will work with the python, that you had started. I need to see, how we can control the light with python

    • @Mooooov0815
      @Mooooov0815 5 лет назад

      If you just Google "Philips hue python" there are literally dozens of results of libraries doing exactly what you asked for

  • @sarveshm6779
    @sarveshm6779 4 года назад

    you from liverpool?

  • @rajtadavi6970
    @rajtadavi6970 5 лет назад +16

    See if you can make a videos on your master cooking😂😂

    • @jakieboiZ94
      @jakieboiZ94 5 лет назад +4

      +1, we need Jake's cooking vlogs to make a comeback!

    • @rajtadavi6970
      @rajtadavi6970 5 лет назад

      @@jakieboiZ94 you are right bro

  • @gabriel1aquino
    @gabriel1aquino 5 лет назад

    are we getting any new vlogs?

  • @mwnkt
    @mwnkt Год назад

    wish you could upload at least one video a month

  • @AK-Star007
    @AK-Star007 5 лет назад

    where were u?

  • @Blondid
    @Blondid 5 лет назад

    :nice

  • @TheRealAnthony_real
    @TheRealAnthony_real 4 года назад

    Please tell me you are part of home assistant community .. if not you should really look at making part of the team !!! Check GitHub home assistant ... I'm sure you could make a drastic improvement for that community !

  • @supremeicecreme1658
    @supremeicecreme1658 4 года назад

    USR !== User. It means Universal System Resources. 😀

  • @clayton6671
    @clayton6671 5 лет назад +3

    Jake how is your work? How have you been😙give us an update xoxo

    • @jakewrightnet
      @jakewrightnet  5 лет назад +7

      It's great - I'm gonna make a couple of vlogs about working at Monzo soon(ish).

    • @clayton6671
      @clayton6671 5 лет назад

      @@jakewrightnet ugh hopefully your "soon" is in 2019 😛we can wait though. Put yourself and your life first xx

    • @amandashen4642
      @amandashen4642 5 лет назад

      @@jakewrightnet And I am excited now! Really looking forward to it

  • @pin689
    @pin689 5 лет назад

    New mic?

    • @jakewrightnet
      @jakewrightnet  5 лет назад

      I refer you to baby Jake unboxing this mic in 2012 ruclips.net/video/VDVOIK3FsvQ/видео.html

    • @pin689
      @pin689 5 лет назад

      ​@@jakewrightnet Ah. Thanks. Thats an old video, didn't watch it. Mic is working still though :) Baby Jake was hiding behind the frame somewhere and roughly recognizable by voice.

  • @ddd12343
    @ddd12343 5 лет назад

    Cost of those Philips Hue lightbulbs are way too high. I wanted to do something similar, but come on, it would cost me fortune. And it probably doesn't cooperate with IoT devices from other manufacturers, isn't it?

  • @concernedviewer6909
    @concernedviewer6909 5 лет назад

    More more more more

  • @estertampubolonchannel2846
    @estertampubolonchannel2846 5 лет назад

    wowww

  • @rajchavan1276
    @rajchavan1276 5 лет назад +1

    hey this is kinda personal but I have to ask
    what do you do for a living???

  • @nanocave
    @nanocave 5 лет назад

    1:00 🌞 ---> 16:36 🌜
    Developers life...

  • @pascalhesselink7515
    @pascalhesselink7515 5 лет назад

    I like you :).

  • @vexer2942
    @vexer2942 5 лет назад +1

    Meh. I was hoping for one of your excellent videos on Jake the Person.

  • @senned27
    @senned27 5 лет назад +4

    It seems a bit abstract to me what you're doing here. If you're trying to teach us something, you might be going too fast. If you're trying to show it off, it's fine. I can definitely learn general things out of this but I'd still not be able to implement this myself right now (after watching once). Hope you appreciate the feedback, keep it up.

  • @thiagobutignonclaramunt7474
    @thiagobutignonclaramunt7474 4 года назад

    you cut the most important parts of the video to test it out

  • @thomasogara
    @thomasogara 5 лет назад

    GCSE results? x

  • @slicerabbit6166
    @slicerabbit6166 5 лет назад +1

    exports = module.exports = foo; ?! double assignment? what?

    • @k1ngjulien_
      @k1ngjulien_ 5 лет назад

      i am confused too :D

    • @jakewrightnet
      @jakewrightnet  5 лет назад +1

      module.exports is an object that gets returned by Node when you do require(), but exports is an alias to it for convenience, so you can write less code. So if you do module.exports.foo = "bar"; then I think you'd find that exports.foo also equals "bar". However, if you replace the entire object (by doing module.exports = myNewThing) then exports and module.exports become "out of sync", so it's good practice to assign to both at the same time. There are better articles on this if you Google, it's hard to explain in a comment :D

    • @k1ngjulien_
      @k1ngjulien_ 5 лет назад

      @@jakewrightnet so its the same as writing
      module.exports = foo;
      exports = foo;
      ?

    • @jakewrightnet
      @jakewrightnet  5 лет назад

      @@k1ngjulien_ Yes, exactly!

  • @mentalost
    @mentalost 5 лет назад +1

    Anime is best

  • @metaorior
    @metaorior 5 лет назад

    return `$this.
    Lol

  • @damarh
    @damarh 5 лет назад

    this is not devin, who is this ?

  • @adamw4671
    @adamw4671 5 лет назад

    blurring local ips lol

  • @tomstibbs1
    @tomstibbs1 5 лет назад

    Marry me 😍

  • @megaman2016
    @megaman2016 5 лет назад +1

    your patch endpoint should be a put :-p

    • @LukeyDubs
      @LukeyDubs 5 лет назад

      put is for files, we shouldn't use anything but get and post :p

  • @MK-mj8cg
    @MK-mj8cg 5 лет назад

    You’re not dead?

  • @Koushik657
    @Koushik657 5 лет назад

    Jake, You not answering my questions which I asked in Twitter.

  • @evanb.9122
    @evanb.9122 5 лет назад +1

    He knows there is already apps for this.... right?

  • @alienencore3848
    @alienencore3848 5 лет назад

    Reading tutorials and then making a video to teach people something.....

  • @rishiahuja4758
    @rishiahuja4758 5 лет назад +3

    Is it just me or is Jake looking really old(eyes) and unhealthy(lack of sleep)?