Stuart Longland (VK4MSL) on Nostr: I'll have to think of a better way to do the #BushfireWarning notices. I'm doing it ...
I'll have to think of a better way to do the #BushfireWarning notices. I'm doing it by hand which is time-consuming, error-prone and relies on me being 100% attentive.
Not a good plan.
I see the Mapnik project (
https://mapnik.org/) seems to have some code that can effectively render a KMZ map file as an image.
https://stackoverflow.com/a/3979536The QFES CAP-AU feed (
https://publiccontent-gis-psba-qld-gov-au.s3.amazonaws.com/content/Feeds/BushfireCurrentIncidents/bushfireAlert_capau.xml) has everything I need to actually render that… I just need a pin in the actual spot and a polygon around the perimeter.
Shouldn't be difficult to put that into a small graphic, use the text from the XML to make a number of bots (Queensland is huge, I'm thinking one per "region"; so Far North, North West, Central, Central Coast, South West, Southern, South East), linking back to the QFES site for official updates.
Published at
2023-10-13 12:01:51Event JSON
{
"id": "06d30e14fc18e6feaaf524f8063157bb66ec0ca36eec55ed97fdef0aae864cca",
"pubkey": "e076617b3be9c3ca67b55c2f973f62fa333fe6e18e606d8910a02bcc46e2d275",
"created_at": 1697191311,
"kind": 1,
"tags": [
[
"t",
"bushfirewarning"
],
[
"proxy",
"https://mastodon.longlandclan.id.au/users/stuartl/statuses/111227129797241884",
"activitypub"
]
],
"content": "I'll have to think of a better way to do the #BushfireWarning notices. I'm doing it by hand which is time-consuming, error-prone and relies on me being 100% attentive.\n\nNot a good plan.\n\nI see the Mapnik project (https://mapnik.org/) seems to have some code that can effectively render a KMZ map file as an image.\n\nhttps://stackoverflow.com/a/3979536\n\nThe QFES CAP-AU feed (https://publiccontent-gis-psba-qld-gov-au.s3.amazonaws.com/content/Feeds/BushfireCurrentIncidents/bushfireAlert_capau.xml) has everything I need to actually render that… I just need a pin in the actual spot and a polygon around the perimeter.\n\nShouldn't be difficult to put that into a small graphic, use the text from the XML to make a number of bots (Queensland is huge, I'm thinking one per \"region\"; so Far North, North West, Central, Central Coast, South West, Southern, South East), linking back to the QFES site for official updates.",
"sig": "f4f9f4479231cd0e95a7460013b2ec4d1b9dc18f1e74232b1f07a2c7322cb15ae7424e948a0ce4b8efd37ec8c00c6c322064470418bc91652de12d41f070fed9"
}