Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:47 26 Nov 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 : Fruitoftheshed giving me 404

     Page 3 of 5    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4040
Posted: 10:09am 13 Jan 2024
Copy link to clipboard 
Print this post

Ok, not sure whether those images were missing originally, or were lost by HTTRACK, possibly they were hosted off site and thus didn't get copied. I believe Gerry has the original wiki source so he would be able to determine this.

Jim, thanks for the .zip, I will use it to update the static site though that may be the slippery slope to maintaining it that I would prefer to avoid.

Gerry, Lance, do we have a plan going forward? Is either of you willing to be primary custodian of this Fruit of the Shed reborn? If you use a GitHub wiki I can provide some initial technical support, but I am making it up as I go along with the help of Google.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 02:33pm 13 Jan 2024
Copy link to clipboard 
Print this post

  thwill said  I am making it up as I go along with the help of Google.


Your google-foo is better than mine. Can you briefly explain what you did to get as far as you have gotten? I can see that the structure from HTTRACK works locally, but have no idea how to transpose (transpile?) that into a github wiki.

(FWIW, yesterday I read this github: how it works explainer, but I fear it would take more hands-on experience than I am likely to accumulate to actually become adept at it.)

It would be good if someone younger than I were to undertake to maintain/host this, but I recognize that many here are not significantly younger than I am.

I also have no idea of the scope of work involved in making this something which others could add to.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6792
Posted: 02:44pm 13 Jan 2024
Copy link to clipboard 
Print this post

I was told that Github is so easy that a 12-year old can use it, lizby. Unfortunately we ran out of 12-year olds many years ago so I'm just as flummoxed as you - if not more so. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 479
Posted: 02:50pm 13 Jan 2024
Copy link to clipboard 
Print this post

Let me try at this weekend. What are you trying to accomplish?
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 03:54pm 13 Jan 2024
Copy link to clipboard 
Print this post

  LeoNicolas said  What are you trying to accomplish?


Tom's idea (for which he has given us proof-of-concept) seems to be a github based Wiki containing the FruitOfTheShed content in such a form that others could add to it to establish a persistent database for MMBasic-related content.

Inclusion of CMM2.fun content would also be desirable.

The top-down structure for this seems unclear. Tom's implementation includes the Main Page items of FotS, but not sub-category items which were linked through the dropdown list to the right of "Welcome, Guest". It may be that only Gerry has the current means to provide the necessary links for those sub-category items.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 05:18pm 13 Jan 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  I was told that Github is so easy that a 12-year old can use it

For simple use, e.g. downloading an app to build it, it's trivially easy and a 12-year old could do it.

The net is similarly easy unless you want to do something non-trivial...

I'm less inclined to believe a typical 12-year old could have created FotS, on github or elsewhere.

John
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4040
Posted: 06:24pm 13 Jan 2024
Copy link to clipboard 
Print this post

  lizby said  Tom's idea (for which he has given us proof-of-concept) ...


I would not call what I'd done a proof of concept for a replacement FoTS Wiki. What I've done is put the old contents back online as a static website (using "GitHub Pages", not a GitHub "Wiki"), this is hopefully useful, but also probably a technical dead-end.

  lizby said  ... seems to be a github based Wiki containing the FruitOfTheShed content in such a form that others could add to it to establish a persistent database for MMBasic-related content.


Yes, and I proposed a GitHub Wiki because it is free, likely to be around a long time and provides excellent facilities for robustness (forks and local clones) so we don't find ourselves in this situation again. However GitHub is not for most 12 year-olds and beyond the source control aspects of GitHub (the fundamentals of git) I am as much making it up as I go along as anyone else would be.

To get legacy Fruit of the Shed content into GitHub Wiki format we ideally want to start from the raw data that I believe Gerry has from Andrew/@CaptainBoing rather than the HTTrack scrapings which I used as the basis for the static website. Hopefully someone can write a script to convert the former into the appropriate GitHub format, I'm confident this would prove a LOT easier than writing a script to work with the HTTrack/HTML which appears to be 90%+ crud and duplication.

  lizby said  Inclusion of CMM2.fun content would also be desirable.


I advise walking before we start to run, but I have taken a static copy of CMM2.fun as insurance against it going down. Note that CMM2.fun never stored any .bas/.zip files only images and links.

