简体   繁体   English

自动化Arduino Yun WiFi的方法使用python或其他方式登录强制门户?

[英]Method to automate Arduino Yun WiFi Login to Captive Portal with python or other?

What is the simplest path toward automating a WiFi login from an Arduino Yun (Yún) to a "Captive Portal" authenticated login method. 从Arduino Yun(Yún)到“Captive Portal”认证登录方法实现WiFi登录自动化的最简单途径是什么? I would like to stay in python, if that is the most appropriate. 我想留在python,如果这是最合适的。

So for I've considered: 因为我考虑过:

I would like the simplest, least-overhead method possible. 我希望最简单,最开销的方法成为可能。

This is to run on an Arduino Yun upload some environmental data every once in a while. 这是运行Arduino Yun每隔一段时间上传一些环境数据。 But the publicly-accessible WiFi requires a login/password every time. 但公共可访问的WiFi每次都需要登录/密码。

I had the same problem. 我有同样的问题。 I solved it by talking to the Network Administrator and we have saved my Arduino as a privileged device. 我通过与网络管理员交谈解决了这个问题,我们已将Arduino保存为特权设备。 But I also want to know how to do that in order to prevent future problems and for Networks that I can't have privileged access. 但我也想知道如何做到这一点,以防止未来的问题和我无法拥有特权访问的网络。

By the way, I am using an UNO and python wouldn't solve my problem but the general idea can help me. 顺便说一句,我使用UNO和python不会解决我的问题,但一般的想法可以帮助我。

Regards 问候

您可以使用像phantomjs这样的无头浏览器,使用nodejs启动以自动导航,输入用户名/密码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM