arduino-api icon indicating copy to clipboard operation
arduino-api copied to clipboard

plotly_streaming_ethernet.h: No such file or directory

Open andershf opened this issue 9 years ago • 11 comments

Following this tutorial: https://plot.ly/arduino/dht22-temperature-tutorial/

Extracted the library (arduino-api-master) under Arduino/libraries/ and renamed it to "Plotly"

Get the following error: dht22_ethernet.ino:3:39: fatal error: plotly_streaming_ethernet.h: No such file or directory compilation terminated. Error compiling.

andershf avatar Mar 05 '15 15:03 andershf

Please make sure you have installed the libraries to the correct locations. Give https://github.com/plotly/arduino-api/issues/3 this solution a try and let me know! Thanks!

alexander-daniel avatar Mar 05 '15 16:03 alexander-daniel

Thanks for the quick response @alexander-daniel

Here's a screenshot of the location: http://goo.gl/esM6dW

andershf avatar Mar 05 '15 17:03 andershf

Great, thanks. Try moving the individual plotly libraries outside of the Plotly folder. Let me know if that works. Each folder within that Plotly folder is its own library, so it needs to go up one level!

Let me know if that works.

alexander-daniel avatar Mar 05 '15 17:03 alexander-daniel

Thanks @alexander-daniel now I get the error as in issue #3

Since I'm using Windows I didn't quite understand the solution in the thread. Could you please give me a quick guide?

andershf avatar Mar 05 '15 18:03 andershf

@alexander-daniel i am facing a similar problem as what @andershf is facing now,im using a windows pc ,please give me a possible solution .thanks in advance

krishnaprasanth26 avatar Mar 06 '15 05:03 krishnaprasanth26

Yup! I'll give it a go on our windows machine today and let you know. Thanks!

alexander-daniel avatar Mar 06 '15 15:03 alexander-daniel

Hi i am trying to use plotly for streaming my sensor data through GSM/GPRS shield ,i am currently using a ARDUINO IDE 1.6.0 in my windows 7, 32 bit OS .As i tried to compile my program using the same it returned an error stating that avr/dtostrf.h: No such file or directory.i took some suggestion to fix this problem by installing IDE 1.0.6 and the program for streaming through Ethernet worked absolutely fine, but i still keep facing a problem in compiling the example program for streaming through GPRS that you have provided in Github .kindly help me to fix this problem ,i am eagerly waiting for solution for this problem from your team, thanks in advance

On Fri, Mar 6, 2015 at 8:30 PM, Alejandro [email protected] wrote:

Yup! I'll give it a go on our windows machine today and let you know. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/plotly/arduino-api/issues/36#issuecomment-77572064.

krishnaprasanth26 avatar Mar 12 '15 12:03 krishnaprasanth26

@prasanthratso So ethernet compiles and works,but GPRS does not?

What is the error output you're receiving when you try to compile the GPRS sketch on 1.0.6?

alexander-daniel avatar Mar 13 '15 05:03 alexander-daniel

@alexander-daniel it returns me the below errors

C:\Program Files\Arduino\libraries\GSM\GSM3ShieldV1ModemVerification.cpp: In member function 'String GSM3ShieldV1ModemVerification::getIMEI()': C:\Program Files\Arduino\libraries\GSM\GSM3ShieldV1ModemVerification.cpp:72: error: conversion from 'int' to 'String' is ambiguous C:\Program Files\Arduino\hardware\arduino\cores\arduino/WString.h:61: note: candidates are: String::String(const FlashStringHelper) C:\Program Files\Arduino\hardware\arduino\cores\arduino/WString.h:59: note: String::String(const char)

krishnaprasanth26 avatar Mar 14 '15 17:03 krishnaprasanth26

@alexander-daniel i have used the below program to compile

#include <GSM.h> #include "plotly_streaming_gsm.h"

// Sign up to plotly here: https://plot.ly // View your API key and streamtokens here: https://plot.ly/settings #define nTraces 2 // View your tokens here: https://plot.ly/settings // Supply as many tokens as data traces // e.g. if you want to ploty A0 and A1 vs time, supply two tokens char *tokens[nTraces] = {"token_1", "token_2"}; // arguments: username, api key, streaming token, filename plotly graph = plotly("plotly_username", "plotly_api_key", tokens, "your_filename", nTraces);

void gsm_connect(){ // ... }

void setup() {

// Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only }

gsm_connect();

graph.fileopt="overwrite"; // See the "Usage" section in https://github.com/plotly/arduino-api for details bool success; success = graph.init(); if(!success){while(true){}} graph.openStream(); }

unsigned long x; int y;

void loop() { graph.plot(millis(), analogRead(A0), tokens[0]); graph.plot(millis(), analogRead(A1), tokens[1]);

}

krishnaprasanth26 avatar Mar 16 '15 05:03 krishnaprasanth26

Hi, I have the same problem ; No such file or directory compilation terminated. Error compiling.

I add the library in zip format, correctly but when I try to run example code, this error occurs, can you help me?

michaelproino avatar Sep 28 '15 07:09 michaelproino