Search found 36 matches

by ixbo
Thu Jun 30, 2022 7:39 am
Forum: ESP32 boards
Topic: Convert Time Epoch in Date ,OpenWeather
Replies: 2
Views: 1782

Re: Convert Time Epoch in Date ,OpenWeather

Thanks very much
Now my date is readable !!!!

OFFSET_DATE = 946684800
d = res['list'][0]['dt']
print('date',utime.gmtime(d-OFFSET_DATE))


Very nice !!!!!!!!!!
Best regards
by ixbo
Wed Jun 29, 2022 5:56 pm
Forum: ESP32 boards
Topic: Convert Time Epoch in Date ,OpenWeather
Replies: 2
Views: 1782

Convert Time Epoch in Date ,OpenWeather

Hello Always big problem I use ESP32 with THONNY ( Micropython) I have make this program witch work well , the connection to wifi is not represented [color=#008000]import urequests APIKEY = "fb07531d1fe37a3effcdf3755be2f6a9" #OpenWeather API_call = "http://api.openweathermap.org/data/2.5/forecast?id...
by ixbo
Mon Jun 20, 2022 3:08 pm
Forum: ESP32 boards
Topic: ESP32 conneted WIFI to SMARTPHONE ....Mystery !!!
Replies: 3
Views: 1124

Re: ESP32 conneted WIFI to SMARTPHONE ....Mystery !!!

Hello thanks for your answer..... I'm not sure but I will explain ... I have a program named "main.py" loaded in my device This program can connect to my smartphone as box wifi SSID and PASSWORD are needed ......, When I power my ESP32 the main program start and WIFI is configured.....But now I crea...
by ixbo
Mon Jun 20, 2022 9:48 am
Forum: ESP32 boards
Topic: ESP32 conneted WIFI to SMARTPHONE ....Mystery !!!
Replies: 3
Views: 1124

ESP32 conneted WIFI to SMARTPHONE ....Mystery !!!

Hello An other mystery I try this program to scan wifi , i'm in the nature connected to nothing,only my smartphone. My smartphone (SAMSUNG S9) is configured as acces point to INTERNET. sta_if = network.WLAN(network.STA_IF) if sta_if.isconnected(): print(" IP MASQ GATEWAY DNS ") print(sta_if.ifconfig...
by ixbo
Wed Jun 15, 2022 10:18 am
Forum: ESP32 boards
Topic: requests.get MicroPython ESP32 INTERNET
Replies: 3
Views: 1165

Re: requests.get MicroPython ESP32 INTERNET

Hello I have followed your idea and I have tried with a version witch is not recommended by my book (perhaps to old ? ) Firmware Releases v1.18 (2022-01-17) .bin [.elf] [.map] [Release notes] (latest) Now 'my' program work well I have this result : >>> %Run -c $EDITOR_CONTENT IP MASQ GATEWAY DNS ('1...
by ixbo
Wed Jun 15, 2022 9:23 am
Forum: ESP32 boards
Topic: requests.get MicroPython ESP32 INTERNET
Replies: 3
Views: 1165

Re: requests.get MicroPython ESP32 INTERNET

Hello very nice your answer .... My development board have ==> ESP32-WROVER-B chip the firmware recommended by my book for this kit is ==> "Firmware (Compiled with IDF 3.x)" https://github.com/micropython/micropython/releases/tag/v1.14 Why not use this ? : Firmware Releases v1.18 (2022-01-17) .bin [...
by ixbo
Tue Jun 14, 2022 11:18 am
Forum: ESP32 boards
Topic: requests.get MicroPython ESP32 INTERNET
Replies: 3
Views: 1165

requests.get MicroPython ESP32 INTERNET

Hello I'm trying to use requests.get but it never works With examples found in internet it's the same....never work See this example the error message is: >>> %Run -c $EDITOR_CONTENT IP MASQ GATEWAY DNS ('192.168.1.33', '255.255.255.0', '192.168.1.254', '32.1.8.97') Traceback (most recent call last)...
by ixbo
Mon Jun 06, 2022 7:40 am
Forum: ESP32 boards
Topic: Send data from ESP32 to Thonny......how to do ?
Replies: 2
Views: 1096

Re: Send data from ESP32 to Thonny......how to do ?

Thank you very much for your answer ! I have no problem with the REPL on THONNY I know how to use it. (perhaps...) To recap.... main.py program: print("hello word") downloaded in the board I reset the board I would like to see in the REPL window 'hello word' but nothing With ARDUINO it was possible ...
by ixbo
Sun Jun 05, 2022 11:27 am
Forum: ESP32 boards
Topic: Send data from ESP32 to Thonny......how to do ?
Replies: 2
Views: 1096

Send data from ESP32 to Thonny......how to do ?

Hello.... I have MakePython ESP32 Development Kit with Thonny... I have made a program witch send data (temperature and humidity) to the web(ThingSpeek) it run well , the BOARD CONNECTED to my PC The I download my program as main.py into the ESP32 board I reset the board.....now the program do not w...
by ixbo
Thu Jun 02, 2022 10:28 pm
Forum: ESP32 boards
Topic: Connection to THINGSPEAK , IOT, ESP32 ,Cloud,DHT11
Replies: 2
Views: 1395

Re: Connection to THINGSPEAK , IOT, ESP32 ,Cloud,DHT11

Thank you for the answer Since several days I try to find a solution.... I try a sample given by Micropython.org they don't work I'm connected to WiFi But.................... import socket addr = socket.getaddrinfo("api.thingspeak.com",80)[0][-1] print(addr) IP MASQ GATEWAY DNS ('192.168.1.33', '255...