This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[Published] ANWB Traffic information (0.4.8)
jjtbsomhorst
Member
I just finished creating a little app for Homey that can let you know if there are any traffic jams,road works or police checks on the dutch high ways.
It can be found on the appstore: https://apps.athom.com/app/eu.jeroensomhorst.anwb
First of all to give an idea what you can do with it see the following flow:
This flow will check at 16:30 on a workday if there is a traffic jam on the A59. If this is the case. It will send me a push notification using the Homey app.
English:
traffic,trafficjam.
Dutch: staat er file, staan er files?
This will trigger the app to report the current traffic information.
Let homey find out if there is any traffic information and report it
Homey will tell you if there are, and which, traffic jams there are on the selected highway (snelweg)
You can select what information you want Homey tell you. You can choose between traffic jams, road works or police checks. Also you can specify which road you want it to scan.
Homey will tell you how many traffic jams there are and the total length
Check if there is/isn't traffic on that specific road.
.
There are/aren't road works.
There are/aren't police checks
If you know how to work with the Athom CLi tool you can download the respository here: https://github.com/jjtbsomhorst/eu.jeroensomhorst.anwb
0.4.0
It can be found on the appstore: https://apps.athom.com/app/eu.jeroensomhorst.anwb
First of all to give an idea what you can do with it see the following flow:
This flow will check at 16:30 on a workday if there is a traffic jam on the A59. If this is the case. It will send me a push notification using the Homey app.
Speech triggers
The following speech triggers are available:English:
traffic,trafficjam.
Dutch: staat er file, staan er files?
This will trigger the app to report the current traffic information.
The following then cards are available:
Let homey find out if there is any traffic information and report it
Homey will tell you if there are, and which, traffic jams there are on the selected highway (snelweg)
You can select what information you want Homey tell you. You can choose between traffic jams, road works or police checks. Also you can specify which road you want it to scan.
Homey will tell you how many traffic jams there are and the total length
The following 'and' cards are available:
Check if there is/isn't traffic on that specific road.
.
There are/aren't road works.
There are/aren't police checks
If you know how to work with the Athom CLi tool you can download the respository here: https://github.com/jjtbsomhorst/eu.jeroensomhorst.anwb
Changelog
0.4.8
- Fixed an issue that would cause Homey to tell all traffic instead of only from a single road.
0.4.7
- Fixed the Api. Switch from http to https
0.4.6
- Changed the category from Internet to Location
0.4.5
- Added more N roads
- Added more A roads
- Changed all the Dropdown lists on various cards to choose roads to automplete fields.
- Localization category
0.4.4
- Fixed a grammar issue with radar checks condition
- Fixed a bug that would cause the api to return empty results instead of the real results
0.4.2
- Added condition to check if there are police checks on specified road
- Added condition to check if there are road works on specified road
0.4.0
- Fixed a bug that caused the app to crash when the speech trigger was used (English: traffic,trafficjam. Dutch: staat er file, staan er files?)
0.3.2
- fixed a bug that would cause the app to crash when someone wanted to know road block information
0.3.1
- Changed images and icon
0.3.0
- Refactor of code. Api has been moved to separate file
- Added summary card. Gives info about how many jams there are and the total distance
0.2.0
- Added trigger for traffic info on specified road.
0.1.0
- Initial release
Donate
If you like the app. Please consider a donation
Comments
I have to check if that is possible bu the problem is that this is not a route app such as tomtom or so.
If you want "expected route delays", you should use Google maps API. For example:
https://maps.googleapis.com/maps/api/distancematrix/json?origins=Amsterdam&destinations=Almere&mode=driving&language=en
This will return the amount of KM and the time (38 minutes currently). I was thinking of making an app to set a trigger if it changes to > 38+5 minutes.
I didn't look into it further yet but I'm sure Google has a load of options that can be turned on and off. On https://developers.google.com/maps/documentation/distance-matrix/intro there is more info to be found.
I want to know at 15:31 if there are any radarchecks on the A6, A1, or A10. I have set it up as in the screenshot, but now I hear "Er wordt op dit moment niet gecontroleerd" 3 times.
Perhaps it is possible to use the "Settings" page to be able to select multiple roads that you want to watch? Like Flitsmeister does it.
Otherwise, perhaps only mention when there are radar checks, and let the app be quiet if there aren't any?
Check for police actions on specified road
Check if there are road works going on.
This updates seems to me like the missing part to make it perfect.
Sorry for the inconvenience!
I could make an app around this rss feed so that you can use it the same way the ANWB App works.
This release contains more N and more A roads.