Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into githubplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Nov 3, 2024
2 parents 486522d + e5fda4b commit 6a565f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ nosetests.xml
ehthumbs.db
Thumbs.db

# don't upload private plugins
/priv_*/
# don't upload private plugins or symlinked dirs
/priv_*

# don't upload plugins loaded from develop to a release installation
/*_dev/
Expand Down
2 changes: 1 addition & 1 deletion database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def _delete_orphan(self, item_path):
return True

cur = self._db_maint.cursor()
self._execute(self._prepare("DELETE FROM {log} WHERE item_id = :id ORDER BY time ASC LIMIT :maxrecords;"), {'id': item_id, 'maxrecords': self.delete_orphan_chunk_size}, cur=cur)
self._execute(self._prepare("DELETE FROM {log} WHERE item_id = :id LIMIT :maxrecords;"), {'id': item_id, 'maxrecords': self.delete_orphan_chunk_size}, cur=cur)
delete_orphan_chunk_size_str = f"{self.delete_orphan_chunk_size:,}".replace(',', '.')
self.logger.info(f"_delete_orphan: Deleted (up to) {delete_orphan_chunk_size_str} log entries for Item {item_path}")
cur.close()
Expand Down
3 changes: 2 additions & 1 deletion withings_health/user_doc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Vorbereitung
Dieses Plugin benötigt die withings-api.

Sie müssen sich unter `Withings Account <https://account.withings.com/>`_ registrieren und im Dashboard
eine Applikation anlegen. Der Name ist frei wählbar, die (lokale) Callback-URL wird über die Weboberfläche des Plugins angezeigt: http://<IP>:<Webinterface-Port>/plugin/withings_health.
eine Applikation anlegen. Der Name ist frei wählbar, die (lokale) Callback-URL wird über die Weboberfläche des Plugins
angezeigt: http://<IP>:<Webinterface-Port>/plugin/withings_health (Die IP sollte die von SmartHomeNG sein!).
Wenn Sie sich bei der `Withings App <https://app.withings.com/>`_ einloggen, kann die achtstellige Zahl
in der URL ausgelesen und in der Pluginkonfiguration als user_id angegeben werden.

Expand Down

0 comments on commit 6a565f9

Please sign in to comment.