Git Product home page Git Product logo

jweather's Introduction

jWeather

Simple weather script built with weatherapi.com

License

License

Why

Forecast.io died and I needed a weather monitor replacement

Requirements

php,composer

How

Note:

  • Requires GeekTool, which can be downloaded from https://www.tynsoe.org/geektool/

  • Requires a weather API key from https://weatherapi.com

  • Register App for use at weatherapi.com

  • Generate your API key

  • Paste your API key into the weather.php script $OPTIONS, near the top

  • Open GeekTool

Enable Weather Generation Method 1

  • Drag new 'Shell' Geeklet to your desktop
  • Paste the following line into the Shell Command: /path/to/php /path/to/jWeather/weather.php

Note:

  • The following command can show you the path to your php install: which php

  • Set the command to run every 3,600 seconds

  • Set Timeout to something such as 20 seconds

  • Check Display status feedback image

  • In your terminal, run /path/to/php /path/to/jWeather/weather.php to generate the weather display, if necessary or to test

Enable Weather Generation Method 2 ( optional )

Note:

  • This only applies if you chose to not do method 1

  • Create a cron entry in your system for the weather script to run:

  • In your terminal, run crontab -e

  • Paste the following into your crontab:

  • 0 * * * * /path/to/php /path/to/jWeather/weather.php

  • Ensure your terminal has full disk access if issues are encountered

Note:

  • Full disk access for your terminal should not be necessary, as it has not been during my testing

Enable Weather Display

  • Drag new 'Image' Geeklet to your desktop

  • Set local path to: /path/to/jWeather/out.png

  • Resize the 'Image' window to desired size by dragging the bottom right corner

  • Set to run every every 2 seconds or no more than 3600 seconds

  • At this point, you should be set!

Platforms

Any Mac system that has php installed

FAQ

  • You can change size of font in weather.php, along with other settings
  • You may need to run /path/to/php /path/to/jWeather/weather.php to see those changes immediately

Issues

https://github.com/jadissa/jWeather/issues

Screenshots

jweather's People

Contributors

jadissa avatar

Watchers

 avatar

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.