Re: Get last file folder in header

2013-02-23 Thread Mark Lawson
Thank. Eventually I sorted it out: 1. Used some JS to get the first folder from the CamelFileName header (lounge/temperature) to get lounge 2. Used recipient list to make up the right uri for the topic dynamically. It isn't pretty, but it works and this way if I want to publish the data to a co

Re: Get last file folder in header

2013-02-23 Thread Claus Ibsen
On Fri, Feb 22, 2013 at 10:55 PM, Mark Lawson wrote: > Hi, > > I'm getting some temperature readings from a 1-wire system and putting them > out on an mqtt broker with Camel 2.10.3. The readings appear in the file > system as /mnt/1wire/study/temperature etc and I'm using this route: > > > > It wo