Comments (9)
Try using the IP address of the InfluxDB server. I had a similar problem on my home network and testing now with InfluxDB2 I get the following results:
Works: url: 'http://192.168.1.81:8086'
Works: url: 'http://dundee.local:8086'
Fails: url: 'http://localhost:8086'
Fails: url: 'http://127.0.0.1:8086'
If that doesn't help I will install the old version of InfluxDB and try it out. Since I switches to InfluxDB2 I added code that does a query to confirm the database is accessible and that is the error you are seeing.
How can the retention policy specified?
What you have is the default retention policy so should work if it matches what you see in Chronograf.
How can a bucket be created in InfluxDB 2.0?
In InfluxDB2 there is no Chronograf so you just log into database UI at port 8086 and you can create databases and explore the data. I suppose you could also do it from the command line but do everything in the UI.
from multisma2.
Any results resolving this?
from multisma2.
Thank you for the hint. I got it started by using 'http://192.168.1.3:8086' and uncommenting the following line in influx.py:
query_api.query(f'from(bucket: "{self._bucket}") |> range(start: -1m)')
Perhaps it fails when the bucket is empty?
[2021-03-26 01:27:18,240] [logfiles] [INFO] Created application log at log/multisma2.log
[2021-03-26 01:27:18,248] [multisma2] [INFO] multisma2 inverter collection utility 1.0.0.dev, PID is 12520
[2021-03-26 01:27:18,250] [influx] [INFO] Connected to the InfluxDB database at http://192.168.1.3:8086, bucket 'multisma2'
[2021-03-26 01:27:19,652] [pvsite] [INFO] Dawn occurs at 05:49, noon is at 12:38, and dusk occurs at 19:26 on this 85th day of 2021
I see writes in the influxdb logfile:
Mar 26 01:39:00 debian influxd[12276]: [httpd] 192.168.1.3 - - [26/Mar/2021:01:39:00 +0100] "POST /api/v2/write?org=-&bucket=multisma2&precision=s HTTP/1.1" 204 0 "-" "influxdb-client-python/1.15.0" a835669c-8dcb-11eb-8018-901b0e659723 5691
Now I upgraded to InfluxDB 2.0, but it seems that not all data is logged.
from multisma2.
from multisma2.
I'll look at the query test as it was added much later, the idea was to know right away that the database was accessible when first connecting and not find out when the first write was attempted.
As for the Grafana dashboard I would prefer to examine the database in the InfluxDB Data Explorer first to confirm the data is being pulled from the inverter(s). You are getting sun position and irradiance data but this is created within multisma2. Have you looked at the multisma2 log for any errors?
This is what I see when I look at the database with the InfluxDB2 Data Explorer:
from multisma2.
Tested this on InfluxDB2 (specifically 2.0.4) and I could not get the query test to fail with a new empty bucket, the only way I could trigger a failure was specify a non-existent bucket, a bad access token, or a bad organization.
Any ideas on how I can pursue this?
from multisma2.
sorry for my late reply. Now I re-installed InfluxDB2, created a new bucket multisma2 and got the board working in InfluxDB. But data is missing:
from multisma2.
It looks like you have data in the database as the clear sky, status, and inverter output show results in the InfluxDB2 dashboard, perhaps you have a problem with Grafana pulling the data out of InfluxDB2?
from multisma2.
Open a new issue if there are problems since there has been nothing for a few months.
from multisma2.
Related Issues (3)
- On the Grid usage HOT 3
- TZ info Bug ? HOT 1
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 multisma2.