Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Watering system and email

Posted: 10:53am
24 May 2025
Copy link to clipboard
PhilP
Newbie


Good morning. In my quest to set up a new email service with SMTP2GO and failing to use Geoff's emailing guide I am trying to do it via the watering programme without any of the hardware. I am hoping that I can understand the code and establish an email service through the programme. However I am having problems. What am I doing wrong???

I am using a Pico 2 W with the following options.

WebMite MMBasic RP2350A Edition V6.00.01
OPTION AUTORUN  ON
OPTION FLASH SIZE 4194304
OPTION CPUSPEED  150000 'KHz
OPTION WIFI GNXB6EFC0, ************, PICO78FB9216274
OPTION TCP SERVER PORT 80
OPTION TELNET CONSOLE ON
OPTION COUNT GP10,GP6,GP7,GP8

The programme seems to run OK as shown below but I can't get to the watering system set up pages to establish the email service at the IP address given.

01-01-2024 00:00:17  ====================== Booting...
01-01-2024 00:00:17  Checking connection to WiFi
01-01-2024 00:00:17  Connected.  IP address is 192.168.1.116
01-01-2024 00:00:17  Getting UTC time
ntp address 77.104.162.218
got ntp response: 24/05/2025 10:35:00
ntp address 77.104.162.218
got ntp response: 24/05/2025 11:35:00
24-05-2025 11:35:00  Using timezone1 current date/time = 24-05-2025 11:35:00
24-05-2025 11:35:23  Sending default page. Auto refresh set to 44679 seconds.
24-05-2025 11:35:28  Sending default page. Auto refresh set to 44675 seconds.

I have have tried the IP address through both Chrome and Firefox browers but neither works

Looks like there’s a problem with this site
http://192.168.1.116/ sent back an error.
Error code: 404 Not Found

Thanks for any help
Phil
 
Posted: 11:20am
24 May 2025
Copy link to clipboard
CaptainBoing
Guru


ignore
Edited 2025-05-24 21:21 by CaptainBoing
 
Posted: 11:27am
24 May 2025
Copy link to clipboard
CaptainBoing
Guru


assuming everything is set up for HTTP (it isn't specifically mentioned in the list) http://192.168.1.116/   on it's own must serve a default document - without a URI after the site address (e.g. a page name), the server (your Pico) is being asked to provide a document by the browser that it doesn't know about - hence the 404 "document not found"

so, if your Pico is creating a document called fred.htm, try and be specific and provide that as the URI in the web address: http://192.168.1.116/fred.htm

If this doesn't progress things, use wireshark to snoop the traffic (filter on the IP address both ways) and see what the conversation is.
Edited 2025-05-24 21:29 by CaptainBoing
 
Posted: 11:41am
24 May 2025
Copy link to clipboard
Geoffg
Guru


I am having trouble understanding the problem.  

You say "I can't get to the watering system set up pages to establish the email service at the IP address given".  But you don't explain any further.  For example. what IP address?.

Then you claim that http://192.168.1.116 "sent back an error".  That is the address of your RPi card - that is not directly related to getting email notifications working.

None of this makes sense.
To make it worse, you are using a Pico 2 W.  The software has not been tested with this board!

I suggest that you:
- Use a RP2040 Pico.
- Get the software working so that you can connect to the main web page generated by the software.
- Set up an account with SMTP2GO
- Register a Verified Sender and create an associated username and password.
- Enter that in the Setup page.
- Then test that you can send an email.

Geoff
 
Posted: 11:52am
24 May 2025
Copy link to clipboard
matherp
Guru

The watering system works fine with a genuine Pico2-W. What isn't supported by MMBasic is the Pimoroni wireless version based on the RP2350B.
 
Posted: 01:02pm
24 May 2025
Copy link to clipboard
PhilP
Newbie


Geoff - sorry to be so confusing but I was trying to follow the instruction on your https://geoffg.net/retic.html page. I a trying to get to the General Settings Page to set up an email that way. I have the credentials from SMTP2GO to enter.

In the Construction Pack Note it says "As part of installing the firmware you should have noted the IP address given to the controller by your router. To setup the controller enter this address into the address bar of a web browser and you should see the home page as described here: https://geoffg.net/retic.html." It is this IP address I mentioned in my previous and was expecting this to be the way to get the Configuration Pages.

The software doesn't mention any restriction on type of Pico W to use so I thought that with the appropriate firmware a Pico-2 W would work as I happened to have one.
Thanks to matherp for confirming this.

Perhaps I am just being thick!!
Phil
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025