The Following 4 Users Say Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2010-03-16
, 19:38
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#2
|
--user-agent=""
![]() |
2010-03-17
, 06:53
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#3
|
![]() |
2010-10-14
, 12:15
|
Posts: 3 |
Thanked: 2 times |
Joined on Oct 2010
|
#4
|
wget -T 80 -O kaart http://www.verkeerscentrum.be/verkeersinfo/kaart wget -T 80 -O ~/MyDocs/.images/queen_beecon_dir/map_image.png http://www.verkeerscentrum.be`awk -f verkeerskaart.awk kaart` ls -l ~/MyDocs/.images/queen_beecon_dir/map_image.png | awk '{ print $8 }' ls -l ~/MyDocs/.images/queen_beecon_dir/map_image.png | awk '{ print $7,$6 }' rm -f kaart
BEGIN { FS = "'" } /congestions.layer[^_].*'(.map_image.*)/ { print $2 }
cd ~/.queen_beecon_dir ./verkeerskaart.sh
The Following User Says Thank You to sebastiaan.lampo For This Useful Post: | ||
![]() |
2010-10-14
, 18:14
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#5
|
Traffic for Flanders (Belgium)
Hi, I made a similar BeeCon for my own area. Specifities:
- source page is traffic map
- A transparent PNG is shown in overlay on a map of the area
- The image url changes
To overcome these difficulties, an awk script is used, in combination with 2 subsequent wgets. To ease the QBW, I put everything in a shell script. Note: it might be possible to do this more efficiently as I'm a first time user of both awk, shell scripts and QBW
/home/user/.queen_beecon_dir/verkeerskaart.sh (the shell script)
/home/user/.queen_beecon_dir/verkeerskaart.awk (the awk script)Code:wget -T 80 -O kaart http://www.verkeerscentrum.be/verkeersinfo/kaart wget -T 80 -O ~/MyDocs/.images/queen_beecon_dir/map_image.png http://www.verkeerscentrum.be`awk -f verkeerskaart.awk kaart` ls -l ~/MyDocs/.images/queen_beecon_dir/map_image.png | awk '{ print $8 }' ls -l ~/MyDocs/.images/queen_beecon_dir/map_image.png | awk '{ print $7,$6 }' rm -f kaart
now, use the attached picture as a background if you have the marina theme. Otherwise, download from the traffic website and modify to your liking. (note, matching the position of background is a bit tricky. use the supplied background to pinpoint for positioning)Code:BEGIN { FS = "'" } /congestions.layer[^_].*'(.map_image.*)/ { print $2 }
I haven't mastered exporting my QBW yet, but settings are as follows:
type=snippet
result image = map_image.png , size 150%
hide background
size max: 800 x 420.
Custom command:
I found it necessary to use the cd, otherwise the picture did not get updated. (It did return the correct date & time though)Code:cd ~/.queen_beecon_dir ./verkeerskaart.sh
Enjoy
![]() |
2010-10-14
, 21:05
|
Posts: 3 |
Thanked: 2 times |
Joined on Oct 2010
|
#6
|
So you managed ... in the end!?!?!?
Watch out however that html page is quite heavy ~125KB + png ~25KB makes 150KB every polling ... maybe there's an equivalent liter page for it by specifying different useragent to wget ... gotta experiment a little bit more though.
Cool beecon indeed!!!
![]() |
2013-03-11
, 17:50
|
Posts: 445 |
Thanked: 367 times |
Joined on Nov 2010
@ Italy
|
#7
|
Current Beecon is configured to display Live Traffic graphic status of Milan Ringroads System.
Other major cities in Italy are also available: ROME, TURIN, FLORENCE, NAPLES, BOLOGNA! See relevant section of this thread to adapt the command to different cities.
Let's go...
Preparation Steps:
And we start our newly created Beecon by saving data and running with Button (5)
And Here we Are!!!
We can also access graphics for other Italian Ringroads:
Have Fun!!!
Data is made available on the internet and is freely accessible also through a normal browser by pointing to "www.octotelematics.it". Credits go to the cited Companies, Organizations, Product, Services. Please report if any contents is neither appropriate nor allowed to be published and it will be removed within short time span.
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
Last edited by No!No!No!Yes!; 2010-10-14 at 10:14.