Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:32 18 Jun 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMiteWeb lessons

     Page 1 of 5    
Author Message
LucV

Regular Member

Joined: 19/02/2023
Location: Netherlands
Posts: 62
Posted: 04:50pm 25 Feb 2023
Copy link to clipboard 
Print this post

Ok Guys,

As you might know I have written some books. A book about the ESP32. A book about the Raspberry Pi Pico and one about the Pico W. The last two use MicroPython as the language the first C++.

In the mean time I stumbled upon PicoMite.
I yet have to build my own PicoMiteVGA but already had fun with PicoMite.
And then Peter build PicoMiteWeb. Wow !!!

As my books cover the Internet of Things I was immediately interested.

I however noticed that some forum members here threw the towel. They think that web based projects and html are too difficult. And maybe there are more members that think so but are afraid to mention it.

So I thought maybe someone should write a simple guide on explaining what this is about and how to use it. You can make this as complicated as you like but I want to start very simple so anyone can join in.

Until now I prepared 3 chapters:


Chap-01.pdf

The first chapter tells why IP numbers are important.


Chap-02.pdf

The second chapter tells how to obtain the PicoMiteWeb IP number.


Chap-03.pdf

And the third chapter shows how to build your first webpage. It is just a text and can be done with a simple text editor like wordpad or even MM Edit.

As English is noy my native language there might be spelling mistakes.

What I really would like to know is if there are enough forum members that would like me to continue. It is a lot of work and I would not spend too much time on this if nobody cares. So please state if you are interested.

Most important is:
Have fun

Luc
Luc's tech Blog
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3683
Posted: 05:42pm 25 Feb 2023
Copy link to clipboard 
Print this post

Probably worth a quick mention of NAT.

Also, why it's not possible to connect from the rest of the internet into the house side of the router using the 192... IP address.

Plus, how to get around that.

John
Edited 2023-02-26 03:43 by JohnS
 
Bizzie
Senior Member

Joined: 06/07/2014
Location: Australia
Posts: 185
Posted: 07:41pm 25 Feb 2023
Copy link to clipboard 
Print this post

LucV,
I for one have really struggled with HTML etc.
I look forward to read chapters 1-3 and any future productions.
Rob White
 
TrevorC
Newbie

Joined: 15/07/2020
Location: United Kingdom
Posts: 14
Posted: 08:34pm 25 Feb 2023
Copy link to clipboard 
Print this post

Hi,
   Thanks for your first 3 chapters of your guide to the PicoMiteWeb.
   
I am confused about the MQTT additions to the Pico as it seems useful but I am not sure where to start.

             Trevor
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1809
Posted: 09:04pm 25 Feb 2023
Copy link to clipboard 
Print this post

I am one who was very interested but threw in the towel, its over my head so very interested to read and learn.
Edited 2023-02-26 07:05 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1853
Posted: 09:37pm 25 Feb 2023
Copy link to clipboard 
Print this post

Yes, please!
I have found learning HTML and adapting it to the capabilities of the PicoMiteWeb difficult for my tired old brain.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3696
Posted: 10:31pm 25 Feb 2023
Copy link to clipboard 
Print this post

+1
Please continue, there is much to learn..
PicomiteVGA PETSCII ROBOTS
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5950
Posted: 11:04pm 25 Feb 2023
Copy link to clipboard 
Print this post

Many years ago Microsoft had a web publishing tool called "FrontPage"
Easy to use and not too many extras to complicate things.

They stopped releasing the program and I am yet to find an equivalent.

Luckily my original CD still works and I was able to coax it onto W11.

It is still easy to use and I don't have to resort to the HTML tab to get things working for my primitive requirements.

An updated equivalent would be very helpful for beginners.

Jim
VK7JH
MMedit   MMBasic Help
 
LucV

Regular Member

Joined: 19/02/2023
Location: Netherlands
Posts: 62
Posted: 11:56pm 25 Feb 2023
Copy link to clipboard 
Print this post

  TassyJim said  Many years ago Microsoft had a web publishing tool called "FrontPage"
Easy to use and not too many extras to complicate things.

They stopped releasing the program and I am yet to find an equivalent.

Luckily my original CD still works and I was able to coax it onto W11.

It is still easy to use and I don't have to resort to the HTML tab to get things working for my primitive requirements.

An updated equivalent would be very helpful for beginners.

Jim


Hey Jim,

Something like this ????

https://www.html.am/html-editors/online-html-editor.cfm

Luc
Edited 2023-02-26 09:57 by LucV
Luc's tech Blog
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5950
Posted: 01:30am 26 Feb 2023
Copy link to clipboard 
Print this post

  LucV said  
Hey Jim,
Something like this ????
Luc

