Forum Software Ferduino code Too many errors, when try to login on joyreef

Too many errors, when try to login on joyreef  [SOLVED]


Post Number:#1 Post Mon Dec 08, 2014 8:00 am
Len Nederlof Random avatar
Hi
The new Joy-reef is looking great.
I try to upgrade to the newer version on it.
I had the old version of Ferduino with web control
so i replaced the old ethernet library by this downloaded together with "Ferduino with web control".
I compiled the sketch again and uploaded it again
I registerd again on joy-reef but when i try to login first i get Ferduino password error, check your settings
after refreshing i get
Too many errors, please wait 843 seconds and retry

Do i need to change the part of the ehternet settings on the sketch to put the API key in it

I mean do i have to follow the other instructions in the How to install Ferduino with web control
mentioned under " For all users: "
or is
Warning: Old users only need do update of ethernet library.
Replace the old ethernet library by this downloaded together with "Ferduino with web control".
enough

Kind regards Len

Post Number:#2 Post Mon Dec 08, 2014 8:08 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Warning: Old users only need do update of ethernet library.


It means that no need change others libraries.

You need make all others configurations according to new tutorial.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Wed Dec 10, 2014 1:25 pm
Len Nederlof Random avatar
Hi,
I still have password problems
i cant connect to joy-reef with the arduino and when i try to connect to the arduino using the code from base64

The format show be: http://local_IP:port/?cmd=password_in_base64,0,K
i get response":"000
If i use the serial monitor theres no response


i made all others configurations according to new tutorial, i changed the part of "Funções do ethernet shield" in the sketch so its like in the new ferduino code with the username and API key.
boolean Ethernet_Shield = true; // Altere para "false" caso não tenha um Ethernet Shield conectado ao Arduino.

char *Username  = "nederlof";   // Coloque aqui o nome de usuário cadastrado no joy-reef.com
char *APIKEY = "xxxxxx";           // Cole aqui a ApiKey gerada pelo joy-reef.com

byte maxima_tentativa = 3;                // Número máximo de tentativas de autenticação.
unsigned long intervalo_tentativa = 15;   // Tempo  de espera (em minutos) para novas tentativas.

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Este MAC deve ser único na sua rede local.
byte ip[] = {x, x, x, x};                     // Configure o IP conforme a sua rede local.
IPAddress dnsServer(8, 8, 8, 8);                    // Configure o IP conforme a sua rede local. Este é o DNS do Google, geralmente não é necessário mudar.
IPAddress gateway(x,x,x,x);                  // Configure o "Gateway" conforme a sua rede local.
IPAddress subnet(255, 255, 255, 0);                 // Configure a máscara de rede conforme a sua rede local.
EthernetServer server(80);                        // Coloque aqui o número da porta configurada no seu roteador para redirecionamento.
                                                    // O número da porta deverá ser obrigatóriamente um destes: 80, 5000, 6000, 7000, 8000, 8080 ou 9000.

unsigned long intervalo = 0;
char *inParse[25];
boolean web_teste = false;
byte tentativa = 0;
boolean web_dosage = false;
unsigned long millis_dosagem = 0;
unsigned long millis_enviar = 0;
boolean web_calibracao = false;
char *token = ":";
char Auth1[50];
unsigned long teste_led_millis = 0;

and i changed the part on the webserver tab so its like in the new ferduino code,this becausse ther wher compilling error and the now fixed.
Kind regards Len

Post Number:#4 Post Wed Dec 10, 2014 1:38 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Can you show the APIKEY that you are unsing on code exactly?

Later you can generate a new clicking at "Generate new ApiKey".

If the code send 000 it's means that all configurations for local network are fine.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Thu Dec 11, 2014 4:55 am
Len Nederlof Random avatar
Hi,

My code is

char *APIKEY = "90e73bf";


This the second one i tried because with the first key i had the same problem so i generated aa new one but still not ok.

Len

Post Number:#6 Post Thu Dec 11, 2014 9:07 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Using your local IP try this:

http://192.168.0.177/?cmd=bmVkZXJsb2Y6OTBlNzNiZg==,0,K


You can have problem with your provider using the port 80. Try the 5000.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Thu Dec 11, 2014 1:09 pm
Len Nederlof Random avatar
Hi,

Tried the code white my local ip its the same


changed the poort to 5000 did the port check,the port is open.
when i try to connect i get
{"response":"001","interval":"718"}

on the joy reef site i get Too many errors, please wait 700 seconds and retry

when the interval is counted down to zero i get
{"response":"000"}

and then on the joy reef site i get
Ferduino password error, check your settings

Post Number:#8 Post Thu Dec 11, 2014 1:28 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

On setup add:

  Serial.print("Base 64: "); 
  Serial.println(Auth1);

  char credencial[50];
  base64_decode(credencial, Auth1, strlen(Auth1));
  Serial.print("Username:APIKEY: "); 
  Serial.println(credencial);


After:

base64_encode(Auth1, buffer, strlen(buffer));


Open the serial monitor set baud to 38400.

Tell me the result.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Thu Dec 11, 2014 3:45 pm
Len Nederlof Random avatar
Hi,

Because i'm running the old version of Ferduino with web control there is no
base64_encode(Auth1, buffer, strlen(buffer));

in the setup tab ( and more lines are different) so i will fix them first hopefully is that the problem.

I already found earlier some changes in the code on the ferduino tab at the end
prog_char string0[] PROGMEM = "POST /api/temp HTTP/1.1";


i already changed them earlier


Len

Post Number:#10 Post Fri Dec 12, 2014 7:04 am
Posts: 27
Images: 1
Solve rating: 1
Joined: Wed May 07, 2014 3:20 pm
Age: 48
Gender: None specified
National Flag:
Italy
Joy-reef is not compatible with old version of Ferduino.
You have to update it.

Post Number:#11 Post Sun Dec 14, 2014 11:24 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Can you mark this topic as solved?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Len Nederlof Random avatar
The problem to connect to the Joy-reef is solved.
Latest version of ferduino loaded and a made the changes necessary to work with my setup.
Still small problem regarding dosing pumps , but have to look into that


Len




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 0 guests