Search found 8 matches

by iotmar
Sun Sep 29, 2019 7:53 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6229

Re: Converting given Epoch / Unix timestamp to GMT

:D So going on with the code, I tried to slice the outcome in to sections of year, month day to process it in a "nicely printed format" like 29 september 2019 - 16:34 hours. My attempts gave (again :) ) some nice error messages, who'm I took to the search engines and read up on things. On those tria...
by iotmar
Wed Sep 25, 2019 4:29 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6229

Re: Converting given Epoch / Unix timestamp to GMT

Aaaahh wonderful thank you! :D

Code: Select all

2019/09/25 15:58:22
I had no idea you could manipulate the outcome of the timestamp this way.
Very nice, can work on more passes now :-)
by iotmar
Wed Sep 25, 2019 3:26 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6229

Re: Converting given Epoch / Unix timestamp to GMT

Ah! that is a nice start thanks! I made this out of it: def whenloc(): datawhen = urlreq.urlopen("http://api.open-notify.org/iss-pass.json?lat=53.0145&lon=6.5862") data_when = json.loads(datawhen.read()) x = time.localtime(data_when["request"]["datetime"]) print("%4d/%02d/%02d %02d:%02d:%02d " % x[:...
by iotmar
Tue Sep 24, 2019 9:18 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6229

Converting given Epoch / Unix timestamp to GMT

Hi, As the subject indicates, i'm trying to convert a given epoch / unix timestamp to GMT. I'm grabbing the timestamp from the web in JSON format. I tried loading the datetime library with upip, but when I run the code, my board resets with a memory allocation failure. Another attempt was: from date...
by iotmar
Fri Sep 20, 2019 11:32 pm
Forum: General Discussion and Questions
Topic: A call to help me learn code the right way on MicroPhyton
Replies: 10
Views: 7274

Re: A call to help me learn code the right way on MicroPhyton

One small step... :-) This small step is very important ! Congratulations... The one downside is that it does not have a nice custom GUI IDE such as the one for the arduino. There are people who have made it work with VS Code (see Braden's post earlier in this thread). Personally I'm comfortable wi...
by iotmar
Fri Sep 20, 2019 2:10 pm
Forum: General Discussion and Questions
Topic: A call to help me learn code the right way on MicroPhyton
Replies: 10
Views: 7274

Re: A call to help me learn code the right way on MicroPhyton

ta1db wrote:
Fri Sep 20, 2019 1:30 pm

worked on STM32F7DISC flawlessly !.
Might be the board, I was using an esp8266, will try an stm32 later. But with the small edit I got it working :-)

One small step... :-)
by iotmar
Fri Sep 20, 2019 12:11 pm
Forum: General Discussion and Questions
Topic: A call to help me learn code the right way on MicroPhyton
Replies: 10
Views: 7274

Re: A call to help me learn code the right way on MicroPhyton

First, thank you all for the warm welcome, second, the given answers combined gave me the exact package I was hoping for, so a big thank you for you all. The battery did get a boost, I have an IDE with the right / good extensions, working lines of code on which I can build. :D On the code part, I ha...
by iotmar
Thu Sep 19, 2019 3:14 am
Forum: General Discussion and Questions
Topic: A call to help me learn code the right way on MicroPhyton
Replies: 10
Views: 7274

A call to help me learn code the right way on MicroPhyton

G'day reader, after about 2 months trying things out, learning, doing the RTF thing, I still get the feeling that i'm drifting away from what microphyton should be, a good understandable language that with some good effort is to master. - I had no problem flashing the firmware on a esp8266 or esp32,...