Comments (6)
Hey there @justinwagg
Streamed points are not saved the same way as creating a static graph. When you put maxpoints 50, it means that once the maxium has been reached, if you are still streaming, the points will start to fall off.
Alternatively, you can view the streaming graph in the browser and click on "save" to take a snapshot.
One good way to keep all of your data is to occasinally send REST calls with static data for storage, and keep your streaming plot for live monitoring...
Feel free to ping me if that dosen't make sense or you need any help!
Cheers,
Alex
from arduino-api.
Please tell me what you mean by "REST call" I want to store the data that is send from my arduino permamently. At the moment it feels like the data that is not shown in the streaming plot is lost.
from arduino-api.
Since the Arduino can only open one tcp connection at one time (I guess the W5200 can open more, but I prefer to use the single board Arduino Ethernet), how does one occasionally make REST calls with static data and then make calls for streaming ? Are they going to the same server ?
from arduino-api.
@Ghenghiz @aj8uppal , you are correct, my apologies. We originally had two separate ways of sending data from an arduino, streaming, and REST. Unfortunately due to the limitations of the Arduino, we had to settle on one and went with streaming.
I'll look into this and get back to you both ASAP.
In the meantime, it is fairly easy to set up the Arduino to communicate with your laptop, Pi, etc using serial and javascript. This is my preferred method, as it allows for a lot more flexibility. (You do however need a Pi or have the Arduino connected to your laptop... but a Pi is ~ the same $$ as a wifi shield)
https://github.com/plotly/arduino-api/tree/master/plotly_streaming_serial
I'll keep you posted on Native Arduino options. Sorry for the confusion, I hope this helps!
from arduino-api.
Arduino+Pi or Laptop works, but is not the best solution for me. Native Arduino is the best. My air pollution monitors are "headless" and the Pi gave a lot of headaches :-) because when power fails, and it fails often in remote locations, the recovery from a Pi crash is much more difficult to deal with than power to an Arduino failing.
See www.indiaairquality.com for my application.
I love plotly though and it would be great to stream and save data. How about opening the connection to the server, streaming the data, closing the connection, then reopening to make a REST call to store the data ? Is the REST API published somewhere that we can make construct HTTP POST calls in the Arduino IDE ?
from arduino-api.
Hello everyone! @alexander-daniel
Is this still an issue? I'd like to help with this.
I do think we can do what @aj8uppal and switch from streaming to making REST calls repeatedly.
However, I'm not exactly sure how I should go about this.
from arduino-api.
Related Issues (20)
- Error initializing stream, aborting HOT 4
- Performance improvements
- Arduino Uno + WiFi shield cannot connect to REST server HOT 1
- how to edit plot and just keep running? HOT 2
- Arduino version 1.6.0 HOT 1
- Arduino 1.6.0, SPI.h no such directory error
- Arduino 1.6.0
- init() API is hang HOT 1
- Data values getting sometimes plotted at the wrong timestamp or the wrong chart. HOT 4
- Timestamps are being mapped in the future
- Specified folder/zip file does not contain a valid library
- run.py "ImportError: No module named logging"
- millis() time drift
- Store data on plot.ly servers using Rest API
- Support for ESP8266 and Arduino 1.8 HOT 1
- Nodemcu ESP8266 Compatibility
- error": "Missing required POST parameters: platform un key origin args kwargs
- A python
- Does it work with the latest version of Plotly ?
- Plotly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-api.