Controlling Hue Lights with JavaScript | Home Automation #04

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 120

  • @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 2 ปีที่แล้ว

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

    • @agilefrontiers9348
      @agilefrontiers9348 2 ปีที่แล้ว +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.

  • @edhead76
    @edhead76 6 หลายเดือนก่อน

    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.

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

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

    • @jakewrightnet
      @jakewrightnet  5 ปีที่แล้ว +3

      This is useful feedback, thank you!

  • @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 :)

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

  • @rajtadavi6970
    @rajtadavi6970 5 ปีที่แล้ว +7

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

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

  • @ach9447
    @ach9447 5 ปีที่แล้ว +3

    Welcome back. Please post more often.

  • @aviralgautam7081
    @aviralgautam7081 5 ปีที่แล้ว +17

    Ohhhh ! He's Alive 😄😄😄

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

  • @user-xc1rc8ue9s
    @user-xc1rc8ue9s 5 ปีที่แล้ว +20

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

  • @Salamander014
    @Salamander014 5 ปีที่แล้ว

    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.

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

  • @khaledtribes
    @khaledtribes 4 ปีที่แล้ว

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

  • @geoffjan1
    @geoffjan1 5 ปีที่แล้ว +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

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

  • @GayGallois
    @GayGallois 5 ปีที่แล้ว

    Thanks Jake. Good to see you again.

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

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

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

  • @SotaMaehara
    @SotaMaehara 5 ปีที่แล้ว +5

    Jake uploading is becoming a meme now 😂

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

  • @DeOPe
    @DeOPe 4 ปีที่แล้ว

    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

  • @lmakinen
    @lmakinen 5 ปีที่แล้ว

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

  • @tehsimo
    @tehsimo 5 ปีที่แล้ว

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

  • @nezuhs
    @nezuhs 5 ปีที่แล้ว

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

  • @davidmyg7825
    @davidmyg7825 5 ปีที่แล้ว

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

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

  • @CraigSchubert
    @CraigSchubert 5 ปีที่แล้ว

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

  • @eggyfresh40
    @eggyfresh40 5 ปีที่แล้ว

    Bro you got yourself a subscriber from Singapore :D

  • @MarcusNerloe
    @MarcusNerloe 5 ปีที่แล้ว +1

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

  • @patrickjoel8779
    @patrickjoel8779 4 ปีที่แล้ว

    Wow it looks interesting.

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

  • @Rod24e
    @Rod24e 2 ปีที่แล้ว

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

  • @abcdxx1059
    @abcdxx1059 5 ปีที่แล้ว

    keep killing it

  • @Herman-ge2ux
    @Herman-ge2ux 5 ปีที่แล้ว

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

  • @gbroton
    @gbroton 5 ปีที่แล้ว

    I will be back in september to watch new episode!

  • @cruzer6571
    @cruzer6571 5 ปีที่แล้ว

    Great video! Glad I youtube recommended this video :)

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

  • @indaykitty7302
    @indaykitty7302 5 ปีที่แล้ว

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

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

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

  • @armandsalle8447
    @armandsalle8447 5 ปีที่แล้ว

    Nice ! Good job

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

  • @HostDotPromo
    @HostDotPromo 5 ปีที่แล้ว

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

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

  • @jesusislife917
    @jesusislife917 5 ปีที่แล้ว +1

    Good job

  • @MR0605
    @MR0605 3 ปีที่แล้ว

    can this code be coverted to an application

  • @송지혁-j1c
    @송지혁-j1c 5 ปีที่แล้ว

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

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

  • @Programming-Fun-With-Hima
    @Programming-Fun-With-Hima 5 ปีที่แล้ว

    I really do love your accent, very coooool

  • @barefeg
    @barefeg 5 ปีที่แล้ว

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

  • @supremeicecreme1658
    @supremeicecreme1658 4 ปีที่แล้ว

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

  • @cavazza_tommaso
    @cavazza_tommaso 5 ปีที่แล้ว

    Damn really perfect video here

  • @Emy-vv6zd
    @Emy-vv6zd 5 ปีที่แล้ว

    finaly tutorial thnx dude

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

  • @TheRealAnthony_real
    @TheRealAnthony_real 5 ปีที่แล้ว

    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 !

  • @sarveshm6779
    @sarveshm6779 5 ปีที่แล้ว

    you from liverpool?

  • @mwnkt
    @mwnkt ปีที่แล้ว

    wish you could upload at least one video a month

  • @gabriel1aquino
    @gabriel1aquino 5 ปีที่แล้ว

    are we getting any new vlogs?

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

  • @AK-Star007
    @AK-Star007 5 ปีที่แล้ว

    where were u?

  • @zeroblue5599
    @zeroblue5599 5 ปีที่แล้ว

    Wondefull project

  • @nanocave
    @nanocave 5 ปีที่แล้ว

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

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

  • @pin689
    @pin689 5 ปีที่แล้ว

    New mic?

    • @jakewrightnet
      @jakewrightnet  5 ปีที่แล้ว

      I refer you to baby Jake unboxing this mic in 2012 th-cam.com/video/VDVOIK3FsvQ/w-d-xo.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.

  • @estertampubolonchannel2846
    @estertampubolonchannel2846 5 ปีที่แล้ว

    wowww

  • @vexer2942
    @vexer2942 5 ปีที่แล้ว +1

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

  • @rajchavan1276
    @rajchavan1276 5 ปีที่แล้ว +1

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

    • @SimonThrossellFilms
      @SimonThrossellFilms 5 ปีที่แล้ว

      raj chavan He works for Monzo.

    • @jakewrightnet
      @jakewrightnet  5 ปีที่แล้ว +3

      Yep, like Simon said, backend engineer at Monzo

    • @rajchavan1276
      @rajchavan1276 5 ปีที่แล้ว +1

      Jake Wright cool

    • @amandashen4642
      @amandashen4642 5 ปีที่แล้ว

      @@jakewrightnet This is really cool!

  • @Blondid
    @Blondid 5 ปีที่แล้ว

    :nice

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

  • @thomasogara
    @thomasogara 5 ปีที่แล้ว

    GCSE results? x

    • @thomasogara
      @thomasogara 5 ปีที่แล้ว

      @First Name GCSE results x

    • @thomasogara
      @thomasogara 5 ปีที่แล้ว

      @First Name Jake's

  • @thiagobutignonclaramunt7474
    @thiagobutignonclaramunt7474 4 ปีที่แล้ว

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

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

  • @concernedviewer6909
    @concernedviewer6909 5 ปีที่แล้ว

    More more more more

  • @pascalhesselink7515
    @pascalhesselink7515 5 ปีที่แล้ว

    I like you :).

  • @mentalost
    @mentalost 5 ปีที่แล้ว +1

    Anime is best

  • @damarh
    @damarh 5 ปีที่แล้ว

    this is not devin, who is this ?

  • @alienencore3848
    @alienencore3848 5 ปีที่แล้ว

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

  • @evanb.9122
    @evanb.9122 5 ปีที่แล้ว +1

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

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

  • @adamw4671
    @adamw4671 5 ปีที่แล้ว

    blurring local ips lol

  • @Koushik657
    @Koushik657 5 ปีที่แล้ว

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

  • @metaorior
    @metaorior 5 ปีที่แล้ว

    return `$this.
    Lol

  • @tomstibbs1
    @tomstibbs1 5 ปีที่แล้ว

    Marry me 😍

  • @MK-mj8cg
    @MK-mj8cg 5 ปีที่แล้ว

    You’re not dead?

  • @rishiahuja4758
    @rishiahuja4758 5 ปีที่แล้ว +3

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