ruuvi / com.ruuvi.station.ios

iOS Ruuvi Station
BSD 3-Clause "New" or "Revised" License
34 stars 21 forks source link

Remove hard codings #2147

Open markoaamunkajo opened 2 months ago

markoaamunkajo commented 2 months ago

Description:

Because these subscription infos are now available, we should start adjusting the apps to follow them and remove the hard codings.

Android card: https://github.com/ruuvi/com.ruuvi.station/issues/1313 Web: https://github.com/ruuvi/com.ruuvi.station.webui/issues/441


Sensor data contains subscription/feature info:

{
                "owner": "otso@ruuvi.com",
                "sensor": "C8:1C:8A:4E:42:17",
                "name": "Saarvahtra chimney 4217",
                "picture": "https://prod-sensor-profile-pictures.s3.eu-central-1.amazonaws.com/dde2aa98-5f51-4274-980c-37f83c55e74a.jpg",
                "public": false,
                "canShare": true,
                "offsetTemperature": 0,
                "offsetHumidity": 0,
                "offsetPressure": 0,
                "customProfile": false,
                "subscription": {
                    "subscriptionName": "Business",
                    "maxClaims": 50,
                    "maxShares": 80,
                    "maxSharesPerSensor": 10,
                    "maxHistoryDays": 1096,
                    "maxResolutionMinutes": 1,
                    "emailAlertAllowed": true,
                    "pushAlertAllowed": true,
                    "telegramAlertAllowed": true,
                    "delayedAlertAllowed": true,
                    "pdfExportAllowed": true,
                    "offlineAlertAllowed": true,
                    "isActive": true,
                    "endAt": "2026-07-24T10:35:42.000Z"
                },
markoaamunkajo commented 1 month ago

Moved to backlog, needs better specification