GithubHelp home page GithubHelp logo

lennyhirsch / unicornhathd-weather-clock Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 3 KB

Binary clock with weather API integration designed for Pimoroni's UnicornHat HD

Python 100.00%
python raspberry-pi unicornhat-hd binary-clock weather

unicornhathd-weather-clock's People

Contributors

lennyhirsch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unicornhathd-weather-clock's Issues

NameError: name 'weather' is not defined

Hi Lenny, thank you for providing this nice code. I'm experiencing some issues when executing the py.

I'm new to programming but I think I understood, that >>> w = obs.get_weather() <<< retrieves an object called "weather" therefore the later-on code >>> if weather.lower() == 'rain': <<< should relate to it - I suppose. Anyhow I get the error:

python weatherclock_o.py
Traceback (most recent call last):
File "weatherclock_o.py", line 126, in
if weather.lower() == 'rain':
NameError: name 'weather' is not defined

Do you have an idea how to fix it?

Best regards -J

No module named pyowm

I followed your instructions although I think that i'm still having issues with pyowm. When running "sudo python weatherclock.py" I receive an error saying "ImportError: No module named pyowm".

I tried using sudo pip3 install pyowm which comes up and says "Requirement already satisfied" although it isn't running. Any help is greatly appreciated. Thank you in advance.

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.