Ankündigung

Einklappen

Sammelbestellung ETS6 Vollversionen aktiv!

Sammelbestellung für ETS6 Vollversionen (Prof., Home, Lite) mit 40% Rabatt aktiv! Infos im Forum!
Mehr anzeigen
Weniger anzeigen

Dropbox AddOn Frage

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • udo1toni
    antwortet
    Versuch doch spaßeshalber,
    Code:
    dropbox:uploadInterval=0 0/5 * * * ?
    zu setzen (auch wenn das eigentlich default ist. Wenn Du den Wert händisch setzt, solltest Du zumindest an dieser Stelle kein Problem mehr haben.

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Hmm,

    keine Ahnung warum aber jetzt hat er auf einmal synchronisiert. Aber da scheint ein Fehler im AddOn zu sein??

    # the up- and download interval as Cron-Expression. See the Quartz-Tutorial
    # Quartz Scheduler | Documentation | Tutorial Lesson 06
    # for more information on how to use them best (optional, defaults to '0 0/5 * * * ?'
    # which means every 5 minutes)
    #dropbox:uploadInterval=0 0/10 * * * ?
    Demnach müsste er alle 5 Minuten prüfen

    Aber in meinem Log steht

    22:04:37.005 DEBUG o.o.i.d.i.DropboxActivator[:33]- Dropbox IO Bundle has been started.
    22:04:38.381 DEBUG o.o.i.d.i.DropboxSynchronizer[:697]- Scheduled synchronization job (direction=Upload) with cron expression '0 0 2 * * ?'
    Und dann um 2:00

    02:00:00.979 DEBUG o.o.i.d.i.DropboxSynchronizer[:286]- Started synchronization from local to Dropbox ...
    02:00:08.791 DEBUG o.o.i.d.i.DropboxSynchronizer[:306]- There are '67' local entries that met the upload filters ...
    02:00:10.498 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/configurations/rules/a_startup.rules", iconName="page_white", mightHaveThumbnail=false, numBytes=603, humanSize="603 Bytes", lastModified="2014/09/11 00:00:09 UTC", clientMtime="2014/09/11 00:00:10 UTC", rev="490de25c9b")'. New revision is '490de25c9b'
    02:00:11.204 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/configurations/persistence/logging.persist", iconName="page_white", mightHaveThumbnail=false, numBytes=551, humanSize="551 Bytes", lastModified="2014/09/11 00:00:10 UTC", clientMtime="2014/09/11 00:00:10 UTC", rev="4a0de25c9b")'. New revision is '4a0de25c9b'
    02:00:12.162 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/etc/rrd4j/Helligkeit_Norden.rrd", iconName="page_white", mightHaveThumbnail=false, numBytes=28280, humanSize="27,6 KB", lastModified="2014/09/11 00:00:11 UTC", clientMtime="2014/09/11 00:00:11 UTC", rev="4b0de25c9b")'. New revision is '4b0de25c9b'
    02:00:12.798 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/etc/db4o/store.db4o", iconName="page_white", mightHaveThumbnail=false, numBytes=1422, humanSize="1,4 KB", lastModified="2014/09/11 00:00:12 UTC", clientMtime="2014/09/11 00:00:12 UTC", rev="4c0de25c9b")'. New revision is '4c0de25c9b'
    02:00:13.365 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/configurations/persistence/rrd4j.persist", iconName="page_white", mightHaveThumbnail=false, numBytes=350, humanSize="350 Bytes", lastModified="2014/09/11 00:00:12 UTC", clientMtime="2014/09/11 00:00:13 UTC", rev="4d0de25c9b")'. New revision is '4d0de25c9b'
    02:00:13.941 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/configurations/persistence/exec.persist", iconName="page_white", mightHaveThumbnail=false, numBytes=712, humanSize="712 Bytes", lastModified="2014/09/11 00:00:13 UTC", clientMtime="2014/09/11 00:00:13 UTC", rev="4e0de25c9b")'. New revision is '4e0de25c9b'
    02:00:14.516 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/logs/2014_09_11.request.log", iconName="page_white", mightHaveThumbnail=false, numBytes=0, humanSize="0 Bytes", lastModified="2014/09/11 00:00:14 UTC", clientMtime="2014/09/11 00:00:14 UTC", rev="4f0de25c9b")'. New revision is '4f0de25c9b'
    02:00:15.413 DEBUG o.o.i.d.i.DropboxSynchronizer[:490]- successfully uploaded file 'File("/logs/2014_09_10.request.log", iconName="page_white", mightHaveThumbnail=false, numBytes=12404, humanSize="12,1 KB", lastModified="2014/09/11 00:00:14 UTC", clientMtime="2014/09/11 00:00:15 UTC", rev="500de25c9b")'. New revision is '500de25c9b'
    Any Ideas? Oder habe ich etwas falsch konfiguriert?

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Oupps, zu schnell :-/

    Nun kommt gar níx mehr vom Dropbox Addon??

    Da ich vermutet habe, dass ich OpenHAB neu startet muß, ist das Log entsprechend unterbrochen
    Code:
     20:22:04.166 INFO o.o.i.d.i.DropboxSynchronizer[:208]- #########################################################################################
     20:22:04.177 INFO o.o.i.d.i.DropboxSynchronizer[:209]- # OAuth2 authentication flow has been finished successfully 
     20:22:04.182 INFO o.o.i.d.i.DropboxSynchronizer[:210]- #########################################################################################
     20:26:42.759 ERROR o.o.c.s.ScriptExecutionThread[:50]- Error during the execution of rule 'Rollladen-Sonnen-Automatik': The name 'pushNotification(<XStringLiteralImpl>,<XStringLiteralImpl>,<XNumberLiteralImpl>)' cannot be resolved to an item or type.
     20:42:23.583 INFO o.o.io.rest.RESTApplication[:159]- Stopped REST API
     20:42:27.639 INFO o.o.u.w.i.s.WebAppServlet[:90]- Stopped Classic UI
     20:43:17.897 INFO o.o.c.internal.CoreActivator[:61]- openHAB runtime has been started (v1.5.0).
     20:43:45.888 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'H47.items'
     20:44:01.167 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'holiday.script'
     20:44:07.076 INFO o.o.i.s.i.DiscoveryServiceImpl[:72]- mDNS service has been started
     20:44:19.183 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'H47.sitemap'
     20:44:25.948 INFO o.o.io.rest.RESTApplication[:143]- Started REST API at /rest
     20:44:32.023 INFO o.o.u.w.i.s.WebAppServlet[:79]- Started Classic UI at /openhab.app
     20:44:42.091 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'shutter.rules'
     20:44:45.134 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'sunny.rules'
     20:44:45.181 WARN o.o.m.c.i.ModelRepositoryImpl[:58]- Configuration model 'sunny.rules' is either empty or cannot be parsed correctly!
     20:44:45.278 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'sunhigh.rules'
     20:44:47.486 WARN o.o.m.i.i.GenericItemProvider[:108]- Attempted to register a second BindingConfigReader of type 'autoupdate'. The primaraly reader will remain active!
     20:45:39.287 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'sequence.rules'
     20:45:40.451 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'scheduled.rules'
     20:45:43.084 INFO o.o.b.k.i.c.KNXConnection[:202]- Established connection to KNX bus on 1.1.1.2:3671 in mode TUNNEL.
     20:45:44.433 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'a_startup.rules'
     20:45:44.543 INFO o.o.c.s.AbstractActiveService[:169]- NetworkHealth Refresh Service has been started
     20:45:45.314 WARN o.o.c.i.e.EventPublisherImpl[:80]- given new state is NULL, couldn't post update for 'SleepMode'
     20:46:33.302 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'ki.rules'
     20:46:33.468 INFO o.o.c.s.AbstractActiveService[:169]- HTTP Refresh Service has been started
     20:46:35.534 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'contacts.rules'
     20:46:44.441 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'sunext.rules'
     20:46:44.509 WARN o.o.m.c.i.ModelRepositoryImpl[:58]- Configuration model 'sunext.rules' is either empty or cannot be parsed correctly!
     20:46:49.216 INFO o.o.c.s.AbstractActiveService[:169]- NTP Refresh Service has been started
     20:51:55.256 INFO o.o.m.c.i.ModelRepositoryImpl[:97]- Refreshing model 'ki.rules'
     20:53:06.512 INFO o.o.m.c.i.ModelRepositoryImpl[:97]- Refreshing model 'scheduled.rules'
    Und meine Config
    Code:
     ############################# Dropbox configuration ###################################
     # Switch to activate/deactivate an initial upload of all matching data (filters
     # apply) if dropbox' Delta mechanism requests a local reset (optional, defaults
     # to 'true')
     dropbox:initialize=true
     # the up- and download interval as Cron-Expression. See the Quartz-Tutorial
     # http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06
     # for more information on how to use them best (optional, defaults to '0 0/5 * * * ?'
     # which means every 5 minutes)
     #dropbox:uploadInterval=0 0/10 * * * ?
     #dropbox:downloadInterval=
     # the AppKey, AppSecret combination (optional, defaults to official Dropbox-App
     # Key-Secret-Combination)
     #dropbox:appkey=
     #dropbox:appsecret=
     # defines the mode how files are synchronized with dropbox. Valid SyncModes are
     # 'DROPBOX_TO_LOCAL', 'LOCAL_TO_DROPBOX' and 'BIDIRECTIONAL' (optional, defaults
     # to 'LOCAL_TO_DROPBOX')
     dropbox:syncmode=LOCAL_TO_DROPBOX
     # the base directory to synchronize with openHAB, configure 'filter' to select
     # files (optional, defaults to '.')
     #dropbox:contentdir=
     # defines a comma separated list of regular expressions which matches the 
     # filenames to upload to Dropbox (optional, defaults to '/configurations/.*,
     # /logs/.*, /etc/.*')
     #dropbox:uploadfilter='/configurations/.*'
     # defines a comma separated list of regular expressions which matches the 
     # filenames to download from Dropbox (optional, defaults to '/configurations/.*')
     #dropbox:downloadfilter=
    Dies sollte doch für einen ersten Sync reichen?!

    VG
    Jörg

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Zitat von udo1toni Beitrag anzeigen
    Die OSGi-Console bekommst Du zu Gesicht, wenn Du openHAB mit ./start.sh gestartet hast.
    Da openHAB dann in dieser Konsole alle Logs und events anzeigt, kann es sinnvoll sein, alle Bindings (bis auf dropbox natürlich) temporär zu deaktivieren (also in einen anderen Ordner zu verschieben).
    Alternativ kannst Du den Befehl einfach blind tippen. Eventuell verhunzen openHAB-Ausgaben deine Eingabe, das musst Du aber nur ignorieren, also einfach stur weiter tippen, der Befehl wird dann so ausgeführt, wie Du ihn eingetippt hast.
    Thx

    Code:
     20:22:04.166 INFO o.o.i.d.i.DropboxSynchronizer[:208]- #########################################################################################
     20:22:04.177 INFO o.o.i.d.i.DropboxSynchronizer[:209]- # OAuth2 authentication flow has been finished successfully 
     20:22:04.182 INFO o.o.i.d.i.DropboxSynchronizer[:210]- #########################################################################################

    Einen Kommentar schreiben:


  • udo1toni
    antwortet
    Die OSGi-Console bekommst Du zu Gesicht, wenn Du openHAB mit ./start.sh gestartet hast.
    Da openHAB dann in dieser Konsole alle Logs und events anzeigt, kann es sinnvoll sein, alle Bindings (bis auf dropbox natürlich) temporär zu deaktivieren (also in einen anderen Ordner zu verschieben).
    Alternativ kannst Du den Befehl einfach blind tippen. Eventuell verhunzen openHAB-Ausgaben deine Eingabe, das musst Du aber nur ignorieren, also einfach stur weiter tippen, der Befehl wird dann so ausgeführt, wie Du ihn eingetippt hast.

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Nachdem ich nun die Konfig auf meinen Raspberry portiert habe, geht dies AddOn auch nicht :-/

    Hier hänge ich wahrscheinlich an einem Linux Basic => Starte die OSGi console

    Ich habe den Code von meinem Dropbox erstellt, aber kann den finishAuthentication Befehl nicht absetzen?!


    VG
    Jörg

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Dropbox AddOn Frage

    Nein, immer noch nicht :-(

    ############################

    Scheinbar haben die meisten hier aber openHAB auch auf Linux laufen und ich fürchte das dies Problem an unterschiedlicher Konfg unter Windows liegt?!

    Am liebsten würde ich wieder einen VirtualPC mit Linux aufsetzen und openHAB dort laufen lassen, aber düse Konstellation war schon mit Mr. House fehleranfällig und ich war schon froh mit openHAB eine Lösung für Windows zu haben.

    Falls wir dies unter Windows ans fliegen bekommen, sollten wir ein HowTo erstellen ;-)


    So etwas suche ich derzeit auch noch für die Konfig zur Nutzung des Google Kalenders ;-)))


    Viele Grüße,

    Jörg

    Sent from my iPad using Tapatalk HD

    Einen Kommentar schreiben:


  • teichsta
    antwortet
    Zitat von JoergA Beitrag anzeigen
    Nun habe ich die EInträge teilweise doppelt?!
    unabhängig davon ... wurden denn Dateien in Deine DB hochgeladen?

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    So,

    ich gebe immer noch nicht auf und habe folgende Änderung vorgenommen.

    kommentieren der Zeile
    #dropbox:syncmode=LOCAL_TO_DROPBOX

    und löschen von "dropbox-entries.dbox"

    und Restart

    Nun habe ich die EInträge teilweise doppelt?!

    Code:
    21:34:13.444 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
    21:34:17.819 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Download) with cron expression '0 0/5 * * * ?'
    21:34:17.819 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Upload) with cron expression '0 0/5 * * * ?'
    21:35:10.538 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:321]- Started synchronization from Dropbox to local ...
    21:35:10.772 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
    21:35:13.382 INFO  o.o.i.d.i.DropboxSynchronizerImpl[:340]- Forward to upload first, because a Dropbox initialization is requested.
    21:35:13.397 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
    21:35:13.554 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
    21:35:14.444 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
    VG
    Joerg

    Eigentlich schließe ich ein Zugriffsproblem noch aus, da im LOG keinerlei Hinweise darauf schließen lassen?!

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Zitat von teichsta Beitrag anzeigen
    Code:
    initialize=true
    solltest Du einstellen ...
    Hallo und Guten Morgen Thomas,

    ich glaube ich hatte dies schon einmal eingestellt, aber nicht dokumentiert und da ich nicht weiß in welchem Zusammenhang habe ich dies nun erneut eingestellt.

    Somit sind folgende Werte in der cfg konfiguriert:

    dropbox:initialize=true

    dropbox:syncmode=LOCAL_TO_DROPBOX

    Ergebnis
    Code:
    10:57:23.533 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
    10:57:29.158 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:710]- Scheduled synchronization job (direction=Upload) with cron expression '0 0/5 * * * ?'
    zumindest startet der Dienst schon einmal automatisch

    Code:
    11:00:00.143 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
    11:00:02.783 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
    jedoch wird immer noch nichts hochgeladen

    Viele Grüße
    Joerg

    Ergänzung:
    Ich habe dann auch noch einmal mit diesen Einstellungen die Datei "dropbox-entries.dbox" gelöscht und neu gestartet (Motto des Tages: Reboot tut gut)
    Jedoch mit dem gleichen Ergebnis.

    12:00:00.211 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
    12:00:01.227 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...

    Kann es evtl. sein, dass ich unter Windows ein Verzeichnis angeben muß?
    Code:
    [SIZE=2][LEFT]# the base directory to synchronize with openHAB, configure 'filter' to select
    # files (optional, defaults to '.')
    #dropbox:contentdir=[/LEFT]
    [/SIZE]

    Einen Kommentar schreiben:


  • teichsta
    antwortet
    Code:
    initialize=true
    solltest Du einstellen ...

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Nur noch mal als Zwischenstand; meine Dropbox Konfiguration

    Code:
    [SIZE=2][LEFT]############################# [U]Dropbox[/U] configuration ###################################
    
    # Switch to activate/deactivate an initial upload of all matching data (filters
    # apply) if [U]dropbox[/U]' Delta mechanism requests a local reset (optional, defaults
    # to 'true')
    #dropbox:initialize=true
    
    # the up- and download interval as [U]Cron[/U]-Expression. See the Quartz-Tutorial
    # http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06
    # for more information on how to use them best (optional, defaults to '0 0/5 * * * ?'
    # which means every 5 minutes)
    #dropbox:uploadInterval=0 0/10 * * * ?
    #dropbox:downloadInterval=
    
    # the AppKey, AppSecret combination (optional, defaults to official [U]Dropbox[/U]-[U]App[/U][/LEFT][U]
    [/U][LEFT]# Key-Secret-Combination)
    #dropbox:appkey=
    #dropbox:appsecret=
    
    # defines the mode how files are synchronized with [U]dropbox[/U]. Valid SyncModes are
    # 'DROPBOX_TO_LOCAL', 'LOCAL_TO_DROPBOX' and 'BIDIRECTIONAL' (optional, defaults
    # to 'LOCAL_TO_DROPBOX')
    dropbox:syncmode=LOCAL_TO_DROPBOX
    
    # the base directory to synchronize with openHAB, configure 'filter' to select
    # files (optional, defaults to '.')
    #dropbox:contentdir=
    
    # defines a comma separated list of regular expressions which matches the 
    # filenames to upload to [U]Dropbox[/U] (optional, defaults to '/configurations/.*,
    # /logs/.*, /etc/.*')
    #dropbox:uploadfilter=/configurations/.*
    
    # defines a comma separated list of regular expressions which matches the 
    # filenames to download from [U]Dropbox[/U] (optional, defaults to '/configurations/.*')
    #dropbox:downloadfilter=[/LEFT]
    [/SIZE]

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Datei gelöscht, aber die wurde beim nächsten Synch (wo wieder nix passiert ist) erneut angelegt. Jedoch mit 0 kb Größe.

    Code:
    22:55:00.231 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:386]- Started synchronization from local to Dropbox ...
    22:55:01.997 DEBUG o.o.i.d.i.DropboxSynchronizerImpl[:457]- There are no deltas to upload into Dropbox ...
    Ich werde noch

    Einen Kommentar schreiben:


  • teichsta
    antwortet
    Zitat von JoergA Beitrag anzeigen
    Ich habe nur eine "dropbox-entries.dbox"
    dann lösche die bitte mal

    Zitat von JoergA Beitrag anzeigen
    Wie hast Du denn bitte die Zeile konfiguriert?
    gar nicht ...

    Einen Kommentar schreiben:


  • JoergA
    antwortet
    Zitat von teichsta Beitrag anzeigen
    solltest Du in Deinem openHAB-Verzeichnis eine Datei "deltacursor.dbox" finden, lösche diese bitte mal (Neustart ist nicht erforderlich).
    Ich habe nur eine "dropbox-entries.dbox" und die "authfile.dbox"

    Wie hast Du denn bitte die Zeile
    Code:
    [SIZE=2][LEFT]# defines a comma separated list of regular expressions which matches the 
    # filenames to upload to [U]Dropbox[/U] (optional, defaults to '/configurations/.*,
    # /logs/.*, /etc/.*')
    dropbox:uploadfilter='/configurations/.*, /logs/.*, /etc/.*'[/LEFT]
    [/SIZE]
    konfiguriert?? Bei mir kommt da ein Fehler

    Code:
    22:32:17.060 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
    22:32:17.076 ERROR OSGi[:98]- null
    java.lang.UnsupportedOperationException: null
     at java.util.AbstractList.add(Unknown Source)
     at java.util.AbstractList.add(Unknown Source)
     at java.util.AbstractCollection.addAll(Unknown Source)
     at org.openhab.io.dropbox.internal.DropboxSynchronizerImpl.updated(DropboxSynchronizerImpl.java:788)
     at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183)
     at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
    Auch bei
    Code:
    [SIZE=2][LEFT]dropbox:uploadfilter=/configurations/.*, /logs/.*, /etc/.*[/LEFT]
    [/SIZE]

    Einen Kommentar schreiben:

Lädt...
X