Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KKami3
Novice
2,271 Views

loT Analytics display chart doesn't show the data

Hello Guys,

I'm facing exactly the same problem on my Intel Edison as you can find Unfortunately without answer. I can't find any follow up of the topic as well so… I would like to ask " I have sent about temperature values to the IOT cloud. but when i try to display chart it says "NO data to show".

Really have no idea where the problem is. I checked in two browsers: Chrome and Safari. both of them without data. Pictures in attachment. Any ideas how to solve this issue ?

Regards,

Tags (2)
24 Replies
idata
Community Manager
231 Views

Hi,

 

 

Have you started the agent with systemctl start iotkit-agent? Are you using the latest iotkit-agent version, you can check Section 3 of https://github.com/enableiot/iotkit-agent https://github.com/enableiot/iotkit-agent to upgrade.

 

 

-Sergio

 

idata
Community Manager
231 Views

Do you still need assistance with this thread, do you still see the no data to show error?

 

 

-Sergio

 

KKami3
Novice
231 Views

Dear Sergio,

Sorry for so late answer. Im in Ethiopia and unfortunately without internet access in last days.

I done "systemctl start iotkit-agent". Unlucky that didn't give any effect. Then I try to upgrade iotkit-agent from http://github.com/ github.com

When I tried to go through the section 3 I got list of errors (included in attachment) and it looked like, during process all iotkit-agent datas which was preinstalled on my Edison were removed.

So I decided to go through the instruction in step number 2 https://github.com/enableiot/iotkit-agent https://github.com/enableiot/iotkit-agent and make attempt to install new iotkit-agent.

I get series of warning amongst the installation however the process was successful. I can right now communicate with dashboard and make my dat visualisation (cheers !) nevertheless there is a few inconvenience which I still facing:

  • first of all to communicate with iotkit-agent i need to "cd" to the directory where I installed iotkit - in my case -> cd ./iotkit-admin
  • secondly, to launch any command I need to add ./ and the trailing .js (ex. "./iotkit-agent.js" test in case of "iotkit-agent test")
  • and last but not least, I can send the data to dashboard manually, using "./iotkit-agent.js observation " but when I try to collect data from my sensor using arduino… the iotkit is still not working

I am adding my example software below. I connected parallely LCD screen to check the communication and LCD properly read and print data from sensor.

Of course now is the problem with software. I suspect that maybe under this library he somehow don't recognize the IoTkit-admin in to the new path. Unfortunately, I am completely beginner user and I can base only on this dedicated libraries attached to Arduino. Right now I don't even know where look for the solution. Maybe I should add another question to the forum.

Best regards,

idata
Community Manager
231 Views

Hi,

 

 

I believe the first two of the three inconveniences you experience are considered normal behavior of the iotkit-agent. In fact the same command you're using is described in section 2.1 of the guide https://github.com/enableiot/iotkit-agent https://github.com/enableiot/iotkit-agent . As for the third note, have you already started the agent with ./start-agent.sh?

 

 

In the guide there's also a section that mentions "We have an Arduino library which can send this message to the agent, and you can write your own in other languages." The Arduino library is https://github.com/enableiot/iotkit-samples/tree/master/arduino https://github.com/enableiot/iotkit-samples/tree/master/arduino .

 

Have you already seen this link?

 

 

-Sergio

 

KKami3
Novice
231 Views

Dear Sergio,

First of all… it is working !

I agree totally that first two obstacles are normal after new installation and it is not a problem. I maintained about it because I was afraid that somehow the new path may harm the communication and program operation with Arduino.

