Toon app: NL-Alert

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Toon app: NL-Alert

Postby hansgrave » Sun Mar 15, 2020 7:03 pm

Nice App! Thanx!
Homey, rooted Toon 1 and HomeAssistent.
hansgrave
Starting Member
Starting Member
 
Posts: 49
Joined: December 2017

Re: Toon app: NL-Alert

Postby glsf91 » Sun Mar 15, 2020 10:46 pm

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.
glsf91
Member
Member
 
Posts: 170
Joined: September 2017

Re: Toon app: NL-Alert

Postby Toonz » Mon Mar 16, 2020 11:17 am

1.1.0 is available in the ToonStore
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1644
Joined: December 2016

Re: Toon app: NL-Alert

Postby Templar » Mon Mar 16, 2020 1:20 pm

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?
Templar
Member
Member
 
Posts: 177
Joined: March 2011
Location: Netherlands

Re: Toon app: NL-Alert

Postby Toonz » Mon Mar 16, 2020 1:53 pm

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
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1644
Joined: December 2016

Re: Toon app: NL-Alert

Postby TheHogNL » Wed Mar 18, 2020 11:18 am

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Toon app: NL-Alert

Postby TheHogNL » Wed Mar 18, 2020 5:12 pm

And 1.1.2 next with a confirmation that it received the coordinates using the qr code option
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Toon app: NL-Alert

Postby Toonz » Wed Mar 18, 2020 6:33 pm

working fine, thanks
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1644
Joined: December 2016

Re: Toon app: NL-Alert

Postby glsf91 » Wed Mar 18, 2020 6:43 pm

Sorry for the mistake. Thanks for fixing.
glsf91
Member
Member
 
Posts: 170
Joined: September 2017

Re: Toon app: NL-Alert

Postby TheHogNL » Wed Mar 18, 2020 7:59 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Toon app: NL-Alert

Postby glsf91 » Wed Mar 18, 2020 8:21 pm

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.
glsf91
Member
Member
 
Posts: 170
Joined: September 2017

Re: Toon app: NL-Alert

Postby TheHogNL » Wed Mar 18, 2020 10:55 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Toon app: NL-Alert

Postby TheHogNL » Sun Mar 22, 2020 5:35 pm

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
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1882
Joined: August 2017

Re: Toon app: NL-Alert

Postby glsf91 » Sun Mar 22, 2020 5:57 pm

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: 170
Joined: September 2017

Re: Toon app: NL-Alert

Postby glsf91 » Sun Mar 22, 2020 11:33 pm

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.
glsf91
Member
Member
 
Posts: 170
Joined: September 2017

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 0 guests