nextcloud / weather

⛅️ Weather app for Nextcloud
GNU Affero General Public License v3.0
47 stars 27 forks source link

App does not recognize the default locale #93

Closed mmccarn closed 3 years ago

mmccarn commented 3 years ago
### Steps to reproduce 1. Upgrade to NC20 2. View the weather widget with auto-location enabled ### Expected behaviour Being in the US with the rest of Nextcloud recognizing my locale as en_US, I should see the temperature displayed in fahrenheit instead of celsius ### Actual behaviour Temperature is displayed in celsius until I change my account locale in oc_preferences by: * going to 'preferences' for my account * change my locale to any non-default value * change it back to 'en (United States)' ### Server configuration **Operating system**: Ubuntu 18.0.4.5 **Web server:** Apache 2.4.29 **Database:** mysql-server v5.7.21 **PHP version:** 7.4.11-6 **Nextcloud version:** (see Nextcloud admin page) 20.0.1.1 **Updated from an older Nextcloud/ownCloud or fresh install:** Updated continuously from owncloud 9 (or thereabouts...) **Where did you install Nextcloud from:** zip **Signing status:**
Signing status ``` No errors have been found. ```
**List of activated apps:**
App list ``` # alias occ alias occ='sudo -u www-data php /var/www/nextcloud/occ' # occ app:list Enabled: - accessibility: 1.6.0 - activity: 2.13.2 - admin_audit: 1.10.0 - analytics: 3.0.0 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contactsinteraction: 1.1.0 - dashboard: 7.0.0 - dav: 1.16.0 - federatedfilesharing: 1.10.1 - federation: 1.10.1 - files: 1.15.0 - files_external: 1.11.1 - files_pdfviewer: 2.0.1 - files_rightclick: 0.17.0 - files_sharing: 1.12.0 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - imap_auth_aicr: 0.1.3 - impersonate: 1.7.0 - integration_github: 0.0.10 - integration_gitlab: 0.0.7 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - maps: 0.1.8 - music: 0.17.0 - nextcloud_announcements: 1.9.0 - notifications: 2.8.0 - oauth2: 1.8.0 - onlyoffice: 6.1.0 - password_policy: 1.10.1 - photos: 1.2.0 - privacy: 1.4.0 - provisioning_api: 1.10.0 - recommendations: 0.8.0 - richdocuments: 3.7.5 - serverinfo: 1.10.0 - settings: 1.2.0 - sharebymail: 1.10.0 - sociallogin-aicr: 3.4.1 - spreed: 10.0.1 - support: 1.3.0 - survey_client: 1.8.0 - systemtags: 1.10.0 - talk_matterbridge: 1.19.0 - tasks: 0.13.5 - text: 3.1.0 - theming: 1.11.0 - twofactor_backupcodes: 1.9.0 - twofactor_nextcloud_notification: 3.0.0 - updatenotification: 1.10.0 - user_status: 1.0.0 - viewer: 1.4.0 - weather_status: 1.0.0 - workflowengine: 2.2.0 Disabled: - encryption - user_ldap ```
**Nextcloud configuration:**
Config report ``` # occ config:list system { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "192.168.200.167", "cloud.mmsionline.us" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "tempdirectory": "\/var\/www\/nc-temp", "overwrite.cli.url": "https:\/\/cloud.mmsionline.us\/", "htaccess.RewriteBase": "\/", "dbtype": "mysql", "version": "20.0.1.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "UTC", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu", "loglevel": 2, "log_rotate_size": 104857600, "logfile": "\/var\/www\/nc-log\/nextcloud.log", "apps_paths": [ { "path": "\/var\/www\/nextcloud\/apps", "url": "\/apps", "writable": true }, { "path": "\/var\/www\/nextcloud\/local", "url": "\/local", "writable": true } ], "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "preview_max_scale_factor": 1, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\HEIC", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\OpenDocument", "OC\\Preview\\Krita" ], "asset-pipline.enabled": true, "user_backends": [ { "class": "OC_IMAP_Auth_AICR", "arguments": [ "{mail06.aicr.org:993\/imap\/ssl\/novalidate-cert\/notls\/readonly}" ] } ], "maintenance": false, "theme": "", "updater.release.channel": "stable", "appcodechecker": false, "twofactor_enforced": "true", "twofactor_enforced_groups": [ "admin" ], "twofactor_enforced_excluded_groups": [], "mysql.utf8mb4": true, "app_install_overwrite": [ "passman", "imap_auth_aicr", "issuetemplate", "sociallogin" ], "onlyoffice": { "verify_peer_off": true, "timeout": 5 }, "updater.secret": "***REMOVED SENSITIVE VALUE***" } } ```
**Are you using external storage, if yes which one:** local/smb/sftp/... SMB-CIFS **Are you using encryption:** yes/no no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... The account used for testing the weatherstatus app is authenticated in the local database, however I do have customized versions of two other authentication apps enabled: * external users * sociallogin ### Client configuration **Browser:** Firefox Edge (Chromium) Chrome Safari **Operating system:** WIndows 10 macOS
mmccarn commented 3 years ago

My test server has 12 user accounts using a mix of user back-ends.

The only account with a 'locale' listed in oc_preferences is the one for which I followed the manual process of changing the local in user preferences, then changing it back.

That is - in user preferences, my locale was listed as "English (United States)". I changed it to "English", reloaded the dashboard (Weather still reporting in celsius), changed it back to "English (United States)".

e-alfred commented 3 years ago

I am sorry but the weather widget on your Nextcloud dashboard is not part of this app, but of the Nextcloud core and is maintained by @eneiluj. We would like to integrate with the dashboard widget, but this is not happening currently.

Your app list does not even mention the weather app if you look at it. By the way, the weather app simply lets you change your preferred units (Fahrenheit, Celsisus and Kelvin) if you want to try it out.

mmccarn commented 3 years ago

Doh!

Thanks.