Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push unsuitable spray conditions to Farm calendar #30

Closed
fedjo opened this issue Mar 4, 2025 · 1 comment
Closed

Push unsuitable spray conditions to Farm calendar #30

fedjo opened this issue Mar 4, 2025 · 1 comment
Assignees

Comments

@fedjo
Copy link
Contributor

fedjo commented Mar 4, 2025

No description provided.

@fedjo fedjo self-assigned this Mar 12, 2025
@fedjo
Copy link
Contributor Author

fedjo commented Mar 12, 2025

Use the Observation API with a custom Activity Type

{
    "@context": [
        "https://w3id.org/ocsm/main-context.jsonld"
    ],
    "@graph": [
        {
            "@type": "Observation",
            "@id": "urn:farmcalendar:Observation:0614051b-ee38-4718-a1a1-c4e5b72d68f2",
            "activityType": {
                "@type": "FarmCalendarActivityType",   # Use a custom ActivityType for Spray condition
                "@id": "urn:farmcalendar:FarmCalendarActivityType:55cf0568-a998-43e8-9b4d-c49e74e853e7"
            },
            "title": "Spray Forecast",
            "details": "Lat: 22.45354353, Lon:  36.434344343
                             weather_params:
                                   temp: 22.45,
                                   wind: 2.95,
                                   precipitation: 0"
            "phenomenonTime": "2025-02-27T15:15:02Z",
            "hasResult": {
                "@id": "urn:farmcalendar:QuantityValue:37b4cbab-1fa1-56c7-b72e-44464d52c21e",
                "@type": "QuantityValue",
                "unit": null,
                "numericValue": "marginal"
            },
            "observedProperty": "spray_conditions_forecast"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant