This is an app that can subscribe to events posted from the Swedish police.
Install the app
Add a new Polisnytt API Device
Make sure to set one or more locations in the settings for the device
Currently there is only one trigger card (An event occured) but let me know if there is something you’re missing except for the actual type-o (occured → ocurred). I’ll fix that in a future release.
Note that all events that comes from this API is in swedish.
For every event there’s a link to a one pager more detailed text.
Would it be possible to add either the link to polisnytt.se/happening or the text body as a separate variable for easy access?
Yeah, I can get you the full URL to the article page as a token if you want. Unfortunately they don’t provide the full body in the API. It might be possible to scrape the page though for that info but that can be a little shaky. Here is how the API response looks like:
Yes, it would be good to have full link in a URL tag.
Also wonder if a ‘Tap to copy link’ on the notification itself (much like Chrome is able to do) could work, as a link text in e.g push notification isn’t that useful.
Is there a limitation of number of characters in summary “Polisens ledningscentral har dirigerat en polisbil till trafikplats Gubbängen för att utföra en fordons- och f”
missing last word “förarkontroll.”
Hi Lasse. You would just pipe the output of the “when”-cards tags and do whatever you want with it. Here is an example of how to send a push notification