All Projects → KebabLord → Esp2python

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.

Labels

Projects that are alternatives of or similar to Esp2python

Tasmoadmin
Website to manage Sonoff Devices flashed with Tasmota
Stars: ✭ 560 (+2445.45%)
Mutual labels:  esp8266
Esp Homekit Demo
Demo of Apple HomeKit accessory server library
Stars: ✭ 657 (+2886.36%)
Mutual labels:  esp8266
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+3627.27%)
Mutual labels:  esp8266
Esp8266 beaconspam
Creates up to a thousand WiFi access points with custom SSIDs.
Stars: ✭ 575 (+2513.64%)
Mutual labels:  esp8266
Tasmotizer
ESP... The time has come to... Tasmotize!
Stars: ✭ 631 (+2768.18%)
Mutual labels:  esp8266
Esp32 esp8266 attacks
Proof of Concept of ESP32/8266 Wi-Fi vulnerabilties (CVE-2019-12586, CVE-2019-12587, CVE-2019-12588)
Stars: ✭ 686 (+3018.18%)
Mutual labels:  esp8266
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (+2390.91%)
Mutual labels:  esp8266
Ulnoiot Upy
retired version of ulnoiot based on micropython
Stars: ✭ 17 (-22.73%)
Mutual labels:  esp8266
Opendps
Give your DPS5005 the upgrade it deserves
Stars: ✭ 655 (+2877.27%)
Mutual labels:  esp8266
Wifiduck
Wireless keystroke injection attack platform
Stars: ✭ 723 (+3186.36%)
Mutual labels:  esp8266
Diyhue
Philips Hue emulator that is able to control multiple types of lights
Stars: ✭ 586 (+2563.64%)
Mutual labels:  esp8266
Taskscheduler
Cooperative multitasking for Arduino, ESPx and STM32 microcontrollers
Stars: ✭ 613 (+2686.36%)
Mutual labels:  esp8266
Esp Homekit
Apple HomeKit accessory server library for ESP-OPEN-RTOS
Stars: ✭ 720 (+3172.73%)
Mutual labels:  esp8266
Arduinojson
📟 JSON library for Arduino and embedded C++. Simple and efficient.
Stars: ✭ 5,456 (+24700%)
Mutual labels:  esp8266
Esp8266 Weather Station
ESP8266 Weather Station library supporting OpenWeatherMap, Aeris and other sources
Stars: ✭ 822 (+3636.36%)
Mutual labels:  esp8266
Async Mqtt Client
📶 An Arduino for ESP8266 asynchronous MQTT client implementation
Stars: ✭ 555 (+2422.73%)
Mutual labels:  esp8266
Haswitchplate
LCD touchscreen for Home Automation
Stars: ✭ 666 (+2927.27%)
Mutual labels:  esp8266
Esp8266 Redis
An Arduino library for Redis that works on ESP8266.
Stars: ✭ 18 (-18.18%)
Mutual labels:  esp8266
Nodemcu Firmware
Lua based interactive firmware for ESP8266, ESP8285 and ESP32
Stars: ✭ 6,884 (+31190.91%)
Mutual labels:  esp8266
Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! 🎉
Stars: ✭ 722 (+3181.82%)
Mutual labels:  esp8266

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:

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

Deficiencies

  • The code is a bit complex, will be simplified.
  • ~~Needs a tutorial ~~ (Tutorial here)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].