@cowboysdude We might just drill a tiny hole into the frame of the mirror and put the PIR behind it without its Fresnel cover. Will experiment with that idea some more.
Read the statement by Michael Teeuw here.
Posts made by yo-less
-
RE: PIR sensor behind glass?
-
RE: PIR sensor behind glass?
@cowboysdude Thanks for the link. Does f.lux have access to the monitor’s brightness settings? As this has nothing to do with my original question I will start a new topic concerning the brightness issue at night.
-
RE: custom.css
@ianperrin Thanks for the clarification. I could swear I tried using “.compliments .xlarge” before posting as my own module css files use the same syntax and it looked like it didn’t work, but I’ve just tried it again and it’s working as it should :). Great to know.
-
RE: PIR sensor behind glass?
@RedNax Apparently some monitors seem to allow for external commands to change the light levels:
http://lifehacker.com/5985364/change-your-monitors-brightness-without-fiddling-with-its-buttonsThey seem to have to support DDC/CI and if there is a tool for Windows PCs there should be some way to get the same thing done on a Pi?
-
RE: PIR sensor behind glass?
@RedNax Alright, is that the case with all types of glasses? I guess it would be?
-
RE: custom.css
@Pierre Take a look at the following code in the compliments.js file:
wrapper.className = "thin xlarge bright";
Among other things, it tells the mirror to print the message in extra large letters.
You have two options:
- You can change the extra large letter size for all modules
- You can redefine the letter size for the compliments module
To change the extra large letter size for all modules, add the following code to your custom.css file:
.xlarge { font-size: YOURFONTSIZE px; }
Instead of YOURFONTSIZE, you pick something you like. This is a good option if it doesn’t break any of your other existing modules because they become harder to read or start changing their layout, because this way, even when you update your mirror, the CSS file info will remain the same.
The other option would be to change the code of the compliments.js file to, say:
wrapper.className = "thin myXlarge bright";
Next, you would have to define this new style myXlarge in your custom.css file:
.myXlarge { font-size: YOURFONTSIZE px; }
This way, you wouldn’t affect any of the other modules but you would have to change the compliments.js file after every update of the mirror.
I’m not aware of any way to change global css styles (such as: “xlarge”) for only a specific module using the custom.css file. Does anyone else have any idea whether that can be done?
-
RE: PIR sensor behind glass?
@RedNax Your mirror looks really cool.
Our mirror will be mounted pretty much at eye level so having the sensor at the bottom of the frame won’t be an option for me, but I’m already experimenting with covering the sensor with plastic stuff ^^.
Is there an xkcd module I’m not aware of?
And may I ask where you got your glass? Some of the pictures I’ve seen look like you can still see the monitor behind the glass but with your mirror that doesn’t seem to be the case.
-
RE: Screen Font is too big
I’m assuming you changed the font-size attribute somewhere else than in the body section of the main css file. Using the body section, you’re hypothetically telling it to change it everywhere, but most of the time you’re changing nothing at all, that is because most modules don’t use the general font size as far as I can tell (someone correct me if I’m wrong here).
The modules I’m using specifically tell the mirror to print their information in “small”, “medium”, “large”, … letters. This is what those section in the css file are for.
So, let’s say you don’t like that the “small” letters have a font size of 20px and you want them to be half as big, then you add the following lines to your custom.css:
.small { font-size: 10px; }
I suggest you try to find out in which section you changed the font-size in the main.css file. Add that section to the custom.css file and change your font size there. Otherwise all your font changes will be lost the next time you update your mirror.
-
RE: PIR sensor behind glass?
Sure, I guess I’d have to play around with its sensitivity, will keep you updated on the outcome of my tests