ESPGeiger
- steadramon
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 12
1 year 1 month ago - 1 year 1 month ago #6704
by steadramon
Replied by steadramon on topic ESPGeiger
Hi Juzzie,
This is my oversight, the code checks for username/password when starting up MQTT - reading your posts above you don't use username or password for MQTT. I need to fix this.
Leave this with me!
Update:
This should be fixed in the v0.4.1 release
This is my oversight, the code checks for username/password when starting up MQTT - reading your posts above you don't use username or password for MQTT. I need to fix this.
Leave this with me!
Update:
This should be fixed in the v0.4.1 release
Last edit: 1 year 1 month ago by steadramon.
Please Log in or Create an account to join the conversation.
1 year 1 month ago #6713
by Juzzie
Owner and operator of "southofhobart" monitoring stations.
___
\_/ Starting up ... ESPGeiger-55c6d9
.--.O.--. Version - v0.4.2/4afb284 (ESP8266)
\/ \/
00:00:04 WiFi: IP: 192.168.0.109
00:00:04 Config: Loading ...
00:00:05 Counter: Bucket sizes - 1:60 5:60 15:60
00:00:05 Counter: Setting up pulse geiger ...
00:00:05 Counter: Interrupt RXPIN: 13
00:00:05 NTP: Starting ... pool.ntp.org
05:08:41 MQTT: Attempting connection ... 192.168.0.105:1883
05:08:41 MQTT: Connected!
One question - why ntp.org?
\_/ Starting up ... ESPGeiger-55c6d9
.--.O.--. Version - v0.4.2/4afb284 (ESP8266)
\/ \/
00:00:04 WiFi: IP: 192.168.0.109
00:00:04 Config: Loading ...
00:00:05 Counter: Bucket sizes - 1:60 5:60 15:60
00:00:05 Counter: Setting up pulse geiger ...
00:00:05 Counter: Interrupt RXPIN: 13
00:00:05 NTP: Starting ... pool.ntp.org
05:08:41 MQTT: Attempting connection ... 192.168.0.105:1883
05:08:41 MQTT: Connected!
One question - why ntp.org?
Owner and operator of "southofhobart" monitoring stations.
Please Log in or Create an account to join the conversation.
1 year 1 month ago #6714
by Simomax
The following user(s) said Thank You: Juzzie
Please Log in or Create an account to join the conversation.
1 year 1 month ago #6715
by Juzzie
Owner and operator of "southofhobart" monitoring stations.
I looked up ntp.org before asking the question, so was aware of it's function' But I had previously assumed that the time was obtained from the local network (my server), or directly from my isp.
The idea behind ntp makes sense, though if the time were obtained from my local network it would grant a little more autonomy.
I wonder if the espgeiger regularly checks ntp for the time? I don't imagine the clock in an esp8266 is very good at keeping time over a long period.
The idea behind ntp makes sense, though if the time were obtained from my local network it would grant a little more autonomy.
I wonder if the espgeiger regularly checks ntp for the time? I don't imagine the clock in an esp8266 is very good at keeping time over a long period.
Owner and operator of "southofhobart" monitoring stations.
Please Log in or Create an account to join the conversation.
1 year 1 month ago #6716
by Simomax
From what I can tell the ESP8266 requires the use of the millis() function to maintain time, so it will drift over time, especially if the load becomes high on the ESP. I suspect it does re/set the time every so often. Paul will be able to confirm this. A couple of useful bits here:
https://forum.arduino.cc/t/setting-the-esp8266-internal-clock/680099
and
https://www.instructables.com/TESTED-Timekeeping-on-ESP8266-Arduino-Uno-WITHOUT-/
Juzzie, do you run your own local NTP server at home? Maybe there could be an option in the setup of the ESPGeiger to have a custom NTP server?
Juzzie, do you run your own local NTP server at home? Maybe there could be an option in the setup of the ESPGeiger to have a custom NTP server?
The following user(s) said Thank You: Juzzie
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
Time to create page: 0.204 seconds