![]() |
Forum Index : Microcontroller and PC projects : Watering system and email
Author | Message | ||||
PhilP![]() Newbie ![]() Joined: 25/01/2017 Location: United KingdomPosts: 36 |
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 |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2155 |
ignore Edited 2025-05-24 21:21 by CaptainBoing |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2155 |
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 |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3278 |
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 Geoff Graham - http://geoffg.net |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10106 |
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. |
||||
PhilP![]() Newbie ![]() Joined: 25/01/2017 Location: United KingdomPosts: 36 |
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 |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3278 |
Not at all. The first thing that you need to do is get access to the home web page of the Watering Controller. You can then worry about setting up the email later. Can you do that? From your log listing it shows that your Gardening Controller received at least two web page requests and sent the default web page (ie, the home page) both times, so something is working. Once you can see the home page you can click on the GENERAL SETTINGS button at the bottom (you may have to scroll up) and that will open up the settings page for entering the email info. Have you got there? Finally: Where did you enter this address? Just saying "have tried the IP address" does not give much information! There is a misunderstanding floating around here but I cannot see what it is. The more information that you give the more we will be able to help you. You should download the PicoMite User Manual (https://geoffg.net/Downloads/picomite/PicoMite_User_Manual.pdf) and read the chapter starting on page 71. There may be a clue in there somewhere. That chapter also talks about sending emails using SMTP2GO. Geoff Edited 2025-05-25 17:43 by Geoffg Geoff Graham - http://geoffg.net |
||||
PhilP![]() Newbie ![]() Joined: 25/01/2017 Location: United KingdomPosts: 36 |
Geoff - thanks for your patience. In response to your first question, my problem is finding the home web page of the Watering Controller. Once I have got there I think I will be OK for setting up an email account. I managed with SENDGRID!! I understood that the home page was at the IP address given in the start up message of the programme as shown on the Tera Term dialogue i.e. 25-05-2025 12:30:01 Checking connection to WiFi 25-05-2025 12:30:01 Connected. IP address is 192.168.1.116 It was this address in entered into the browsers and got Error code: 404 Not Found. If it is not there where do I find the home page? Captain Boeing suggested I add a URI? Phil |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10106 |
Have you set the server port address? OPTION TCPIP SERVER PORT 80 |
||||
dddns Guru ![]() Joined: 20/09/2024 Location: GermanyPosts: 410 |
Can you ping the system from your client? Obviously yes, but please try |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3278 |
Yes, the IP address of your Pico W 2 is 192.168.1.116 So, you should be able to type that into the address bar of your browser and you should be able to see the home page. You could also use: http://192.168.1.116 192.168.1.116/index.html http://192.168.1.116/index.html they should all work the same. When you do this you should see something like the following on the console: xx-xx-xxxx yy:yy:yy Sending default page. Auto refresh set to zzzzz seconds This is the BASIC program saying that it has just sent the default web page (index.html) to a browser that asked for it. The puzzling thing is that this is exactly what your console log shows... so something requested and received the home web page just 25 seconds after your Pico W 2 booted up. I cannot see what the problem is. The software works fine with the Chrome browser and is used by many people so it must be something strange that is happening in your browser or on your network. All I can suggest is that you try to diagnose the problem and perhaps the answer will drop out. Geoff Geoff Graham - http://geoffg.net |
||||
Martin H.![]() Guru ![]() Joined: 04/06/2022 Location: GermanyPosts: 1203 |
Could the problem be due to the security settings of the browser or operating system? Many current browsers deny http access and therefore only allow https connections, unless you explicitly allow it 'no comment |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |