Comments (12)
Did you specify your data source upon importing the dashboard?
from icloud-photos-sync.
Did you specify your data source upon importing the dashboard?
Yes, I have a InfluxDB data source with the Flux query language, which has access to 3 buckets. When importing the JSON, I have chosen this data source to be used.
from icloud-photos-sync.
Are you using an Influx 2 DB? That might be it - I'm still on 1.X (and have created the Dashboard for that) - I'll check this
from icloud-photos-sync.
Yes, I have installed InfluxDB in version 2. I might retry with V1 when I have some spare time to set it up.
from icloud-photos-sync.
InfluxDB 2 dropped support for InfluxQL (which has a nice GUI support in Grafana - which is why I stuck with it). So for InfluxDB 2 we'd need to migrate the queries to flux.
If you feel like it you could try doing that and contribute back instead of going back to InfluxDB 1 :)
from icloud-photos-sync.
I have looked into this and started migration, until I saw that Flux has actually reached EoL and will not be present in InfluxDB 3. This means there is no point in migrating to Flux - but there is a way to use InfluxQL against InfluxDB 2 - I will parameterize the metric name, as this will be unique to your DBRP mapping
I will add some notes about this to the docs - feel free to share your experience setting this up (as I will probably skip v2 and go straight to v3 once available.
from icloud-photos-sync.
Updated the dashboard on the dev
branch and added to following documentation (I hope it is clear enough):
When importing the JSON model you need to provide an InfluxDB datasource that supports InfluxQL. InfluxDB 1.X supports this out of the box, InfluxDB 2.X needs to be configured to support InfluxQL.
Additionally you need to specify the measurement name, where the sync metrics are stored. For InfluxDB 1.X this should always be
icloud_photos_sync
(as this is specified in the Influx Line Protocol written by this tool), InfluxDB 2.X however needs to include the database and retention policy mapping in the measurement query. This could be something likeexample-db.example-rp.icloud_photos_sync
, but depends on the DBRP mapping you previously created.
from icloud-photos-sync.
Wow, awesome! Thank you for your efforts.
I set up the DBRP mapping for the bucket and when using the influx shell, I am able to query it via SQL.
These are the command that I have used:
influx v1 dbrp create \
--db example-db \
--rp example-rp \
--bucket-id 1933412d2ed108d5 \
--default
influx v1 shell
select * from "example-db"."example-rp".icloud_photos_sync
Unfortunately I cannot create a InfluxDB data source in Grafana, with the InfluxQL query language.
No matter what I try, I only get the message: InfluxDB returned error: error reading influxDB
after clicking on "Save & test". The same credentials work without any issues with the Flux query language. I'm honestly a little bit baffled by this issue.
Do you have an idea what could be wrong here?
from icloud-photos-sync.
I found the issue. The Authorization header value requires the Token
prefix. This is described at https://community.grafana.com/t/integration-with-influxdb-influxql-error-badrequest/42987/11
Now it seems to work! 🥳
from icloud-photos-sync.
Great news - and phew...100k assets, let me know how the sync goes, i tried really hard to make it stable, but only got 14k in my library to test with
from icloud-photos-sync.
This issue should be resolved with version v1.2.1-beta.1, please confirm.
from icloud-photos-sync.
This issue was resolved with version v1.3.0.
from icloud-photos-sync.
Related Issues (20)
- Feature Idea: Soft delete HOT 2
- Unexpected error while setting up iCloud Photos caused by VALIDATOR_PHOTOS_SETUP_RESPONSE HOT 4
- TypeError: Converting circular structure to JSON HOT 16
- Feature Request: Remove password from environment HOT 7
- LIBRARY_ASSET_MODIFICATION_TIME: File's modification time does not match iCloud record HOT 4
- Handle EACCES MFA Server Error HOT 2
- Handle 'incorrect MFA code' scenario HOT 2
- Library Version 2 HOT 2
- Initial Sync stuck at the last ~14.000 assets HOT 27
- Implementing new iCloud authentication process HOT 7
- Use Continuation Marker instead of start rank
- Hard to read logs on Synology HOT 30
- PID locked when attempting sync HOT 10
- [83730a] icloud-photos-sync: iCloudAuthError: Unable to acquire PCS cookies
- [b63792] icloud-photos-sync: SyncError: Sync did not complete successfully within expected amount of tries
- [9b978c] icloud-photos-sync: iCloudPhotosError: Unexpected error while setting up iCloud Photos
- Too many files - how to analyze? HOT 1
- token command not working properly? HOT 5
- exec format error(aarch64) rassberry pi 5 HOT 2
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 icloud-photos-sync.