Toon app: NL-Alert
Moderators: marcelr, TheHogNL, Toonz
Re: Toon app: NL-Alert
I have made a new release (v1.1.0) with an alarm popup. Also added a screenshot.TheHogNL wrote: And an idea, look at the smokedetector native app how they overwrite the full screen when smoke is detected. You can use that code to post a NL-alert message
See first post for release note.
Re: Toon app: NL-Alert
The Toon has a buzzer does it? Is it possible for the NL-Alert app to use that buzzer when an Alert message pops up?
Re: Toon app: NL-Alert
Unfortunately the Toon kernel doesn't contain proper drivers for the buzzer, so it is a no-go for now
member of the Toon Software Collective
Re: Toon app: NL-Alert
I just updated to NL alert 1.1.1 because of a qrcode timer issue .. the timer wasn't stopped after exiting the config screen so my server is now receiving lot's of qrcode config requests 

Member of the Toon Software Collective
Re: Toon app: NL-Alert
And 1.1.2 next with a confirmation that it received the coordinates using the qr code option
Member of the Toon Software Collective
Re: Toon app: NL-Alert
Sorry for the mistake. Thanks for fixing.
Re: Toon app: NL-Alert
No problem. I'll just ask you to create Amber alert app now alsoglsf91 wrote:Sorry for the mistake. Thanks for fixing.

Member of the Toon Software Collective
Re: Toon app: NL-Alert
If you first let a kid disappear, otherwise I cannot test it. Testing can take some timeTheHogNL wrote:No problem. I'll just ask you to create Amber alert app now alsoglsf91 wrote:Sorry for the mistake. Thanks for fixing.

First finish my Toon Bot now.
Re: Toon app: NL-Alert
glsf91 wrote: If you first let a kid disappear, otherwise I cannot test it. Testing can take some time![]()
First finish my Toon Bot now.
https://www.amberalert.nl/wp-content/up ... _https.pdf
"Om uw applicatie te kunnen testen hebben wij voorbeeld XML bestanden met een fictief Vermist
Kind Alert beschikbaar gesteld. U kunt deze feed gebruiken door een DNS record voor de URL
media.amberalert.nl te laten verwijzen naar het IP adres 104.46.34.74."
Member of the Toon Software Collective
Re: Toon app: NL-Alert
And... today we all got a NL-alert.
The polygon region was the area of the country NL.
I was suprised not to see a popup on the Toon. So I dived into the code.
You have chosen the (NL alert provided) areaCenter and then calculate the distance to the point. Marking it 'regio' or 'lokaal' depending on the settings in the NL-alert Toon app.
This didn't work for this situation as the areaCenter was somewhere in the middle of the country, so for most toons outside there configured region. But we all got a NL-alert message and I think Toon should have shown it also.
NL-alert api also provides the area polygon in gps-coordinates. I found (https://stackoverflow.com/questions/225 ... -a-polygon) a method the check if a given coordinate is with a given polygon. Using this method, you can remove the 'regio' and 'lokaal' idea from the app and just provide the message 'if within region' (and for test cases 'show all messages, also outside region').
Could you look if this is something you want to change? Or do you want me to change that?
The polygon region was the area of the country NL.
I was suprised not to see a popup on the Toon. So I dived into the code.
You have chosen the (NL alert provided) areaCenter and then calculate the distance to the point. Marking it 'regio' or 'lokaal' depending on the settings in the NL-alert Toon app.
This didn't work for this situation as the areaCenter was somewhere in the middle of the country, so for most toons outside there configured region. But we all got a NL-alert message and I think Toon should have shown it also.
NL-alert api also provides the area polygon in gps-coordinates. I found (https://stackoverflow.com/questions/225 ... -a-polygon) a method the check if a given coordinate is with a given polygon. Using this method, you can remove the 'regio' and 'lokaal' idea from the app and just provide the message 'if within region' (and for test cases 'show all messages, also outside region').
Could you look if this is something you want to change? Or do you want me to change that?
Member of the Toon Software Collective
Re: Toon app: NL-Alert
Indeed the distance to the areacenter was used. This was easy to makeTheHogNL wrote:And... today we all got a NL-alert.
The polygon region was the area of the country NL.
I was suprised not to see a popup on the Toon. So I dived into the code.
You have chosen the (NL alert provided) areaCenter and then calculate the distance to the point. Marking it 'regio' or 'lokaal' depending on the settings in the NL-alert Toon app.
This didn't work for this situation as the areaCenter was somewhere in the middle of the country, so for most toons outside there configured region. But we all got a NL-alert message and I think Toon should have shown it also.
NL-alert api also provides the area polygon in gps-coordinates. I found (https://stackoverflow.com/questions/225 ... -a-polygon) a method the check if a given coordinate is with a given polygon. Using this method, you can remove the 'regio' and 'lokaal' idea from the app and just provide the message 'if within region' (and for test cases 'show all messages, also outside region').
Could you look if this is something you want to change? Or do you want me to change that?

Problem is also that the area is not always (like this alert) an closed polygon and I have not a lot of examples. So therefore the choice for areacenter distance.
But I was already looking into this.
Re: Toon app: NL-Alert
I have changed the alerting based on NL-ALert area instead of the NL-Alert center distance in V1.2.0.
Updated the first post.
Alerting for regio is still possible (like the real NL-Alert app). If you don't want this, configure it to 0.
Updated the first post.
Alerting for regio is still possible (like the real NL-Alert app). If you don't want this, configure it to 0.