API Sync in Both Directions #583
Replies: 11 comments 2 replies
-
Guessing you want to be able to call a json end point to get last x qsos? |
Beta Was this translation helpful? Give feedback.
-
I think I'm pretty flexible here, JSON would be a natural choice. I think it would be great if we could find a way to sync the QSOs in a way that basically the database of my app and also the database of could log could be in sync. Probably we would need to sync also an unique ID/hash because if a QSO is changed we cannot just compare the QSOs by the values in the fields. Do you have any idea here? |
Beta Was this translation helpful? Give feedback.
-
Hi, maybe using the COL_PRIMARY_KEY within the TABLE_HRD_CONTACTS_V01 could help identifying the QSO to update? If this value would be exported to Matthias' app, he could refer to this key when updating rows. |
Beta Was this translation helpful? Give feedback.
-
I think one problem arises then, what if in the app and in the cloudlog itself QSOs are added, that have suddenly the same key :) |
Beta Was this translation helpful? Give feedback.
-
Using key+prefix combination |
Beta Was this translation helpful? Give feedback.
-
COL_PRIMARY_KEY within the TABLE_HRD_CONTACTS_V01 seems to be the best way of identifying a QSO, this is generated once a QSOs saved, which is fine, so my question was is whats being requested here a json export of x number of recent QSOs? |
Beta Was this translation helpful? Give feedback.
-
Okay so the sync algorithm would then be in the following way:
Thoughts? I don't like the fact that ALL QSOs must be downloaded, but it would be the easiest way? |
Beta Was this translation helpful? Give feedback.
-
Maybe a timestamp for last change per row? Thoughts? |
Beta Was this translation helpful? Give feedback.
-
@magicbug any inputs from your side here? I think in the app I will have two views later on. The Archive which will be synced with Cloudlog. And the Desktop (any other catchy name? recommendations welcome) where the actual SOTA activity or contest will be logged locally. Then it could by synced to cloudlog and then it pops up also in the Archive. I think I will wait until this station-profile stuff is sorted out, nevertheless maybe we could already agree on a strategy here. |
Beta Was this translation helpful? Give feedback.
-
Hey, I want to continuously work on this. Further Ideas how we could do this? |
Beta Was this translation helpful? Give feedback.
-
I'm honestly not sure how to implement this, Cloudlog has been designed to be able to be used on shared hosting and PHP doesn't always lead itself to be fantastic async so third party tools are of course welcome to sync MySQL/MariaDB but its not something most will want todo with shared hosting provider. Beyond providing IDs for each QSO so external apps can see whats in the database and allowing QSO entry via Cloudlogs APIs that will be the limit for now and any further functionality will need to be external tools. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Peter,
do you have an idea how we could enable synchronisation in both ways? Right now I can synchronise from my app only into cloudlog. But keeping both things automatically in sync would be super awesome!
Best,
Matthias
Beta Was this translation helpful? Give feedback.
All reactions