We may also have to consider whatever Pete is up to ... but I fear that he has let his enthusiasm get away from him and his current idea will exclude casual use given it requires the additional hurdle of specialist hardware and software to access. Personally I would have worried about the ability to download directly to the CMM2 (or other MMBasic machine) at a later date ... if at all. However, it's not my project, and if nobody is paying the piper then he gets to call his own tune .

  lizby said  The top-down structure for this seems unclear. Tom's implementation includes the Main Page items of FotS, but not sub-category items which were linked through the dropdown list to the right of "Welcome, Guest"...


I think those pages are still there on the static site: https://thwill1000.github.io/fruitoftheshed.com/Colour%20MaxiMite%202%20(CMM2).AllPages.html, and the links could be fixed up, but like I said, it's probably a technical dead-end, we want/need a Wiki.

I think the next move is really up to Gerry as he was the one who contacted @CaptainBoing when the initial announcement of FoTS going down was made; which is fortunate since a significant number of us missed it on the Site News thread.

Best wishes,

Tom
Edited 2024-01-14 05:09 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 368
Posted: 07:14pm 13 Jan 2024
Copy link to clipboard 
Print this post

  thwill said  We also have to consider whatever Pete is up to ... but I fear that he has let his enthusiasm get away from him and his current idea will exclude casual use given it requires the additional hurdle of specialist hardware and software to access.

Thanks. But I do believe strongly that one of the hurdles for the CMM2 is the existing requirement for users to have extra hardware in the shape of a PC and SD card reader before being able to really use the CMM2. I would ultimately like to see the MiteWAN ESP32 included in the hardware design (there are pins for COM2 on the Gen 2 design already that it could slot into), so that all users can access it. But even in it's current shape (a plug in box for the rear connector) it is hopefully a pretty easy choice for existing users.

Having said all of that, I am watching this conversation with interest. I think step 1 is definitely preservation of Andrew's work that was put into Fruit of the Shed. How we evolve that is secondary.

To be honest, my project is slightly different from what is being discussed here. Everything here is PC/Mac/Linux browser based, hand picked and organised. What I am trying to achieve with MiteWAN is the ability to easily share programs between CMM2s (or other Mites) without removing SD cards. I suspect a large percentage of the programs will be just people like myself mucking about with half finished programs and things that are maybe only of use/interest to a handful of people. Or a snippet of code along the lines of "I have a bug, why is this not scrolling properly" - and sharing their program so someone can quickly download it directly onto their computer and debug for them. Those sort of snippets are never intended to be a publicly published program.

It also serves a great purpose as a private backup of your programs. When I program the CMM2 I am very acutely aware that my SD card might fail. So after every day of coding, I pull the SD card, put it into my computer and backup my work. This would be so much simpler if I could just back it up directly from the CMM2 each time I finish a coding session.

But I don't want to distract from the discussion going on here. Don't worry about MiteWAN - get the Fruit of the Shed stuff saved and available and we can decide later if/how we integrate the two.

  thwill said  Personally I would have worried about the ability to download directly to the CMM2 (or other MMBasic machine) at a later date ... if at all.

What's wrong with pushing the limits of technology sooner rather than later - Forward to the future!  

In the words of JFK - We don't do these things because they are easy. We do them because we thought they were going to be easy.....  
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 08:12pm 13 Jan 2024
Copy link to clipboard 
Print this post

  thwill said  I think those pages are still there on the static site


Right you are: https://thwill1000.github.io/fruitoftheshed.com/MicroMite ArmMite and MMX Hardware.AllPages.html

Just seeing where/how to look helps.

~
Edited 2024-01-14 06:13 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 08:39pm 13 Jan 2024
Copy link to clipboard 
Print this post

  PeteCotton said  Forward to the future!


I personally don't think there is any incompatibility between a re-hosted FotS and Pete's idea.

There's no intrinsic reason why an MMBasic program talking to an ESP32 couldn't specify whether it wanted to download a file from github or from dropbox or from a specially established internet site or from a local NAS.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 368
Posted: 09:12pm 13 Jan 2024
Copy link to clipboard 
Print this post

  lizby said  I personally don't think there is any incompatibility between a re-hosted FotS and Pete's idea.

There's no intrinsic reason why an MMBasic program talking to an ESP32 couldn't specify whether it wanted to download a file from github or from dropbox or from a specially established internet site or from a local NAS.

I hadn't actually thought about it - but you are right.

I think we do need a login to download from GitHub - but that's fine - we could use a generic one, and we'd need some way of walking the tree structure in GitHub to get all of the sub-folders/files (or unzip the .zip file locally in the ESP32). But yeah it should work. There's a REST API for github - which would probably give us everything we need (but I haven't checked).

