Hi Cyril, On 03/31/2011 11:50 AM, Cyril LAVIER wrote:
> On 03/31/2011 05:43 PM, p4trykx wrote: >> Dnia 31-03-2011 o 17:33:49 Cyril LAVIER<clavier+owfs...@ltutech.com> >> napisaĆ(a):>> >> >>> I type the same commands as previously. >> The you are doing it wrong. The alias file is not writable!!! > As far as I know, I never yelled at you... >> Answer this: >> Did you read the link I gave you? http://owfs.org/index.php?page=aliases >> >> You have to run owfs/owerver like this >> owfs -a myaliases.txt -d /dev/ttyS0 -m /mnt/1wire >> >> > Yes, I read it while I was searching for any clue. > > But this method doesn't convince me, as I don't want to restart the > owserver everything I add a sensor. > > So I will try to find another way to identify my sensors. Well, the thing is that you are trying to do something that is not supported (or to say it in a different way, the feature does not exist). patrykx mentioned that what you are seeing is because the feature does not exist and when you write something like "I just tried with the 2.8p8 version, but it's the same problems", well, the question in everybody's mind is "if it is the way the software is designed, why would a new version behave any different?" Since the feature does not exist then yes, you will have to find a different method if you don't want to restart owserver every time you add a new alias. In terms of things you could do so you don't have to restart owserver when you want a new alias... some people maintain symlink forests. Others (myself included), handle aliasing (i.e. giving sensors a more readable name) in our polling scripts. For example, my polling script (Perl) has this: my %sensors = ( "28.3C30A3020000" => "bedroom_1", "28.454BA2220000" => "bedroom_2", "28.2618A2420000" => "bedroom_3", "28.3844A5020000" => "garage", ... }; and then I access the sensors like this: foreach my $sensor (keys %sensors) { if (!open SENSOR, "/owfs/$sensor/temperature") { ... Hope this helps. Cheers, Eloy Paris.- ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers