Page 2 of 4

Re: Toon app: NL-Alert

Posted: Sun Mar 15, 2020 7:03 pm
by hansgrave
Nice App! Thanx!

Re: Toon app: NL-Alert

Posted: Sun Mar 15, 2020 10:46 pm
by glsf91
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
I have made a new release (v1.1.0) with an alarm popup. Also added a screenshot.
See first post for release note.

Re: Toon app: NL-Alert

Posted: Mon Mar 16, 2020 11:17 am
by Toonz
1.1.0 is available in the ToonStore

Re: Toon app: NL-Alert

Posted: Mon Mar 16, 2020 1:20 pm
by Templar
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

Posted: Mon Mar 16, 2020 1:53 pm
by Toonz
Unfortunately the Toon kernel doesn't contain proper drivers for the buzzer, so it is a no-go for now

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 11:18 am
by TheHogNL
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 :)

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 5:12 pm
by TheHogNL
And 1.1.2 next with a confirmation that it received the coordinates using the qr code option

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 6:33 pm
by Toonz
working fine, thanks

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 6:43 pm
by glsf91
Sorry for the mistake. Thanks for fixing.

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 7:59 pm
by TheHogNL
glsf91 wrote:Sorry for the mistake. Thanks for fixing.
No problem. I'll just ask you to create Amber alert app now also ;-)

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 8:21 pm
by glsf91
TheHogNL wrote:
glsf91 wrote:Sorry for the mistake. Thanks for fixing.
No problem. I'll just ask you to create Amber alert app now also ;-)
If you first let a kid disappear, otherwise I cannot test it. Testing can take some time :lol:
First finish my Toon Bot now.

Re: Toon app: NL-Alert

Posted: Wed Mar 18, 2020 10:55 pm
by TheHogNL
glsf91 wrote: If you first let a kid disappear, otherwise I cannot test it. Testing can take some time :lol:
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."

Re: Toon app: NL-Alert

Posted: Sun Mar 22, 2020 5:35 pm
by TheHogNL
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?

Re: Toon app: NL-Alert

Posted: Sun Mar 22, 2020 5:57 pm
by glsf91
TheHogNL 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?
Indeed the distance to the areacenter was used. This was easy to make :lol:
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

Posted: Sun Mar 22, 2020 11:33 pm
by glsf91
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.