[influxdb] Re: InfluxDB Raspberry Pi installation?
For anyone coming across this thread, I found the apt-get install method stopped working when I tried on a fresh Raspbian install, it couldn't find the library. I'm a Linux newbie so perhaps I'm missing something obvious. I did get this to work: --Update your Pi, this may take a while... sudo apt-get update sudo apt-get upgrade -- get the Debian package from here. Note the file name and subdirectory structure may change so you might have to search for it. wget https: //repos.influxdata.com/debian/pool/stable/i/influxdb/influxdb_1.0.2-1_armhf.deb -- install the Debian package sudo dpkg -i influxdb_1.0.2-1_armhf.deb -- start the service sudo service influxd start -- run the CLI influx On Thursday, October 13, 2016 at 8:39:27 AM UTC-4, EBRAddict wrote: > > Hi, > > I'd like to try InfluxDB on a Raspberry Pi 3 for a mobile sensor project. > Currently it's logging ~50 data points every 200ms to a USB flash drive > text file but I want to ramp that up to 200 every 10ms, or however fast I > can push data from the microcontrollers to the Pi. > > I downloaded and uncompressed the ARM binaries using the instructions on > the InfluxDB download page: > > wget > https://dl.influxdata.com/influxdb/releases/influxdb-1.0.2_linux_armhf.tar.gz > tar xvfz influxdb-1.0.2_linux_armhf.tar.gz > > > What are the next steps? I'm not a Linux guy but I can follow directions > if someone could point me to them. I'd like to configure the service(s) to > run at startup automatically and be accessible for querying by any logged > in user (it's a closed system). > > Thanks. > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/a20a3416-6ec7-4347-a5aa-940d22535b22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[influxdb] Re: How to send sensor data to InfluxDB from Arduino Uno
Something similar, but using the HTTP POST using the Arduino EthernetClient if you're unable to modify the InfluxDB host config. To use the code below: 1) Change the MAC address, 2) change the IP address to your InfluxDB IP address, 3) change the line in the POST construction to your InfluxDB and Port "client.println("Host: 192.168.1.136:8086");" It starts breaking down when the loop delay is around 300ms. The POST is coming from a microcontroller and going to a Raspberry Pi 3. #include #include // Enter a MAC address for your controller below. // Newer Ethernet shields have a MAC address printed on a sticker on the shield byte mac[] = { 0x00, 0x1A, 0xB6, 0x02, 0xF1, 0x16 }; IPAddress server(192, 168, 1, 136); // BBB // Initialize the Ethernet client library // with the IP address and port of the server // that you want to connect to (port 80 is default for HTTP): EthernetClient client; //data for HTTP Post; String POSTData = ""; //data for HTTP response char Response[255]; void setup() { //start Serial Serial.begin(115200); //initialize ethernet if (Ethernet.begin(mac) == 0) Serial.println("Failed to configure Ethernet"); // give the Ethernet peripheral a second to initialize: delay(1000); // let the monitor know it's starting Serial.println("Starting"); } void loop() { // connect to the influxdb port if (!client.connect(server, 8086)) Serial.println("Did not connect"); // set some test data String POSTData = "uCont value=" + String(millis()); // Make a HTTP request: client.println("POST /write?db=mydb HTTP/1.1"); client.println("Host: 192.168.1.136:8086"); client.println("User-Agent: Arduino/1.6"); client.println("Connection: close"); client.println("Content-Type: application/x-www-form-urlencoded;"); client.print("Content-Length: "); client.println(POSTData.length()); client.println(); client.println(POSTData); delay(30); if (client.available()) { client.readBytes(Response, client.available()); Serial.println(Response); } delay(1000); // let the monitor know something is going on in case nothing is returned. Serial.println("loop..."); } -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/80a1b13b-1b28-40ab-a663-7b6981ab5c8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[influxdb] InfluxDB Raspberry Pi installation?
Hi, I'd like to try InfluxDB on a Raspberry Pi 3 for a mobile sensor project. Currently it's logging ~50 data points every 200ms to a USB flash drive text file but I want to ramp that up to 200 every 10ms, or however fast I can push data from the microcontrollers to the Pi. I downloaded and uncompressed the ARM binaries using the instructions on the InfluxDB download page: wget https://dl.influxdata.com/influxdb/releases/influxdb-1.0.2_linux_armhf.tar.gz tar xvfz influxdb-1.0.2_linux_armhf.tar.gz What are the next steps? I'm not a Linux guy but I can follow directions if someone could point me to them. I'd like to configure the service(s) to run at startup automatically and be accessible for querying by any logged in user (it's a closed system). Thanks. -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/72ad2b09-5754-42b0-91c1-5ff459d7d785%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.