Anyway I gave up this first two issues and focus on third following your advise:

  • I connected the hardware (measurement sensor and LCD screen) to my Arduino Edison to measure temperature and humidity (this was the main idea of the project)
  • Then I connected Arduino to the laptop - power and transfer USB sockets.
  • I log in to my cloud dashboard by the browser
  • By the terminal I connected to Arduino and then switched path to cd ./iotkit-agent
  • I started iotkit ./start-agent.sh
  • I opened Arduino 1.6.9 software for programming
  • then I have compiled and uploaded software to Arduino Edison (the same software as in my previous post above)
  • and …. nothing happen. The LCD screen was working, printing the humidity and temp data in every 10 seconds as I assumed in the software but the cloud didn't received any data.
  • then I decided to proceeded to your second advise and try example program for iotkit library. I done it before but anyway I had no other idea and nothing to lose
  • however I didn't turn off my Arduino so the previously software still worked in background (showing humidity and temp on LCD but without uploading to the cloud)
  • I opened iotKitMetricsExample form the library
  • according to the instruction, before you will upload the software you should register sensor used in program
  • I moved to the console and tried register first one by typing "./iotkit-admin.js register uptime temperature.v1.0"
  • How big was my surprise, when after metadata updated I received continues information that Edison decided to start submitting the data to the dashboard which I demand from him in previous program. The print screen below:

Cheers ! however it is quite strange.

After this attempt I tried to launch my program several times in different configuration. That what I observed:

  • when I launch the program, Edison starts sending data only when I try to force him to communicate with the cloud. Usually when I am using command "./iotkit-admin.js register " (not mater what will be result of the operation) or sometimes when I just type "./iotkit-admin.js test" … if the program is uploaded and working in the background, Edison will start sending the data automatically and immediately after he finish requested command.
  • There is one exception. Once in several attempts it is not working at all. Then you need to do hard rest and try agin.
  • ./start-agent.sh - It does not influence the operation of the program. You can type it or not.

Where is my god now ? it could be the problem with the software ? or maybe my Ethiopian internet connection it is unstable ?

More printscreen's :

1. Program does not want to launch at all:

2. The same program and configuration after hard reset. It is start working automatically after "register" command, even if he get metadata error:

idata
Community Manager
231 Views

You say that once in several attempts it's not working. Do you see any relation between the times it doesn't and the changes in testing environment, are any of the testing variables altered? Is there any way you can confirm that this is caused by an unstable internet connection?

 

 

-Sergio

 

idata
Community Manager
231 Views

Do you still need help with this thread, were you able to figure out why you sometimes need to do a hard reset to make it work?

 

 

-Sergio

 

KKami3
Novice
231 Views

Dear Sergio,

I didn't have occasion to play with my Edioson since that time ... however after first attempt (the same set up as 2 weeks ago) I get ERROR... meh... it is not looking optimistic for me :] I will check today one more time all solution, step by step, reinstall iotkit and update you.

KKami3
Novice
231 Views

Dear Sergio,

Oooook. It is working now perfectly. I done the following:

1. Removed all catalog "iotkit-agent" form my main path on the Edison [rm -r catalog]

2. Removed all data about my device from the website dashboard [ www.dashboard.us.enableiot.com ]

