(Solved) Arduino code on ESP8266 keep crashing on submitting CPM to Radmon

  • Simomax
  • Simomax's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Nuts about radioactive everything!
More
2 years 11 months ago #5942 by Simomax
All functions re-enabled! Will see how it does overnight.

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

  • Simomax
  • Simomax's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Nuts about radioactive everything!
More
2 years 10 months ago #5943 by Simomax
It ran all night without a hiccup! I think I'll call this solved! 

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

  • Simomax
  • Simomax's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Nuts about radioactive everything!
More
2 years 10 months ago - 2 years 10 months ago #5952 by Simomax
4 days uptime (349539 seconds) and still going strong. Looks like the new code is working well. One thing I need to see is that it is capable of failing for a while and make sure it recovers OK. Such as in an internet outage or Radmon.org being down. I should do the same with the WiFi connection and make sure it recovers OK after an outage. I think once that is confirmed I can roll this as Version 1.0.
Last edit: 2 years 10 months ago by Simomax.

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

More
2 years 9 months ago - 2 years 9 months ago #6034 by 4L7RU157
This looks like it could be used to improve radmon's software documentation (the arduino chapter) :P It sure is a lot of reading. Would you happen to have a code snippet that focuses just on the submitting to radmon part? I have my counter running but it still fails to send the data to radmon with the default code. I would also be happy with a github repo, as that has better syntax highlighting (would be nice to have on this forum too!)

wificlient.print("GET /radmon.php?function=submit&user=");
wificlient.print(RadmonUser);
wificlient.print("&password=");
wificlient.print(RadmonPass);
wificlient.print("&value=");
wificlient.print(int(readings[1]));
wificlient.print("&unit=CPM");
wificlient.println(" HTTP/1.0");
wificlient.println("HOST: radmon.org");
wificlient.println();
Last edit: 2 years 9 months ago by 4L7RU157.

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

  • Simomax
  • Simomax's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Nuts about radioactive everything!
More
2 years 9 months ago #6035 by Simomax
You missed it, 5 posts back.   That is the code I am using and have been since that post. It seems to work well. Not had any hiccups with that code. Here is the post: https://radmon.org/index.php/forum/homebrew-counters-electronic-design-and-building/1215-solved-arduino-code-on-esp8266-keep-crashing-on-submitting-cpm-to-radmon?start=0#5939
 

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

  • Simomax
  • Simomax's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Nuts about radioactive everything!
More
2 years 9 months ago #6037 by Simomax
4L7RU157, this may (or may not) help you. It is some bare bones code for the ESP8266/Wemos D1 Mini: https://radmon.org/index.php/forum/howtos-and-faqs/1225-esp8266-wemos-d1-mini-arduino-code-bare-bones-code-verified-working 

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

Moderators: Gamma-Man
Time to create page: 0.231 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 41% Memory 21% Swap 70% CPU temp=48.7'C Uptime 71 Days