Chart problem

I am trying to make a chart.
The chart appears but the date is always 1 januari and not the present date,
Therefore no data will be displayed.
Any idea how to use this properly.

I did use the customise button in the settings to set the date. But it does not seem to do anything.

Luc

can you share the code you are using?

#include <ESP8266WiFi.h>
#define CAYENNE_PRINT Serial
#include <CayenneMQTTESP8266.h>

// WiFi network info.
char ssid[] = "XXXXXXXXXXXXX";
char wifiPassword[] = "YYYYYYYYYY";

char username[] = "ZZZZZZZZZZZZZZZZZZZZZZ";
char password[] = "Z)Z)Z)Z)Z)Z)Z)Z)Z)Z)Z)Z)Z)";
char clientID[] = "Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(";

unsigned long lastMillis = 0;

void setup() {
  randomSeed(analogRead(0));
  Serial.begin(9600);

  Cayenne.begin(username, password, clientID, ssid, wifiPassword);
}

void loop() {
  Cayenne.loop();
}

CAYENNE_OUT(1) for sending channel 1 data.
CAYENNE_OUT_DEFAULT()
{

}


CAYENNE_IN_DEFAULT()
{
  CAYENNE_LOG("Channel %u, value %s", request.channel, getValue.asString());
}

It is just the sample program from your website which I altered to send a random figure between 0 and 100.
The gauges and text fields on my dashboard display everything well. So there is no problem with the upload of data.

Extra info:
If I look at the DATA there is a complete list available. This program has been running for a day so all the data is there.

Thanks
Luc

For chart to work properly the data you are sending should have the correct data type. So without the entire code i cannot help you much.

Hi there,

This is the complete software.
The only thinbg I altered is that the original version wrote miliseconds to the broker.
i made a random figure between 0 and 100. No further alterations.

You can find this example at your github site:

I just copied the code and filled in random in stead of millseconds.

And as stated the gauges work the chart just does not work

Luc

Have a look at this post and you will come to know what i mean Data types for Cayenne MQTT API