GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KebabLord/esp2python: This project helps you to get any sensor data from esp8266 to python as a variable and control the module through python without AT commands.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
library
library
 
 
README.md
README.md
 
 
banner.jpg
banner.jpg
 
 
diagram1.png
diagram1.png
 
 
diagram2.png
diagram2.png
 
 

Repository files navigation

ESP8266 to PY

It helps you to pull data from esp8266 and command it trough py. Tutorial here.

Requirements

Python lib:

  • urllib.request (generally internal lib)

Arduino lib:

  • esp8266 card library

System diagram

diagram
Different visual version if you didn't understand.

How to use this micro lib

Just import ESP_MICRO.h and use send / control / return functions for your project.

start( ssid, pass)

You simply enter your wifi details into this function and it starts the connection.

waitUntilNewReq( )

It's just a time block that waits for a request. It gives you the full control over python. With this ESP will wait until a python request come.

returnThisStr( ) & returnThisInt( )

Finally, you can return the desired data (or simply sensor data) to localhost server.

getPath()

In order to command ESP trough py we also have a string returning function getPath(), it simply reads get request: Useful with interacting and controlling the system.

py: GET example.com/OPEN_LED esp: if (getPath()=="/OPEN_LED"){ digitalWrite(LED,HIGH); }

Important (Getting ESP's IP adress)

While uploading the code, check serial port for ESP's local IP if you don't know how to use nmap or obtain ESP's IP, it'll be printed.

Reminder

  • It's fork of mDNSserver example by Ivan Grokhotkov

Deficiencies

  • The code is a bit complex, will be simplified.
  • ~~Needs a tutorial ~~ (Tutorial here)

About

This project helps you to get any sensor data from esp8266 to python as a variable and control the module through python without AT commands.

Topics

esp8266esp8266-arduinoesp8266-projectsesp8266-webservermdnsresponderno-atpython-arduinowithout-at

Resources

Readme
Activity

Stars

46 stars

Watchers

2 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.