Git Product home page Git Product logo

piweatherrock-windguru-holfuy's Introduction

PiWeatherRock-Windguru-Holfuy

Displays local weather and wind on a Raspberry Pi

Daily forecast Hourly forecast Wind data
screenshot1 screenshot2 screenshot3

Introduction

PiWeatherRock is an internet-connected weather station. Its purpose is to display local weather and wind condtions. It was created with the goal of having a simple way to check the weather and wind before a nautical activity (kiting, windsurfing, sailing). The end result is a modern version of a weather rock.

Install requirements:

sudo apt-get install python3
sudo apt-get install python3-pip
git clone https://github.com/ciprian288/PiWeatherRock-Windguru-Holfuy.git PiWeatherRockWind
pip3 install -r ~/PiWeatherRockWind/requirements.txt

Scripts for autostart

  • The xhost command needs an active X server to run, it can run at the login screen, for example when lightdm loads. You can enable it by editing /etc/lightdm/lightdm.conf and adding the line: xserver-command=X -s 0 -dpms

    sudo cp ~/PiWeatherRockWind/scripts/{PiWeatherRock.service,PiWeatherRockConfig.service} /etc/systemd/system/
    sudo systemctl enable PiWeatherRockConfig.service
    sudo systemctl enable PiWeatherRock.service
    sudo systemctl start PiWeatherRockConfig.service
    sudo systemctl start PiWeatherRock.service
  • For instaling clock font:

    sudo cp -r ~/PiWeatherRockWind/fonts/digital.ttf /usr/share/fonts/truetype/digital.ttf
    fc-cache -f -v
  • For your locale:

    locale -a   # find your locale
    sudo update-locale LC_TIME=xx_XX.UTF-8    # replace xx-XX with your locale 
    sudo reboot

    or

    sudo dpkg-reconfigure locales   # select and configure your locales 
    sudo reboot

Usage

  • When PiWeatherRock starts, on the left side of the screen is your RaspberryPi IP (like: 10.0.2.15:8888 from screenshots)
  • Put in any web browser RaspberryPi IP . It provides a web interface for configuring PiWeatherRock
  • Wave your mouse over the titles for instructions
- The "API Meteo" key MUST BE CHANGED because it is a TEST key 
  • After Update your configuration (on web interface) restart PiWeatherRock.service with:

    sudo systemctl restart PiWeatherRock.service
  • If the wind is set, the color of the watch and the wind data (blue, green, orange, brown, purple) changes according to the wind speed

  • To display wind data from Windgru, set in the web interface for configuring PiWeatherRock the "API Holfuy" to null and the station ID number from a real wind station like " https://www.windguru.cz/station/2708 " , not the forecasted one. The station ID can be found by accessing the desired station on holfuy.com or windguru.cz, being the number at the end of the link.

  • If you don't want the wind page to be displayed, go to the 'Wind screen' section in the web interface for configuring PiWeatherRock and set the pause to 0.

To EXIT PiWeatherRock-Windguru-Holfuy -- press Q

piweatherrock-windguru-holfuy's People

Contributors

ciprian288 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

piweatherrock-windguru-holfuy's Issues

windguru

I had no problems loading and running software. I love the large print. The only thing I have been unable to sort out is changing windguru to F and MPH. any ideas?

Thanks
Bill

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.