Search found 16 matches

by bergpb
Fri Jun 15, 2018 5:44 pm
Forum: ESP8266 boards
Topic: Convert a image and show in OLED display
Replies: 3
Views: 8281

Re: Convert a image and show in OLED display

:o Awesome thanks!!! I try this im my project. :D
by bergpb
Fri Jun 15, 2018 2:54 pm
Forum: ESP8266 boards
Topic: Fail to parse a json in api.apixu.com
Replies: 4
Views: 3294

Re: Fail to parse a json in api.apixu.com

Sorry for my wrong code.
Im use esp8266(esp12 standalone) with latest micropython (esp8266-20180511-v1.9.4).
Weird i tested the code now and works.
Just on i print the res.json() my esp reboots. Looks like a memory allocation error.
Im tested your code above.
by bergpb
Fri Jun 15, 2018 2:40 pm
Forum: ESP8266 boards
Topic: ssd1306 display scroll
Replies: 10
Views: 15263

Re: ssd1306 display scroll

Please post a examples how to use horizontal scroll.
Awesome work. :D :D
by bergpb
Fri Jun 15, 2018 1:42 pm
Forum: ESP8266 boards
Topic: Fail to parse a json in api.apixu.com
Replies: 4
Views: 3294

Re: Fail to parse a json in api.apixu.com

In res content return a response, json is okay in formating.
But in res.json get a error.

Here a url with api key, can you try:
https://api.apixu.com/v1/current.json?k ... =Fortaleza
by bergpb
Fri Jun 15, 2018 1:37 pm
Forum: ESP8266 boards
Topic: Convert a image and show in OLED display
Replies: 3
Views: 8281

Convert a image and show in OLED display

Hello,

Is possible get a image like this (http://icons.wxug.com/i/c/k/partlycloudy.gif), convert, and show in my oled SSD1306?
I'm making a weather station using Weather Underground Api.
by bergpb
Mon Jun 11, 2018 12:28 am
Forum: ESP8266 boards
Topic: Fail to parse a json in api.apixu.com
Replies: 4
Views: 3294

Fail to parse a json in api.apixu.com

Hello guys, Im try to parse a json when a i get from Apixu, but i get this error: This is my code: import urequests res = urequests.get('https://api.apixu.com/v1/current.json?key=myapikey&q=Fortaleza') forecast = res_temp.json() Traceback (most recent call last): File "<stdin>", line 1, in <module> ...