Changes between Version 1 and Version 2 of Interface as a "/proc"-like file system


Ignore:
Timestamp:
Jun 18, 2009, 3:39:01 PM (15 years ago)
Author:
jsandahl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Interface as a "/proc"-like file system

    v1 v2  
    3535The concept can be extended with under catalogues for different rooms and files for lamps in them, moving digits (with a digit between 0 and 1) for dimmers, ev. other detectors would be possible to enter into showing temperature, movement, light in different parts of the house. Etc.
    3636
    37 Huvudpoängen är att med ett dylik system skulle det vara *extremt* enkelt göra enkla shellskriptar för att styra lampor & andra apparater. Med ett mer avancerat shell (zsh, t.ex.) kan man göra väldigt kraftfulla saker enkelt. Släcka alla lampor, t.ex.:
     37The main point is that with a similar system it would be extremely easy to create simple shell scripts for controlling lamps and other appliances. With a more advanced shell (e.g. zsh) very powerful solutions can be made easily. For example turning all lamps off:
     38
     39{{{
    3840
    3941 echo 0 >/tell/**/*(.)
    4042
    41 [edit]
    42 Svar
     43}}}
    4344
    44 Har du kollat TellstickController, som i princip har allt du vill, dock inte exponerat som ett /proc filsystem. Tellsticken kan inte lyssna så tillstånden för lamporna blir alltid en gissning. Om du bara kör scriptat är det inga problem, men ska du blanda script med fjärrkontroll så kan tellststicken aldrig veta en lampas tillstånd.
    4545
    46     Tackar så mycket för svar. Sniffat lite på TellstickController, och det är förvisso ett alternativ. Börjar dock undra vad mina alternativ till tellsticken är. Skulle iaf vilja ha något som kan sniffa upp fjärrkontrollssignaler (d.v.s. en mottagare) och därvid ha koll på fler kontrollsignaler än bara de som sänds ut av den egna sändare. -- Allrahelst skulle jag vilja ha ett system där man kan efterfråga status hos lampbrytaren. Finns det några sådana? Vilka, och vad får man betala?
     46== Svar  ==
    4747
    48     Det sagt, så måste jag säga att jag till enklare tillämpningar finner tellsticken enkel och effektiv att använda. Det är bara graden av kontroll jag är lite missnöjd med. :/ Zrajm 28 mars 2008 kl.19.32 (CET)
     48Did you check out TellstickController which practically has everything you want though not exposed as a /proc file system. TellStick cannot listen to the status of lamps. Instead this will be a guess. If you only run the script it is ok, but if you are to mix the script with a remote control the TellStick will never know the status of a lamp.
     49
     50  * Thank you for this answer. I had a look at Tellstickcontroller and it is an alternative. Though I have started to wonder what my alternatives to the TellStick are. I would still like to have something that could detect remote control signals. (i.e. a receiver) and thereby keep track of more remote control signals than those sent out by own transmitters. Most of all I would like a system where one could ask for the status of the receiver. Are there any systems like that? Which ones and what is the price?
     51
     52  * With that outspoken, I have to say I find TellStick easy and effective to use for simpler applications. It is only the degree of control that I am not satisfied with.