Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

SmartHouseRpi/rpi-sensor-sun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-sensor-sun

Build Status

Docker image for RaspberryPI (ARMv7) containing the process that tracks the Sun states (day, dusk, night, etc) for a partcular lacation of the Earth and publishes recent state via Redis

##How to run

docker run -e lat=55.7 -e lon=37.6 -e db_key=sun.state -d --link redis:YOUR_REDIS_HOST SmartHouseRpi/rpi-sensor-sun

The image requires 3 environmental variables to be set:

  • lat
  • lon
  • db_key

lat, lon - specifies geo point at the Earth surface to calculate day phase for

db_key - a key in redis to store one of the three states: "day","twilight","night"

Container communicates with Redis using "redis" hostname. Map it the redis host in your network.

##Releases

https://hub.docker.com/r/smarthouserpi/rpi-sensor-sun/

About

Raspberri PI (ARMv7) service that tracks the Sun position and puts the info to Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published