Skip to content

Java app to run on Raspberry Pi, behind a mirror, to display weather info

License

Notifications You must be signed in to change notification settings

pepers/MagicMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicMirror

Java app to run on Raspberry Pi, behind a mirror, to display weather info

license

Table of Contents:

  1. About
  2. Dependencies
  3. Notes

About:

The plan is for this app to be loaded on a Raspberry Pi (with wifi capabilities, so probably Rasberry Pi 3 model B), with a PIR (Passive Infrared) sensor and a screen/display connected. The screen will be placed behind the mirror, so that the display can be seen through the mirror. When motion is detected in front of the mirror, the screen will turn on and info will be displayed to the user through the mirror. Information to display includes: weather conditions, current temperature, relative temperature, and what types of clothes to wear for the current weather (pants or shorts, sweater or tshirt, type of jacket, etc.).


Dependencies:


Notes:

  • while in main directory (/MagicMirror); used javah -classpath bin -jni -d jni main.java.MagicMirror to generate C header file for two methods to turn monitor on/off
    • compile dlls in windows with mingw (use mingw-w64 for 64bit Windows) (use .so instead of .dll when recompiling under Linux for Rasberry Pi)
      • Windows - 32bit Java - gcc -o monitor_toggle32.dll -shared "C:\Program Files\Java\jdk1.8.0_74\include\jni.h" monitor_toggle.c
      • Windows - 64bit Java - gcc -m64 -o monitor_toggle64.dll -shared "C:\Program Files\Java\jdk1.8.0_74\include\jni.h" monitor_toggle.c

About

Java app to run on Raspberry Pi, behind a mirror, to display weather info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published