3. Done step by step whole paragraph 2 installation [ 2. Installing using npm - https://github.com/enableiot/iotkit-agent - important: I done all steps including device name and device id change from default to "MyDeviceName" and "12103434ab35" and I typed: ./start-agent.sh command.]

4. Switch to the dashboard website: Device -> Add new device

5. Fill the gabs -> ID, Getaway (if you not change it should be the same as ID), MyDeviceName and then click save.

4. Come back to the terminal:

4.1 cd ./iotkit-agent - move to the iotkit agent path

4.2 ./iotkit-admin.js activate <- you can get activation code from <em>Dashboard > Account > Activation code > refresh > show > copy/past - activate my device

4.2 ./iotkit-admin register - register my sensors

5. Download IoT-kit library from " https://github.com/enableiot/iotkit-samples"

6. Open Arduino Software and go to: Sketch -> Include library -> Add zip. library -> add zip. file library from arduino folder

7. Restart Arduino Software (close and open)

8. Come back to the terminal and type: reboot or hard reset

9. Log in to Intel Edison:

9.1 cd ./iotkit-agent

9.2 systemctl start iotkit-agent

9.3 ./start-agent.sh

10. Upload software from Arduino to the Intel Edison

11. Enjoy my live data stream in the dashboard chart section

Maybe it is to much in details and for sure I do not need to do all of this steps but that is the final solution what I done, and only one which work for me without any obstacles. Now I don't get ant information in the terminal as before. Everything is working in background and all data I can observe in my dashboard. Thank you very much indeed for your support and assist .

I am adding the software which I use in the program. It is simply and it is working so maybe will be useful for somebody in the future. Keep in mind that you need HDC sensor for this program.

Software:

# include /* be sure that you install all of following libraries */

# include /* this software use Adafruit_HDC1000 sensor for humidity and temperature measurement. Be sure that you have the sensor */

# include

# include

# include

Adafruit_HDC1000 hdc;

IoTkit iotkit;

void setup () {

Serial.begin(9600);

iotkit.begin();

if (!hdc.begin(0x43)){ /* important: your sensor can work on different adress, clear the data "0x43" and leave the bracket empty or try 0x41, 0x42, 0x44 */

Serial.println("cant find hdc");

while (1);

}

}

void loop (){

iotkit.send("temp", hdc.readTemperature());

iotkit.send("humidity", hdc.readHumidity());

sleep(10);

}

Best regards,

idata
Community Manager
231 Views

Thank you for posting these steps, they'll surely be helpful to other members of the community. I'm glad you were able to resolve this issue. If you ever encounter any issues with your Edison Platform don't hesitate to ask, we'd be happy to help.

-Sergio

 

ZShar
Novice
231 Views

Hi

I am facing similar problem. I have iotkit-admin -V of 1.7.0.

I have followed all the steps of storing data in cloud. The procedure was very much successful but suddenly, after burning the code in Intel Edison, the number of observations have increased but no data is showing in graphs with the message " no data selected". Kindly tell why this is happening

idata
Community Manager
231 Views

Specifically, which steps have you followed, the ones posted by @ruter999 or some other guide?

 

 

-Sergio

 

CHuyg
Beginner
231 Views

I'm having the exact same issue. Dashboard updates the number of observations, but when try to view the data in My Charts it says "No data to show". I've tried everything from deleting the device, following the above steps, and even updated the iotkit-agent to 1.8.2. The /tmp/agent.log shows no errors:

{"n":"H13A20040B5A8A6","v":"26.23","on":1469731800000,"level":"info","message":"Submitting: ","timestamp":"2016-07-28T18:50:02.884Z"}

{"response":"none detail","status":0,"level":"info","message":"Response received: ","timestamp":"2016-07-28T18:50:03.570Z"}

Why is it so difficult to figure out what the issue is. How do you see the raw data to determine the issue?

Thank You

idata
Community Manager
231 Views

First, make sure you have completed the requirements to connect to the IoT Analytics dashboard described here https://software.intel.com/en-us/intel-iot-platforms-getting-started-cloud-analytics https://software.intel.com/en-us/intel-iot-platforms-getting-started-cloud-analytics and have followed the "Setting up your IoT Analytics account" section. Now, follow the steps posted by ruter999 reply above. Make sure to flash your board with the latest image before you add the device to the dashboard.

 

Is this the complete message you got from /tmp/agent.log? You can also use tail -f /tmp/agent.log to see the activity on the agent.

 

-Sergio

 

CHuyg
Beginner
231 Views

I started over again and repeated the steps with the same results. Why won't the chart work?

Installed the latest Intel Edison firmware: 201606061707 using the Intel Edison Board Configuration Tool.

All devices are deleted.

Poky (Yocto Project Reference Distro) 1.7.3 Edison ttyMFD2

 

 

Edison login: root

 

Password:

 

root@Edison:~# configure_edison –version

 

Could not determine firmware version information. Quitting.

 

none

 

root@Edison:~# iotkit-admin –V

 

1.7.0

 

root@Edison:~# iotkit-admin device-id

 

2016-08-01T12:56:05.656Z - info: Device ID: 00-00-00-00-31-00

 

root@Edison:~# date

 

Mon Aug 1 13:04:29 UTC 2016

 

root@Edison:~#

Tried to create the default device of 00-00-00-00-31-00 that was deleted earlier but system says device already exists.

Create a new unique device and activate.

root@Edison:~# systemctl stop iotkit-agent

 

root@Edison:~# iotkit-admin test

 

2016-08-01T13:08:51.784Z - info: Trying to connect to host ...

 

2016-08-01T13:08:57.882Z - info: Connected to dashboard.us.enableiot.com

 

2016-08-01T13:08:57.889Z - info: Environment: prod

 

2016-08-01T13:08:57.891Z - info: Build: 0.14.5

 

root@Edison:~# iotkit-admin set-device-id 00-01-02-03-04-05

 

2016-08-01T13:09:43.674Z - info: Device ID set to: 00-01-02-03-04-05

 

root@Edison:~# iotkit-admin device-id

 

2016-08-01T13:09:52.751Z - info: Device ID: 00-01-02-03-04-05

 

root@Edison:~# iotkit-admin activate IFH8KWV1

 

2016-08-01T13:11:20.139Z - info: Activating ...

 

2016-08-01T13:11:26.573Z - info: Saving device token...

 

2016-08-01T13:11:26.604Z - info: Updating metadata...

 

2016-08-01T13:11:26.627Z - info: Metadata updated.

 

root@Edison:~#

Start agent and register Components and take observations

root@Edison:~# systemctl start iotkit-agent

 

root@Edison:~# iotkit-admin catalog

 

2016-08-01T13:14:42.923Z - info: Starting Catalog Retrieving

 

2016-08-01T13:14:49.118Z - info: Comp: humidity.v1.0 humidity sensor

 

2016-08-01T13:14:49.124Z - info: Comp: powerswitch.v1.0 powerswitch actuator

 

2016-08-01T13:14:49.126Z - info: Comp: temperature.v1.0 temperature sensor

 

2016-08-01T13:14:49.133Z - info: # of Component @ Catalog : 3

root@Edison:~# iotkit-admin register temp temperature.v1.0

 

2016-08-01T13:15:17.827Z - info: Starting registration ...

 

2016-08-01T13:15:17.885Z - info: Device has already been activated. Updating ...

 

2016-08-01T13:15:17.900Z - info: Updating metadata...

 

2016-08-01T13:15:17.975Z - info: Metadata updated.

 

Attributes sent

 

2016-08-01T13:15:20.423Z - info: Component registered name=temp, type=temperature.v1.0, cid=fab1263e-a85e-4d61-802a-845d86529891, d_id=00-01-02-03-04-05

 

root@Edison:~# iotkit-admin components

root@Edison:~# iotkit-admin observation temp 35

 

2016-08-01T13:16:49.758Z - info: Submitting: n=temp, v=35

 

2016-08-01T13:16:50.793Z - info: Response received: response=none detail, status=0

 

2016-08-01T13:16:50.802Z - info: Observation Sent response=none detail, status=0

 

root@Edison:~# iotkit-admin observation temp 30

 

2016-08-01T13:17:07.500Z - info: Submitting: n=temp, v=30

 

2016-08-01T13:17:08.546Z - info: Response received: response=none detail, status=0

 

2016-08-01T13:17:08.554Z - info: Observation Sent response=none detail, status=0

 

root@Edison:~#

Looking at the Dashboard we have the two observations just added for the last hour

Looking at the Chart again it shows 'No data to show'

root@Edison:~# systemctl status iotkit-agent –l

 

? iotkit-agent.service - iotkit-agent

 

Loaded: loaded (/lib/systemd/system/iotkit-agent.service; enabled)

 

Active: active (running) since Mon 2016-08-01 13:15:48 UTC; 9min ago

 

Main PID: 472 (node)

 

CGroup: /system.slice/iotkit-agent.service

 

mq472 node /usr/bin/iotkit-agent

 

 

Aug 01 13:15:48 Edison systemd[1]: Started iotkit-agent.

 

Aug 01 13:15:54 Edison iotkit-agent[472]: 2016-08-01T13:15:54.321Z - info: Device has already been activated. Updating ...

 

Aug 01 13:15:54 Edison iotkit-agent[472]: 2016-08-01T13:15:54.386Z - info: Updating metadata...

 

Aug 01 13:15:54 Ed...
idata
Community Manager
231 Views

I noticed you haven't upgraded the agent, you're still using 1.7.0. Upgrade the agent using the instructions on section 3 from https://github.com/enableiot/iotkit-agent https://github.com/enableiot/iotkit-agent .

 

 

Let us know your results.

 

 

-Sergio

 

CHuyg
Beginner
231 Views

Updated agent to latest version 1.8.2. I had to first update mraa or I would have a fatal upgrade.

Restart the agent

root@Edison:~# systemctl restart iotkit-agent

 

root@Edison:~# iotkit-agent –V

 

1.8.2

 

root@Edison:~# iotkit-admin –V

 

1.8.2

 

root@Edison:~# systemctl status iotkit-agent –l

 

? iotkit-agent.service - iotkit-agent

 

Loaded: loaded (/lib/systemd/system/iotkit-agent.service; enabled)

 

Active: active (running) since Wed 2016-08-03 13:05:29 UTC; 9min ago

 

Main PID: 1077 (node)

 

CGroup: /system.slice/iotkit-agent.service

 

mq1077 node /usr/bin/iotkit-agent

 

 

Aug 03 13:05:29 Edison systemd[1]: Started iotkit-agent.

 

Aug 03 13:05:35 Edison iotkit-agent[1077]: 2016-08-03T13:05:35.064Z - info: Device has already been activated. Updating ...

 

Aug 03 13:05:35 Edison iotkit-agent[1077]: 2016-08-03T13:05:35.133Z - info: Updating metadata...

 

Aug 03 13:05:35 Edison iotkit-agent[1077]: 2016-08-03T13:05:35.220Z - info: Metadata updated.

 

Aug 03 13:05:36 Edison iotkit-agent[1077]: 2016-08-03T13:05:36.444Z - info: Starting listeners...

 

Aug 03 13:05:36 Edison iotkit-agent[1077]: 2016-08-03T13:05:36.689Z - info: Connecting to ws.us.enableiot.com:443...

 

Aug 03 13:05:36 Edison iotkit-agent[1077]: 2016-08-03T13:05:36.745Z - info: TCP listener started on port: 7070

 

Aug 03 13:05:36 Edison iotkit-agent[1077]: 2016-08-03T13:05:36.776Z - info: UDP listener started on port: 41234

 

Aug 03 13:05:38 Edison iotkit-agent[1077]: 2016-08-03T13:05:38.014Z - info: WSConnector: Connection successful to: ws.us.enableiot.com:443

Since I upgraded I had to delete the Device because I could not activate it again. Why can't you use the same device? This is only an agent update.

Took 3 data samples and the Dashboard updated correctly

Checked the chart and still 'No data to show'

idata
Community Manager
231 Views

We'll investigate and post a reply soon.

 

 

-Sergio

 

idata
Community Manager
231 Views

Hello

I am having this exact same problem. The chart was working perfectly fine before on version 1.7.0. of the agent before it suddenly stopped.

I have no idea what I could have done to get it to stop working. I tried various possible solutions like the above including updating the agent to 1.8.2.

My dashboard also indicates that it is receiving data. I am also trying to use the eclipse IDE to publish data, I eventually got a some sample code to start working but when the chart stopped working I was getting this error output on my console:

Sample program to publish data to IoT Cloud !!

Warning: Optional user config file not found. Continuing...

Error Parsing response: [Unauthorized]

Publishing msg:{"name": "garage_sensor", "value": 13}

Publishing msg:{"name": "garage_sensor", "value": 14}

Publishing msg:{"name": "garage_sensor", "value": 15}

Publishing msg:{"name": "garage_sensor", "value": 16}

Publishing msg:{"name": "garage_sensor", "value": 17}

Publishing msg:{"name": "garage_sensor", "value": 18}

Publishing msg:{"name": "garage_sensor", "value": 19}

Publishing msg:{"name": "garage_sensor", "value": 20}

Publishing msg:{"name": "garage_sensor", "value": 21}

Publishing msg:{"name": "garage_sensor", "value": 22}

logout

The "Error Parsing response: [Unauthorized]" line is new which is weird because the data still seems to get published. I'm pretty sure this is related but I cant quite figure this thing out. I hope this helps you figure this out because I really need to get this working.

idata
Community Manager
33 Views

The issue has been passed to the engineering team and they are already looking into it.

 

 

-Sergio

 

Reply