logo elektroda
logo elektroda
X
logo elektroda

ESP8266 not sending data to ThingSpeak - charts out of date

Rigardo5033 858 8
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18053561
    Rigardo5033
    Level 6  
    Hello, I have a problem. I have a station that measures temperature pressure, pmy etc. For a period of time everything was fine and data was being sent, now suddenly the graphs on the channel are not updating. I have not changed anything in the program or anywhere. What could the problem be?

    The code for the upload function:
    Code: C / C++
    Log in, to see the code
    .

    In the serial port monitor I get the info :
    Connected to Thinkspeak
    Something was trying to send

    Why is the graph not updating?
  • ADVERTISEMENT
  • #2 18053825
    kaczakat
    Level 34  
    I know this feature from somewhere, there is a cut out here to verify what the server is responding to because I used this in an ESP that ran on battery and would put itself to sleep whether the internet connection was available or not, I am currently using the version from the get:
    Code: C / C++
    Log in, to see the code
    .
    Here I also put the module to sleep at the end, adding a delay(100) makes sure the ESP has time to send everything before it goes to sleep.
    If you want to get to the source of this one from the post it is shown on Youtube on the Andreas Spiess channel https://www.youtube.com/channel/UCu7_D0o48KbfhpEohoP7YSQ/featured.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 18053891
    Rigardo5033
    Level 6  
    I.e. what is wrong with this function? It was working for 3 weeks and suddenly stopped.
  • ADVERTISEMENT
  • #4 18053939
    kaczakat
    Level 34  
    Add yourself this delay, I haven't used the function from post for 3 years and I can't remember why anymore, but I had delay(1000) in it, in the one from get I got to the point that 100ms was enough. I didn't go deeper into it, because it worked and as of today it still works. Without the delay it sometimes worked, sometimes not. Maybe you're exceeding your login intervals (free account min every 15s), maybe you've exhausted the limit of records you're entitled to - every how many and how many data logs?
    Helpful post? Buy me a coffee.
  • #5 18053947
    Rigardo5033
    Level 6  
    Is there a data limit on thingSpeak? If so this is probably the fault;/.
  • #6 18053991
    kaczakat
    Level 34  
    Go to Account and My Account, there are charts and tables there on how it is with limit usage. Under How to Buy you will find how it compares for the different variants of paid accounts. As for actual home use for 4 channels, I use about 20% in each of the 4 boxes. There might be a problem as if someone wanted to register on all channels all fields every 15s.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 18054068
    Rigardo5033
    Level 6  
    Well I haven't exceeded the limit so that's not the problem;/
  • #8 18054102
    kaczakat
    Level 34  
    Substitute a function for yourself and see if it helps, the extra difference is that you connect to an IP number, I connect to "api.thingspeak.com". You have 2 more function arguments, it's a couple of lines of CTR+C and CTR+V and it will be the same.
    Helpful post? Buy me a coffee.
  • #9 18054116
    Rigardo5033
    Level 6  
    Tomorrow I will try to replace these functions :) I will keep you updated

Topic summary

The discussion revolves around an issue with an ESP8266-based station that measures temperature and pressure, where data is no longer being sent to ThingSpeak, resulting in outdated graphs. The user reports that the code has not changed, and several responses suggest potential causes and solutions. Key suggestions include adding a delay in the data sending function to ensure reliable transmission, checking for data limits on ThingSpeak accounts, and using the correct server address (api.thingspeak.com) instead of an IP address. The user is encouraged to verify their account usage limits and to test alternative functions for sending data.
Summary generated by the language model.
ADVERTISEMENT