Search found 15 matches

by larsks
Fri Oct 12, 2018 2:35 am
Forum: ESP8266 boards
Topic: DHT22 driver has stopped working in master
Replies: 0
Views: 226

DHT22 driver has stopped working in master

I noticed that with recent esp8266 micropython builds I was no longer able to interact with my DHT22 temperature sensors. I spent some quality time with git bisect this evening and logged https://github.com/micropython/micropython/issues/4233 . I have a workaround (revert the commit that introduced ...
by larsks
Mon Oct 08, 2018 7:26 pm
Forum: ESP8266 boards
Topic: Tweepy/TwitterAPI
Replies: 8
Views: 300

Re: Tweepy/TwitterAPI

I was going to suggest that you could just read through the Twitter API docs at https://developer.twitter.com/en/docs.html and then use something like the urequests module, but it looks as if micropython implementation issues make this largely impossible. Specifically, calling urequests.get against ...
by larsks
Mon Oct 08, 2018 1:51 am
Forum: ESP8266 boards
Topic: Tweepy/TwitterAPI
Replies: 8
Views: 300

Re: Tweepy/TwitterAPI

It is possible to include libraries like TwitterAPI (https://github.com/geduldig/TwitterAPI), Tweepy (https://github.com/tweepy/tweepy) and Twython (https://github.com/ryanmcgrath/twython) on MicroPython? Generally, no, it's not. Those libraries were written for Python, but you're running MicroPyth...
by larsks
Mon Apr 09, 2018 7:38 pm
Forum: ESP8266 boards
Topic: Get ssid of currently connected wifi network?
Replies: 4
Views: 665

Re: Get ssid of currently connected wifi network?

Dave, Thanks for the pointer. That's magical! :) Anway, I've posted https://github.com/micropython/micropython/pull/3705 which allows one to ask for the essid of both Station and AP network interfaces: >>> import network >>> sta = network.WLAN(network.STA_IF) >>> ap = network.WLAN(network.AP_IF) >>>...
by larsks
Mon Apr 09, 2018 2:55 am
Forum: ESP8266 boards
Topic: Get ssid of currently connected wifi network?
Replies: 4
Views: 665

Re: Get ssid of currently connected wifi network?

That is...pretty much exactly what I am asking, yes. I took a look at the sources and it seems as if this would be a reasonably easy feature to add, except that I am unsure where the various MP_QSTR_ constants come from (like MP_QSTR_essid). They get generated as part of the build process, but I'm n...
by larsks
Sat Apr 07, 2018 5:33 pm
Forum: ESP8266 boards
Topic: Get ssid of currently connected wifi network?
Replies: 4
Views: 665

Get ssid of currently connected wifi network?

Is there any way of getting the ssid of the wifi network to which the esp8266 is currently connected? I was hoping for:

Code: Select all

sta = network.WLAN(network.STA_IF)
sta.config('ssid')
...but that reports "unknown config param".
by larsks
Fri Nov 17, 2017 2:36 am
Forum: Programs, Libraries and Tools
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 1702

Re: Noggin: A simple web framework that will run on your esp8266 boards.

1. You need to install the "socket" module from micropython-lib: That's interesting! I didn't realize that different ports would have different modules installed by default. I also learned that at some point in the past I installed all of micropython-lib into ~/.micropython/lib on my development sy...
by larsks
Thu Nov 16, 2017 3:24 pm
Forum: Programs, Libraries and Tools
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 1702

Re: Noggin: A simple web framework that will run on your esp8266 boards.

I've made the change suggested in the previous comments.

I've also added a compatibility shim so that Noggin will run under CPython 3 in addition to MicroPython. This makes testing much easier, so there is now a small suite of tests included in the repository.
by larsks
Wed Nov 15, 2017 11:28 pm
Forum: Programs, Libraries and Tools
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 1702

Re: Noggin: A simple web framework that will run on your esp8266 boards.

A minor comment: instead of 'mimetype' I think 'content_type' (e.g. as a Response kwarg) would be more appropriate, given the example set by other similar APIs, since you're sending the value unmodified as the "Content-type" header: I went with "mimetype" because that's what the Flask Response obje...
by larsks
Wed Nov 15, 2017 10:29 pm
Forum: Programs, Libraries and Tools
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 9
Views: 1702

Noggin: A simple web framework that will run on your esp8266 boards.

I was asking the other day ( https://forum.micropython.org/viewtopic.php?f=2&t=4036 ) about minimal http servers for MicroPython, but I didn't get any responses and I wasn't able to find anything suitable...so I've written my own, and I've made it available in case someone else finds it useful: http...