Coder Social home page Coder Social logo

Client results differ vs CLI about influxdb-php HOT 2 OPEN

robbrad avatar robbrad commented on June 26, 2024
Client results differ vs CLI

from influxdb-php.

Comments (2)

russorat avatar russorat commented on June 26, 2024

@robbrad thanks for the issue. Could you post the full php script so that we could try to repro?

from influxdb-php.

robbrad avatar robbrad commented on June 26, 2024
<?php
$host = '192.168.0.30';
$port = 8086;
$dbname = 'rtl433';

require 'vendor/autoload.php';

//msg type 49
$client = new InfluxDB\Client($host, $port);
$database = $client->selectDB($dbname);

$result = $database->query("select max(\"wind_avg_km_h\") as \"windgust10m\", mean(\"wind_dir_deg\") as \"windgustdir10m\" FROM \"Acurite-5n1\" WHERE (sequence_num = 2) GROUP BY time(10m) order by time desc");


// get the points from the resultset yields an array
$gusts = $result->getPoints();

echo "<pre>";
print_r($result);
echo "</pre>";

?>

Results:

ws2.txt

from influxdb-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.