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, all fine. Than I needed to figure out how to communicate with the
board and put my first hello world on it.
- You would think for an organisation as this, there would be some kind of ide available which a new user can use for the first year.
But ehrm no, not such thing from MIcrophyton.
I did find out however on this site there was a book who would learn microphyton and spoke of a IDE, the uPycract, great for beginners. So
I bought that course, lookes nice, but when it came to installing the uPycraft it went downhill fast... It was for Ubuntu 16! only. Could not get it working on 18.4. And so I downgraded to 16.04, uPycraft works than fine, but other software in your distro demands newer versions, like pip, phyton and so on. So that was a showstopper again.
Further was it kinda frustrating that the docs section is ehm short. and it's focus is on the let's say the function itself.
You have something like this from Networking
A useful function for connecting to your local WiFi network is:
def do_connect():
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect('essid', 'password')
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
Once the network is established the socket module can be used to create and use TCP/UDP sockets as usual, and the urequests module for convenient HTTP requests.
If I look up the documentation under sockets / sockets, I get a technical manual from several pages, written by experts for experts.
So after a few days I did that put aside as well, it's great that i learned how to connect to the internet, but the next steps, how to setup up a socket, call an api etc. I could not find it.
So after a coffee break, I fired up two monitors again and started scaving youtube for " instructions" microphyton with esp8266 / esp32.
There where a buch , bet even more where not so easy to reproduce and to learn from. Sourcecode not up to date if the video is a few months old... so you want to run it... you can't due to errors.
Verry funny one, was an error i kept getting with the sdd1306 OLed driver. Every video was using different ones, i was ploughing on git through the libs of the Microphyton git itself and found an official one, just 4 days ago edited. Used that library and it workd fine.
So I got my esp32 working, with firmware, correct pins in boot.py stated for the attached oled. you have to declare pin16 first, then pull it down, then pull it up, then give it value 1. before you can do a thing with your display. Creative idea from the manufactor I think, pin 16 the rst pin

So I finally was able to put some text on that little display \0/ now was it time to start bringing in the information for my project, the reason why I want to learn this all.. A Microphycosmic project, that tracks items and peoples in space, from Nasa and Esa and Xspace.
Depending on what is happening in outerspace, several units running microphyton will handle tasks.
- If the ISS flies over my house and is visible, a nice diaroma comes more to life with blinky leds etc.

With a raspberry pi besides it, with a nice 7" screen a microphyten device could trigger that screen and popup the livestream when SpaceX shoots another awesome rocket in the sky.
As I'm totally new in programming also a reason why i choose microphyton I thought i made a good choice, but i'm not so shure anymore.
For example I was trying to grab the data from the nasa api about iss station passes and i could not access it in the way it should.
With my request.get i did get the .json file I desired but was not able to manipulate it. phyton says it's a str and it has to be an obj.
So since i'm not giving up that easy, i did reasearch again, but I drifted farther and farter away from the core microphyten.
at some moment I was importing libraries from phyton in the hope it would work in microphyton. urllib is such a famous on.
And again some good working tutorials about some fun missing projects are missing in the microphyton docs here.
--how to connect your microphyton to the GCP and upload data from connected sensors and visualise them?
-- or the otherway around, you have on your desk an esp32 who receives data from the cloud and depending what it receives comes
in to action gives a warning signal, or switches the coffeemaker on?
-- what about some nice tutorials about little insects / cars you could make with microphyton? -- and if you have make 4 of 5 of them, they follow each other as a snake body.
Computers are for 32 years now a part of my life, it still amazes me everyday what people can do with them, what great programs they can write. that's something that has always been out of my reach, but now I have the time , the will and see the fun in it with creating software. I can build and maintain computers, administer them, Linux and Windows (sorry no Macs) have servers running, but that last oh so important part is missing.... a bit of programming

-------
So I wrote all this down not as a frustrated person, who is about to through it all away. I had for shure some hours and hours of fun diving through the heaps of information but the endresult was not always that good. That's why I noted everything down what came down on my path the last ehm 2 months *\/* from 0 i'm now at .25 microphyton. knowledge
-So I hope there is a good IDE in the near future where I can upload code directly to my boards (esp8266 & sm32 & RPiB+)
With the goodies that come with an IDE.
Also to help me really out, if possible I would like to start a topic here on this forum where others could join in to help me write code or point me to the right direction. It might be looking a big project, but that's the end result. I want to make module for module.
I hope for some good feedback and I hope that I gave the organisation a few ones.
from all the options out in the world, i do believe this is the best option. Mongoose Os is nice for starting and to get your device easy on GCP but otherwise .. PlatformIO does promis and advertise a lot.. but what a messss when you install it in VSC, Extensions who don't like to work with eachother, you can't compile cause the great big Intellisense sees a mistake, run the code elsewhere and it's all fine.
So my last remark .. keep microphyton simple and keep it microphyton or maybe..maybe.. combine it with nodejs. npm
just to keep me sain i followd this tutorial https://thisdavej.com/node-js-iot-tracking-the-iss-through-the-sky/ and it was a breeze, it worked.
after that tut I put credentials in from my other site altered the code a bit and voila:
{ info:
{ satid: 25544,
satname: 'SPACE STATION',
transactionscount: 0,
passescount: 4 },
passes:
[ { startAz: 206.59,
startAzCompass: 'SSW',
startEl: 0.04,
startUTC: 1569090875,
maxAz: 144.17,
maxAzCompass: 'SE',
maxEl: 16.48,
maxUTC: 1569091160,
endAz: 82.21,
endAzCompass: 'E',
endEl: 14.47,
endUTC: 1569091440,
mag: -0.2,
duration: 350 },
{ startAz: 194.34,
startAzCompass: 'S',
startEl: 0.14,
startUTC: 1569174405,
maxAz: 139.78,
maxAzCompass: 'SE',
maxEl: 11.44,
maxUTC: 1569174665,
endAz: 84.94,
endAzCompass: 'E',
endEl: 4.3,
endUTC: 1569174925,
mag: 0.2,
duration: 445 },
It shows the next passes of the ISS above my house, took about 15 minutes I think. but that was with Nodejs & Npm
I hope something can also be adchieved with microphyton. I do!!
Thank you for ready my first and lang post

And if you have something to say.. please do.. all information is welcome, my microphyton learningsponge is dry

Martin