Toon app: NL-Alert

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

hansgrave
Starting Member
Starting Member
Posts: 49
Joined: Sat Dec 23, 2017 12:42 pm

Re: Toon app: NL-Alert

Post by hansgrave »

Nice App! Thanx!
Homey, rooted Toon 1 and HomeAssistent.
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: NL-Alert

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: NL-Alert

Post by Toonz »

1.1.0 is available in the ToonStore
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon app: NL-Alert

Post 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?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: NL-Alert

Post by Toonz »

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
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: NL-Alert

Post 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 :)
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: NL-Alert

Post by TheHogNL »

And 1.1.2 next with a confirmation that it received the coordinates using the qr code option
Member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: NL-Alert

Post by Toonz »

working fine, thanks
member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: NL-Alert

Post by glsf91 »

Sorry for the mistake. Thanks for fixing.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: NL-Alert

Post 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 ;-)
Member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: NL-Alert

Post 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.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: NL-Alert

Post 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."
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: NL-Alert

Post 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?
Member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: NL-Alert

Post 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.
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: NL-Alert

Post 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.
Post Reply

Return to “Toon Apps”