Code Monkey home page Code Monkey logo

weather-impression's Introduction

こんにちは

主にYouTubeにアップしている動画のコードを格納しています。 https://www.youtube.com/@kotaMorishita

センサーを使って〜する方法などのコードを載せています。 基本的にその動画でこんな風にできるぞ〜という用途のためだけに作った一点物コード(使い捨てコード)なので、綺麗なコードではありません。参考程度にどうぞ。

もしバグを見つけたらそっとプルリクエストを送っていただけると助かります。

Hello.

Most projects are just for my YouTube videos. https://www.youtube.com/@kotaMorishita

**When you find bugs or problems, please send me a pull request/how to reproduce. **

weather-impression's People

Contributors

everyplace avatar kotamorishi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

weather-impression's Issues

initGPIO() in weather.py no longer works with libgpiod library

Just a heads up: weather.py does not work with the the latest version of libgpiod.

I installed the python3 libraries for gpiod by apt install python3-libgpiod as explained here https://stackoverflow.com/questions/74352978/python-libgpiod-vs-gpiod-packages-in-linux

I get this error:

Traceback (most recent call last):
  File "/home/xx/weather-impression/weather.py", line 536, in <module>
    update()
  File "/home/xx/weather-impression/weather.py", line 522, in update
    gpio_pin = initGPIO()
               ^^^^^^^^^^
  File "/home/xx/weather-impression/weather.py", line 509, in initGPIO
    config = gpiod.line_request()
             ^^^^^^^^^^^^^^^^^^
AttributeError: module 'gpiod' has no attribute 'line_request'

Another problem in initGPIO() is that chip = gpiod.chip(0) should be formatted like this when using the latest version of libgpiod: chip = gpiod.Chip('0')

I was able to resolve this by myself by commenting out the rows that use initGPIO() . The effect is essentially -- if I understand correctly -- that button presses don't work for me.

Graph scale problem.

For Y axsis scale is automatically adjusted with data.
When the 48 forecasts are really flat, the graph could be misreading for most users.
(It happens when the min-max differences are very small)

Misreading case:
min 1000, max 1001
The graph will be very spiky and it seems up and down all the time. but the value diffrence is just 1.

Getting KeyError: 'current'

Getting an error when tried to run weather.py-

Traceback (most recent call last):
  File "/home/pi/weather-impression/weather.py", line 419, in <module>
    update()
  File "/home/pi/weather-impression/weather.py", line 410, in update
    drawWeather(wi, cv)
  File "/home/pi/weather-impression/weather.py", line 190, in drawWeather
    temp_cur = wi.weatherInfo[u'current'][u'temp']
KeyError: 'current'

Any fix to solve the problem?

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.