Search found 275 matches

by RGV250
Sat May 04, 2024 4:22 pm
Forum: General
Topic: If then in a calculation
Replies: 2
Views: 21

Re: If then in a calculation

Thanks, that is a neat solution.

Bob
by RGV250
Sat May 04, 2024 1:48 pm
Forum: General
Topic: If then in a calculation
Replies: 2
Views: 21

If then in a calculation

Hi, I am a bit puzzled if this is possible or not, in the help for calculations it shows >, <, >= and so on but I cannot figure out how to use them. I would like to be able to do simple things like xyx = xyz + 1 if xyz > 10 then xyz = 0 So far I have had to do the addition and then use a decision wh...
by RGV250
Thu May 02, 2024 10:01 am
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Thanks, that works. I did originally try it without the /ncsi.txt on the end but added that when it didn't work. The only thing other than that I can see is that you have taken off the http:// which for some reason works for a PC? An interesting thing it failed to run on FC9 (as that was on the PC I...
by RGV250
Wed May 01, 2024 10:40 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Hi,
I removed the ESP32 and just used the network component but I didn't get anything. I then noticed that the network component connect component states "Some TCP/IP modules (RPI and ESP8266) will accept a URL instead of an IP address".
Looks like I will have to dig the actual hardware out.

Bob
by RGV250
Wed May 01, 2024 9:25 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Hi, Any chance you can give this a quick once over. Should I be able to simulate the ESP32 as I do not even seem to get Ret = 1 to show it is connected to the router. I had a bit of a tidy up (I really shouldn't) and not sure where I have hidden my actual device so cannot try for real at the moment....
by RGV250
Wed May 01, 2024 6:45 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Hi,
I did wonder if I was overthinking it. I looked at connect but only in the request_my_db example where it had a local IP and didn't realise it could have a URL.

Bob
by RGV250
Wed May 01, 2024 4:27 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Hi, I wonder if I have hit a snag, I have written a PHP script which gets gets the file and checked this works on my PC. The issue is that the PC has the Abyss web server so all is good. If I run it on the ESP32 and do not have the PC running I do not think it will work? This is the script I have. <...
by RGV250
Tue Apr 30, 2024 7:23 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

I think in a previous project you successfully grabbed "200 OK" or such like.
Just what I was thinking.

Bob
by RGV250
Tue Apr 30, 2024 6:23 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Good point, I had not thought of that, when I was with Plusnet I had a fixed IP. I will probably only check every couple of hours, it must have been out for quite a while as my data normally lasts a month easily and was used in just over a week. Just looking for the "200 OK" is a lot simpler than ge...
by RGV250
Tue Apr 30, 2024 3:52 pm
Forum: General
Topic: WiFi alarm
Replies: 17
Views: 169

Re: WiFi alarm

Hi Chipfryer, I have just come across this which is how Windows does it. https://superuser.com/questions/277923/how-does-windows-know-whether-it-has-internet-access-or-if-a-wi-fi-connection-re Basically it tries to connect to this address http://www.msftncsi.com/ncsi.txt which has this text in the d...