Dropbox or OneDrive is even simpler, but doesn't really offer a huge advantage over the Blob storage I'm currently using. Whereas GitHub has a user interface, and the advantage of source control for those who want that (I did consider doing source control within MiteWAN - but decided that it would complicate the system too much. I'm really aiming at something that beginners will be 100% comfortable with).

I really like this idea. So it would default to the Blob server for simplicity, and re-route to GitHub for "published" programs. That way we don't clutter GitHub with "Hello world" programs etc.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 10:16pm 13 Jan 2024
Copy link to clipboard 
Print this post

  PeteCotton said  we'd need some way of walking the tree structure in GitHub to get all of the sub-folders/files


I think this is needed anyway. I think a GETDIR (from some specified root) would be required--and then MMBasic code to walk the structure as needed. That's in addition to a GETFILE.

  Quote  There's a REST API for github - which would probably give us everything we need (but I haven't checked).


I haven't actually gone so far as to use it, but apparently you can use something like this to get a file: https://raw.githubusercontent.com/:owner/:repo/master/:path

I don't know what software you are using for the ESP32, but I have tested with an ESP32-S2Mini using Annex Basic, and it has a WGET command which is able to retrieve files and folders from local files or a remote website. Testing retrieval from Tom's github setup is on my list.

  Quote  ... the Blob storage I'm currently using


Is "Blob storage" a term of art referring to something specific, or just your generic usage for "file structure accessible over the web"?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3802
Posted: 06:51pm 14 Jan 2024
Copy link to clipboard 
Print this post

  PeteCotton said  I think we do need a login to download from GitHub

I have downloaded many many times from github without logging in.

BTW if you have a URL including /blob and just want the file, change blob to raw and use any downloader (wget etc).

John
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 07:37pm 14 Jan 2024
Copy link to clipboard 
Print this post

Ok, I used GIT on a PC to create a github repository named FOTS-demo with a folder named MMBLibrary containing the files from the zip file provided by TassyJim above.



I try the command below to try to retrieve the file ALPHANUM.BAS, but get an OpenSSL error. What do I do to try to resolve this?

wget https://raw.githubusercontent.com/lyzby/FOTS-demo/MMBLibrary/ALPHANUM.BAS
--2024-01-14 14:30:54--  https://raw.githubusercontent.com/lyzby/FOTS-demo/MMBLibrary/ALPHANUM.BAS
Resolving raw.githubusercontent.com... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com|185.199.110.133|:443... connected.
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Unable to establish SSL connection.


(I also tried http instead of https but get the same error.)
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 368
Posted: 07:51pm 14 Jan 2024
Copy link to clipboard 
Print this post

  lizby said  Is "Blob storage" a term of art referring to something specific, or just your generic usage for "file structure accessible over the web"?


BLOB = Binary Large Object. Basically a file of (within reason) unlimited size. No directory structure, just a unique identifier to retrieve it. Very useful things.
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 368
Posted: 07:53pm 14 Jan 2024
Copy link to clipboard 
Print this post

  lizby said  I don't know what software you are using for the ESP32...


I'm using C, but the REST API should be fairly language agnostic.
 
EDNEDN
Senior Member

Joined: 18/02/2023
Location: United States
Posts: 118
Posted: 08:11pm 14 Jan 2024
Copy link to clipboard 
Print this post

I downloaded it just fine...   You click on the green CODE button and tell it to send you a .ZIP file.

Unless the person clones the repository, a 'download' is going to get the entire repository.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 08:14pm 14 Jan 2024
Copy link to clipboard 
Print this post

I'm familiar with BLOB = Binary Large Object since the mid-80s, when none of the more successful PC databases handled them, but didn't (don't) know how it applies to this project.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 09:39pm 14 Jan 2024
Copy link to clipboard 
Print this post

  EDNEDN said  I downloaded it just fine...   You click on the green CODE button and tell it to send you a .ZIP file.

Unless the person clones the repository, a 'download' is going to get the entire repository.


I don't have a problem downloading the file from github in the browser--the question is, how do you download a file (or a folder) programmatically, as here and other sites (i.e., with wget or curl).

I tried adding the branch ("main") but got the same OpenSSL error:

wget https://raw.githubusercontent.com/lyzby/FOTS-demo/main/MMBLibrary/ALPHANUM.BAS
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4040
Posted: 09:55pm 14 Jan 2024
Copy link to clipboard 
Print this post

Hi Lance,

Works fine for me provided the branch name is included.

What operating system ?
What wget version ?
What OpenSSL version ?

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
     Page 3 of 5    
Print this page
© JAQ Software 2024