Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThingSpeak channel not updated using French accents #40

Open
biwizit opened this issue Dec 26, 2020 · 3 comments
Open

ThingSpeak channel not updated using French accents #40

biwizit opened this issue Dec 26, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@biwizit
Copy link

biwizit commented Dec 26, 2020

Hello,

The ThingSpeak channel is not updated very often with this sketch (less than 10% of the time), even if I have no error at all in in the serial terminal, every ten minutes. It is working much better (almost 100%) with the original code from opengreenenergy, which is weird because it is almost the same piece of code in the two scripts.

Any idea ? Would it be due to the number of fields which are more important in your sketch (or the additional status) ?

Thank you in advance.

Regards.

@biwizit
Copy link
Author

biwizit commented Dec 26, 2020

I confirm that it becomes 100% successfull when I comment out the status lines :

// postStr+="&status=";
// postStr+=String(forecast_in_words + ": " + ZambrettisWords + ". " + pressure_in_words + " " + trend_in_words + ". " + accuracy_in_words + " " + accuracy_in_percent + "%25."); // Percentage sign needs to be URL-encoded

I need to investigate why (due to all the accents when using the french translation ?). But the workaround is acceptabe for me at the moment. Thanks.

@biwizit
Copy link
Author

biwizit commented Dec 26, 2020

I confirm that everything is fine with status added again but when keeping the translation in english or removing the accents in the french translation.

I imagine that the accents are causing some issues somewhere.

I let this ticket open, in case of you want to make this part of the script more solid.

Thank you for all the job !

Regards.

@3KUdelta
Copy link
Owner

Thank you for your posting. https://ww2.mathworks.cn/matlabcentral/cody/groups/14/problems/853 confirms that they do not like strings with french accents.
Maybe someone likes to re-write the part with ThingSpeak and send chars instead of strings.

@3KUdelta 3KUdelta changed the title ThingSpeak channel not updated in a regular way ThingSpeak channel not updated using French accents Dec 28, 2020
@3KUdelta 3KUdelta added the help wanted Extra attention is needed label Dec 28, 2020
Repository owner deleted a comment from danielec1980 Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants