How to build a captive portal with MicroPython - the easiest way EVER!

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

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

  • @denisw398
    @denisw398 6 หลายเดือนก่อน +3

    Truly informative and educational videos on the topic - Thanks

  • @compubyte2010
    @compubyte2010 ปีที่แล้ว +2

    OK, if I have this figured out., living in Southern Arizona .. I have to watch u at 12 noon on Sun.. I'll give it a whirl !! lol

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

      Okay little more than an hour before you go live... HOW do I find you live on YT when you go live? Never followed a live video before.. lol

  • @zyroxiot9417
    @zyroxiot9417 2 ปีที่แล้ว +3

    Thanks from 🇧🇷

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

    Bnc Bayonet Navy Commector used for all Uhf 400 to 470 Mhz radio's. Thank you an awesome informative 📹

  • @lorisrobots
    @lorisrobots 2 ปีที่แล้ว +3

    Thanks for the great video! Time to start experimenting more with my Pico Ws.

  • @gtgamers7398
    @gtgamers7398 3 หลายเดือนก่อน +2

    35:30 I have a correction. After version 1.19 of micropython we no longer use upip but mip

  • @zyroxiot9417
    @zyroxiot9417 6 หลายเดือนก่อน +2

    thanks again, great video

  • @kioshiki4519
    @kioshiki4519 ปีที่แล้ว +2

    I liked this video for the details, it's been a while since I've thought about the OSI model, I think that was back in collage. It doesn't come up much in general business web app development these days, at least not for me :). The DNS section was good too.

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

    Kev, it will be amazing to have Pico W in both Access Point (AP) as well as Station mode (STA). This will open up a whole lot of real world applications. I am sure Pimoroni already has it or perhaps it is on their agenda. Nice explanation, well done Kev. 👍

  • @dyogolorenz2415
    @dyogolorenz2415 2 ปีที่แล้ว +2

    You're an amazing Educator, Kevin!
    Way to bring attention to the hobby robotics community! Thank you

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

    Thank you... I've spend 4 hours trying to embed an image on my page. What I am doing wrong? What is the secret sauce?

  • @gerdbeckmann3887
    @gerdbeckmann3887 ปีที่แล้ว +2

    Hi Q. My first view of your presentation - Altamont NY USA , near Albany NY. Fantastic foundation. Thank you. I am trying to learn how to implement a captured portal and your presentation has been very helpful. Where can I download all code presented and phew? So I can give it a go?

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

      Links to the code should be in the video description (you might have to expand that and scroll down)

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

      @@kevinmcaleer28 thank you. I will try to find link using computer vs phone.

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

    well u could wire up 2 picos together through gpio and have more connections

  • @anaclaudiapelomundo5545
    @anaclaudiapelomundo5545 ปีที่แล้ว +2

    Is there a reason for you sometimes choose to use Visual Studio Code and other times Thommy?

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

      Great question- it’s because vs code is a better editor, with autocomplete, copilot and git integration, but thonny let’s you upload code and files directly onto the Pico (which VS code doesn’t)

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

      @@kevinmcaleer28 Thanks for answering! I'm learning a lot from your videos.

  • @shanepython
    @shanepython ปีที่แล้ว +2

    What happened to access_point? It's not in the download and trying to import it throws an error.
    from phew import server, template, logging, access_point, dns
    All of the above are in the phew library except access_point. That method left out/removed? from the library breaks your code in your video.

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

      the access_point method is located in the __init__.py in the phew package. the connect_to_wifi method is also found in there.

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

      @@schlingelgen Thanks for the info. I'll check that library again this week.

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

    Yes you can can set up a relay. Have to setup DMZ on your router and have a Class A server to connect to in order to register the fake DHCP generated Class A.

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

    Hi there from Ontario Canada.
    I'm tinkering with your code examples -- mostly adding prints to help me figure out the operation.
    My execution is not loading the text I put in the form. I see the entry in "request" and I see my text in there but resolve_template doesn't appear to process placing the entered text in the body of web page (in between the curly braces)
    Any thoughts on where I need to focus?

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

      Hi Phil are you in our discord group? Might be easier to troubleshoot in there as we can share screenshots

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

      @@kevinmcaleer28 I'll get over there as soon as possible.
      Thanks Kevin

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

      I'm a noob on discord. What is your place called there?

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

      @@philclowes3917 if you head over to www.kevsrobots.com/discord you’ll find what your looking for

  • @99dynasty
    @99dynasty ปีที่แล้ว

    After intitially connecting my Captive Portal is automatically disconnecting form internet. A few times it opened up the webpage with the text written but now seems unable to do so. My wifi network is functioning normally as far as I can determine

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

    Hi verry nice video, where can i find the codes on your github?

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

    Anyone know how to get the catchall and captive-portal features working, using Microdot instead of Phew? Phew tends to crash on me a lot, while microdot seems to be more stable, but doesn't seem to have a catchall function..

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

    I've needed to use pip on a few projects but it never recognizes upip. Does anyone know where the pico looks when you try to import these packages? I'm wondering if they've been removed or if I'm making a mistake in my code.

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

    I want to use a captive portal to allow the user connecting the pico to their "real" wifi. After this is done, the pico should close the captive portal and start a new web server while connected to the home router. I thought maybe its sufficient to just connect the pico to the wifi since that should override the wifi-access-point mode. But either I run into errors or it just doesnt work. In the webinferface of my router I can see that the pico is connected, but I can't access it. Then I thought, I would first need to stop the current Webserver and then start the new one. But Phew doesn't offer any stop()-method in their server-class. Is there an existing solution for this or do I have to modify the phew-code?

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

      Pimoroni do this with their Enviro range of products - first the Pico boots in Access Point mode and scans the network for all local hotspots and presents them as a list. You can select one of them and enter the password; the pico writes this to a config file and then reboots. If the config file exists it reads it and then connects to the local wifi network. Hope this helps

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

      @@kevinmcaleer28 This helps a lot - thanks for the fast response - thought maybe there is a way to hot swap the mode, but I guess the pico reboots so fast that its hardly noticeable, thanks again!

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

    I had a go with your code for the webserver and got errors. Probably because you refer to a library called Phew which doesn't exist on Thonny. The nearest was micropython-phew which didn't seem to work

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

      He literally did a detailed tutorial on how to import it and you can watch him spell out micropython-phew. Regarding the rest of your post, I can agree - it didn't work for me either. Didn't seem like any requests were caught, let alone redirected.

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

      @@schlingelgen I did finally get it to work-kinda. It didn't work in a usable manner though. I gave up on that for the moment. I do far more with the ordinary Pico. The idea of being able to sit somewhere and send a message to a Pico W via the internet is very appealing.

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

      @@britishtechguru I started with the normal pico as well but as soon as I got my hands on a pico w I lost interest in them. It’s fascinating what you can build with a 6$ microcontroller.
      But working on complex projects is no fun at all with thonny, and vscode won’t let me use the pico extension …
      I think I will also pause my work for now :/

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

    Aaaa