Looks interesting. I don't like on-line tools but there a couple referenced that I hadn't looked at before so something to do.

Thanks.
VK7JH
MMedit   MMBasic Help
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1809
Posted: 03:57am 26 Feb 2023
Copy link to clipboard 
Print this post

I used Komposer a few years back and successfully got a web site up and running for our small golf club. If I could do it I can assure you anyone can...Komposer
Edited 2023-02-26 13:58 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9137
Posted: 04:13am 26 Feb 2023
Copy link to clipboard 
Print this post

I'd love to do webpage server things, but I am also one of those who doesn't really like the idea of learning ANOTHER computer language(HTML), so I would be interested in reading any more articles.  I will have a read of the first three later tonight.
Smoke makes things work. When the smoke gets out, it stops!
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 04:49am 26 Feb 2023
Copy link to clipboard 
Print this post

I know basically nothing about much of it, but would like to get a starting "framework" that shows how to pass data from the Pico to the webpage and interacting with the page calls functions to make things happen inside the Pico program... Not even sure how to get into the router and allow the Pico onto my network...  Will keep an eye on this thread...  Much thanks LucV  
 
TheMonkeys

Regular Member

Joined: 15/12/2022
Location: Australia
Posts: 59
Posted: 06:09am 26 Feb 2023
Copy link to clipboard 
Print this post

I have some experience with HTML, CSS and Javascript (I spent a couple of years as a web developer).

I'm playing with TassieJim's File Manager. Currently, it's one step away from working (I haven't added the line that actually performs the action(s)).

What is possible is to have a page that updates without re-loading, using javascript to reduce the load on the Pico.

I will admit, though, that for some reason it won't display more than 14 files.

This is the properties form displaying its own source.

I'm quite happy to explain how to make stuff work.

Cheers,

Chris.


Edit: Oh, yes. "current.bas" is the programme currently in memory, saved to disk when the server is run.
Edited 2023-02-26 16:13 by TheMonkeys
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 330
Posted: 08:45am 26 Feb 2023
Copy link to clipboard 
Print this post

I would certainly be interested to become a student at Luc's PicoWEB university!
My experience in the WEB area is very limited. I made some attempts with ESP-01 modules some years ago. I the used Annex. It was a lot of trial and error; mostly error. I definitively need to learn more (also about this topic).
Still waiting for my first PicoWEB modules to arrive.

Please continue with the following chapters  

/Pluto
 
LucV

Regular Member

Joined: 19/02/2023
Location: Netherlands
Posts: 62
Posted: 06:13pm 26 Feb 2023
Copy link to clipboard 
Print this post

Ok guys by popular demand, here is chapter 4.


Chapt-04.pdf

This chapter shows how to build your first webserver and make it send a first web-page to your computer, tablet or phone.
Sounds complicated and REALLY is not.

Have fun
Luc

Oh, by the way.
May I humbly and kindly ask forum members to start at new topic if they post something that is not directly related to these chapters/lessons. Then this thread will not clutter up.

Thanks
Luc's tech Blog
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 280
Posted: 06:17pm 26 Feb 2023
Copy link to clipboard 
Print this post

Thanks for this, it is really helpful.

Dave.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5950
Posted: 08:48pm 26 Feb 2023
Copy link to clipboard 
Print this post

The preferred way to trigger the server is by interrupt, not by polling.
Peter change this at some stage.

The remainder can stay the same.

WEB tcp interrupt gotrequest
...

sub gotrequest



Jim
VK7JH
MMedit   MMBasic Help
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 10:13pm 26 Feb 2023
Copy link to clipboard 
Print this post

  cosmic frog said  Thanks for this, it is really helpful.

Dave.


 me too

my goal is to "Get" a Pic or a stream from  my ESP32 Security Cam to the Picomite with Lcd
Edited 2023-02-27 08:15 by RonnS
 
LucV

Regular Member

Joined: 19/02/2023
Location: Netherlands
Posts: 62
Posted: 11:53am 27 Feb 2023
Copy link to clipboard 
Print this post

  Quote  The preferred way to trigger the server is by interrupt, not by polling.
Peter change this at some stage.

The remainder can stay the same.

WEB tcp interrupt gotrequest
...

sub gotrequest

Jim


Thanks Jim,

missed that.........
Going to add a small interim chapter on this before the next chapter.

There are so many updates following eachother that it made me miss this.....

Question though for anyone around.

I am on version
PicoMiteWebV5.07.07a20

And for one reason or another mm.info$(ipadress) gives an error. I read it in a post from Peter but does not seem to work anymore ??? Tried with $ sign and without.

Luc
Luc's tech Blog
 
     Page 1 of 5    
Print this page
© JAQ Software 2024