ESPGeiger

More
7 months 2 days ago - 7 months 2 days 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
Last edit: 7 months 2 days ago by steadramon.

Please Log in or Create an account to join the conversation.

More
7 months 1 day ago #6712 by Juzzie
Replied by Juzzie on topic ESPGeiger
Just updated firmware to v0.4.2 over wifi using .bin file - all went well. MQTT changes are perfect.
I love your work!

Owner and operator of "southofhobart" monitoring stations.

Please Log in or Create an account to join the conversation.

More
7 months 1 day ago #6713 by Juzzie
Replied by Juzzie on topic ESPGeiger
___
\_/ 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.

More
7 months 1 day ago #6714 by Simomax
Replied by Simomax on topic ESPGeiger
The ESP doesn't have a battery backed RTC (real time clock) so it uses NTP to get the current time when it boots. That's why the log starts at 00:00:00 but then after connecting to an NTP server it shows the correct time.
The following user(s) said Thank You: Juzzie

Please Log in or Create an account to join the conversation.

More
7 months 1 day ago #6715 by Juzzie
Replied by Juzzie on topic ESPGeiger
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.

Owner and operator of "southofhobart" monitoring stations.

Please Log in or Create an account to join the conversation.

More
7 months 1 day ago #6716 by Simomax
Replied by Simomax on topic ESPGeiger
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?
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.182 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 42% Memory 14% Swap 17% CPU temp=65.2'C Uptime 67 Days