Search found 40 matches

by RobinMosedale
Tue Sep 14, 2021 12:32 pm
Forum: ESP32 boards
Topic: pickle
Replies: 3
Views: 2845

Re: pickle

Thank you Peter, as always.
I'll take your advice.
by RobinMosedale
Mon Sep 13, 2021 7:34 pm
Forum: ESP32 boards
Topic: pickle
Replies: 3
Views: 2845

pickle

snippet of code import pickle class configuration_data(object): def __init__(self): self.flashlight=True # by default flashlight on self.hour_start=0 # inhibit alarm hour start self.minute_start=0 self.hour_end=0 # inhibit alarm hour self.minute_end=0 self.inhibit_time=False def print_configuration(...
by RobinMosedale
Wed Mar 24, 2021 3:55 pm
Forum: ESP32 boards
Topic: Using a python variable in HTML
Replies: 5
Views: 3040

Re: Using a python variable in HTML

That worked perfectly, thank you very much
by RobinMosedale
Wed Mar 24, 2021 12:50 am
Forum: ESP32 boards
Topic: Using a python variable in HTML
Replies: 5
Views: 3040

Re: Using a python variable in HTML

Thank you Mark. You've recognised just how inexperienced I am with html.
Certainly give it a try but was leaning towards issuing gets that the holst replies with different pages. This is much better
by RobinMosedale
Mon Mar 22, 2021 7:37 pm
Forum: ESP32 boards
Topic: Using a python variable in HTML
Replies: 5
Views: 3040

Re: Using a python variable in HTML

Thank you, I'm aware of the static nature of HTML. It is after all a simple text mark up coding. It's a simple issue, which if I confess would be better implemented on the client's server with Java, but it seems a lot of effort for such a simple thing. These are snippets from the code that works, mo...
by RobinMosedale
Sat Mar 20, 2021 6:39 pm
Forum: ESP32 boards
Topic: Using a python variable in HTML
Replies: 5
Views: 3040

Using a python variable in HTML

Does micropython support using a python variable in HTML

I've tried <% thisvariablestring %>
which mearely prints 'thisvariablestring'
and """+thisvariablestring+"""
which reports variable not defined probably because it expects java source

Robin
by RobinMosedale
Thu Feb 25, 2021 3:29 pm
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 3077

Re: WLAN.ifconfig(

Forgive me Jimmo. I thought that I'd corrected those:- However the alternative syntax doesn't work, but doesn't matter. import network wlan = network.WLAN(network.STA_IF) print(wlan.active(True)) wlan.config(dhcp_hostname='esp32cam') wlan.ifconfig(config=('192.168.1.144','255.255.255.0','192.168.1,2...
by RobinMosedale
Thu Feb 25, 2021 1:28 am
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 3077

Re: WLAN.ifconfig(

Very odd. Looks identical
by RobinMosedale
Thu Feb 25, 2021 12:54 am
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 3077

Re: WLAN.ifconfig(

Isn't that identical to what I'm doing with merely a different instansiation of the wlan object name?
by RobinMosedale
Wed Feb 24, 2021 10:26 pm
Forum: ESP32 boards
Topic: WLAN.ifconfig(
Replies: 8
Views: 3077

Re: WLAN.ifconfig(

Thank you Dave