Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 29 20:58

    dependabot-preview[bot] on add-v2-config-file

    Upgrade to GitHub-native Depend… (compare)

  • May 14 2020 01:16

    genebean on 2.1.0

    (compare)

  • May 14 2020 01:16

    genebean on deepcore2-Suggestions-from-Peter

    (compare)

  • May 14 2020 00:00

    genebean on master

    Correct version file (compare)

  • May 13 2020 23:58

    genebean on release

    (compare)

  • May 13 2020 23:58

    genebean on master

    Release 2.1.0 Merge pull request #77 from gen… (compare)

  • May 13 2020 23:58

    genebean on release

    Release 2.1.0 (compare)

  • May 13 2020 23:57

    genebean on master

    Finalize enabling 24h time @de… (compare)

  • May 13 2020 23:55

    genebean on master

    Update weather.py Merge pull request #1 from deep… Suggestions from Peter and 1 more (compare)

  • May 13 2020 23:19

    genebean on deepcore2-Suggestions-from-Peter

    Update weather.py Merge pull request #1 from deep… Suggestions from Peter and 2 more (compare)

  • May 13 2020 03:02

    genebean on 2.0.1

    (compare)

  • May 13 2020 03:02

    genebean on 2.0.1

    (compare)

  • May 13 2020 03:02

    genebean on master

    Documentation / PyPI updates Merge pull request #75 from gen… (compare)

  • May 13 2020 03:01

    genebean on 2.0.1

    Documentation / PyPI updates (compare)

  • May 13 2020 02:58

    genebean on 2.0.0

    (compare)

  • May 13 2020 02:14

    genebean on release

    (compare)

  • May 13 2020 02:14

    genebean on master

    Release 2.0.0 Merge pull request #74 from gen… (compare)

  • May 13 2020 02:13

    genebean on release

    Release 2.0.0 (compare)

  • May 12 2020 01:03

    genebean on upgrade_script

    (compare)

  • May 12 2020 01:03

    genebean on master

    Updated migration script to mat… Merge pull request #73 from gen… (compare)

Jimbo
@J1mm3Br0dY
I followed your install directions to a "T". It's no longer working.
scubabum
@scubabum_twitter
@genebean when I run install script I get invalid task. I've checked OS relese/update/etc.
ciprian288
@ciprian288
Hey guys. For the updated version with OpenWetherMap, Windguru or Holfuy, here is the Repo: https://github.com/ciprian288/PiWeatherRock-Windguru-Holfuy
deepcore2
@deepcore2
Thank you! Will set it up on my pi asap :)
deepcore2
@deepcore2
git clone https://github.com/ciprian288/PiWeatherRock-Weather-Wind.git PiWeatherRockWind did not work... Kept asking for password and then unable to find it.
git clone https://github.com/ciprian288/PiWeatherRock-Windguru-Holfuy PiWeatherRockWind Did work however... The page you get on clicking your link
deepcore2
@deepcore2
Also missing scripts directory for the services file. Guess I'm doing something wrong.
ciprian288
@ciprian288
ok ... fixed ... try now ( it was my second repository and i am just learning python and how to post repository)
deepcore2
@deepcore2
Step by step...
Another requisit needed:
python3-netifaces
And then:
Mar 23 08:51:00 WeatherPie systemd[1]: Started PiWeatherRock Service.
Mar 23 08:51:02 WeatherPie python3[1573]: pygame 1.9.6
Mar 23 08:51:02 WeatherPie python3[1573]: Hello from the pygame community. https://www.pygame.org/contribute.html
Mar 23 08:51:02 WeatherPie python3[1573]: X Display = :0
Mar 23 08:51:02 WeatherPie python3[1573]: Driver: {driver} failed.
Mar 23 08:51:02 WeatherPie python3[1573]: Driver: {driver} failed.
Mar 23 08:51:02 WeatherPie python3[1573]: Driver: {driver} failed.
Mar 23 08:51:02 WeatherPie python3[1573]: Driver: {driver} failed.
Mar 23 08:51:02 WeatherPie python3[1573]: No suitable video driver found!
Mar 23 08:51:02 WeatherPie python3[1573]: Traceback (most recent call last):
Mar 23 08:51:02 WeatherPie python3[1573]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 26, in <module>
Mar 23 08:51:02 WeatherPie python3[1573]: main()
Mar 23 08:51:02 WeatherPie python3[1573]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 22, in main
Mar 23 08:51:02 WeatherPie python3[1573]: runner.main(config)
Mar 23 08:51:02 WeatherPie python3[1573]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 45, in main
Mar 23 08:51:02 WeatherPie python3[1573]: self.my_weather_rock = Weather(config_file)
Mar 23 08:51:02 WeatherPie python3[1573]: File "/home/pi/PiWeatherRockWind/piweatherrock/weather.py", line 83, in init
Mar 23 08:51:02 WeatherPie python3[1573]: size = (pygame.display.Info().current_w,
Mar 23 08:51:02 WeatherPie python3[1573]: pygame.error: video system not initialized
Mar 23 08:51:02 WeatherPie systemd[1]: PiWeatherRock.service: Main process exited, code=exited, status=1/FAILURE
Mar 23 08:51:02 WeatherPie systemd[1]: PiWeatherRock.service: Failed with result 'exit-code'.
ciprian288
@ciprian288
pip3 install netifaces ... repo updated
deepcore2
@deepcore2
Somehow the code can't work with my TFT screen. I had to edit some stuff out of the original GenBean code also. For now I can't get it to work :(
Mar 23 10:38:49 WeatherPie systemd[1]: Starting PiWeatherRock Service...
Mar 23 10:39:19 WeatherPie systemd[1]: Started PiWeatherRock Service.
Mar 23 10:39:20 WeatherPie python3[2599]: xcb_connection_has_error() returned true
Mar 23 10:39:20 WeatherPie python3[2599]: pygame 1.9.6
Mar 23 10:39:20 WeatherPie python3[2599]: Hello from the pygame community. https://www.pygame.org/contribute.html
Mar 23 10:39:20 WeatherPie python3[2599]: X Display = :0
Mar 23 10:39:20 WeatherPie python3[2599]: Traceback (most recent call last):
Mar 23 10:39:20 WeatherPie python3[2599]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 26, in <module>
Mar 23 10:39:20 WeatherPie python3[2599]: main()
Mar 23 10:39:20 WeatherPie python3[2599]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 22, in main
Mar 23 10:39:20 WeatherPie python3[2599]: runner.main(config)
Mar 23 10:39:20 WeatherPie python3[2599]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 45, in main
Mar 23 10:39:20 WeatherPie python3[2599]: self.my_weather_rock = Weather(config_file)
Mar 23 10:39:20 WeatherPie python3[2599]: File "/home/pi/PiWeatherRockWind/piweatherrock/weather.py", line 89, in init
Mar 23 10:39:20 WeatherPie python3[2599]: screen = pygame.display.set_mode((480, 320), 0, 32)
Mar 23 10:39:20 WeatherPie python3[2599]: pygame.error: Unable to open a console terminal
Mar 23 10:39:21 WeatherPie systemd[1]: PiWeatherRock.service: Main process exited, code=exited, status=1/FAILURE
Mar 23 10:39:21 WeatherPie systemd[1]: PiWeatherRock.service: Failed with result 'exit-code'.
dronix27
@dronix27

git clone https://github.com/ciprian288/PiWeatherRock-Windguru-Holfuy PiWeatherRockWind Did work however... The page you get on clicking your link

It works. Unfortunately there are no Windguru-Holfuy stations near me, so there is no wind information.

ciprian288
@ciprian288
if you don't want to display the wind screen : first set "ID station" to null and "Wind screen" - "Pause" to 0
dronix27
@dronix27

if you don't want to display the wind screen : first set "ID station" to null and "Wind screen" - "Pause" to 0

For some reason, it is impossible to save the settings via the web. Only through config.json. So I cannot change "Pause"

ciprian288
@ciprian288
i reedit the scripts with ExecStart=/usr/bin/python3 .... instead of ExecStart=python3 ...
I rechecked all the installation steps on a fresh linux and I had no errors
ciprian288
@ciprian288
I added the clock font in repo
dronix27
@dronix27

i reedit the scripts with ExecStart=/usr/bin/python3 .... instead of ExecStart=python3 ...

Configuration via web still doesn't work for me. Settings are not saved.

ciprian288
@ciprian288
@dronix27 did you hit the Update button from the bottom of the page ?
deepcore2
@deepcore2
Well. Some good news... I realised I probably was running on a lite raspbian install... I made a fresh, full install and got things working. The screen still looks a bit strange. The menu bar stays visible, pushing the weather off screen. Als wind writes just over the weather and is formatted for a bigger screen...
deepcore2
@deepcore2
IMG_20210326_160431_8.jpg
IMG_20210326_160426_4.jpg
IMG_20210326_160436_5.jpg
To add to this... I use the 2.5"tft display
deepcore2
@deepcore2
That would be 3.5"
deepcore2
@deepcore2
It crashes...
Mar 26 17:44:00 raspberrypi python3[1255]: pygame 1.9.4.post1
Mar 26 17:44:00 raspberrypi python3[1255]: Hello from the pygame community. https://www.pygame.org/contribute.html
Mar 26 17:44:00 raspberrypi python3[1255]: X Display = :0
Mar 26 17:44:00 raspberrypi python3[1255]: Framebuffer Size: 480 x 320
Mar 26 17:44:00 raspberrypi python3[1255]: Traceback (most recent call last):
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 213, in check_forecast
Mar 26 17:44:00 raspberrypi python3[1255]: self.my_weather_rock.get_forecast()
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/piweatherrock/weather.py", line 150, in get_forecast
Mar 26 17:44:00 raspberrypi python3[1255]: self.wind = requests.get(url, headers = headers).json()
Mar 26 17:44:00 raspberrypi python3[1255]: File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json
Mar 26 17:44:00 raspberrypi python3[1255]: return complexjson.loads(self.text, **kwargs)
Mar 26 17:44:00 raspberrypi python3[1255]: File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
Mar 26 17:44:00 raspberrypi python3[1255]: return _default_decoder.decode(s)
Mar 26 17:44:00 raspberrypi python3[1255]: File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
Mar 26 17:44:00 raspberrypi python3[1255]: obj, end = self.raw_decode(s)
Mar 26 17:44:00 raspberrypi python3[1255]: File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
Mar 26 17:44:00 raspberrypi python3[1255]: return self.scan_once(s, idx=_w(s, idx).end())
Mar 26 17:44:00 raspberrypi python3[1255]: simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Mar 26 17:44:00 raspberrypi python3[1255]: During handling of the above exception, another exception occurred:
Mar 26 17:44:00 raspberrypi python3[1255]: Traceback (most recent call last):
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 26, in <module>
Mar 26 17:44:00 raspberrypi python3[1255]: main()
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/pwr-ui", line 22, in main
Mar 26 17:44:00 raspberrypi python3[1255]: runner.main(config)
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 81, in main
Mar 26 17:44:00 raspberrypi python3[1255]: self.screen_switcher()
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 186, in screen_switcher
Mar 26 17:44:00 raspberrypi python3[1255]: self.check_forecast()
Mar 26 17:44:00 raspberrypi python3[1255]: File "/home/pi/PiWeatherRockWind/piweatherrock/runner.py", line 216, in check_forecast
Mar 26 17:44:00 raspberrypi python3[1255]: self.my_weather_rock.log.exception(
Mar 26 17:44:00 raspberrypi python3[1255]: AttributeError: 'Weather' object has no attribute 'log'
Mar 26 17:44:01 raspberrypi systemd[1]: PiWeatherRock.service: Main process exited, code=exited, status=1/FAILURE
Mar 26 17:44:01 raspberrypi systemd[1]: PiWeatherRock.service: Failed with result 'exit-code'.
Mar 26 17:44:06 raspberrypi systemd[1]: PiWeatherRock.service: Service RestartSec=5s expired, scheduling restart.
deepcore2
@deepcore2
The boolean 12hour_disp does not do anything. I have 24 hour whatever I set it. I want 24hr, so that is not the problem, but the switch should work.
dronix27
@dronix27

Well. Some good news... I realised I probably was running on a lite raspbian install... I made a fresh, full install and got things working. The screen still looks a bit strange. The menu bar stays visible, pushing the weather off screen. Als wind writes just over the weather and is formatted for a bigger screen...

I fixed this for myself by enabling auto-hide of the panel. And I also had to turn off the wind info, since I don't have stations for my region. But the dpi of the 3.5 "display is really too small for this project.

image.png
dronix27
@dronix27
image.png
ciprian288
@ciprian288
small update: I added icons for low resolutions and time repair for 12 hours https://github.com/ciprian288/PiWeatherRock-Windguru-Holfuy
deepcore2
@deepcore2
Will seek for the auto hide. In general I never use GUI's on a pi :) But things start to look perfect...
IMG_20210327_110931_2.jpg
IMG_20210327_110935_8.jpg
IMG_20210327_110941_6.jpg
I hope the hide will move the display up for the - now - missing pixels.
deepcore2
@deepcore2
To have it gone all the time:
sudo vi /etc/xdg/lxsession/LXDE-pi/autostart
Comment out:
@lxpanel --profile LXDE-pi
IMG_20210327_112015_7.jpg
IMG_20210327_112021_2.jpg
IMG_20210327_112026_3.jpg
deepcore2
@deepcore2

But the dpi of the 3.5 "display is really too small for this project.

That's where I must disagree... These project are extremely suitable for the smaller screens in my opinion! I don't want my hous littered with relative big screens displaying stuff :) But like I said, just my opninion. This one works fine by now :)

strommsarnac
@strommsarnac
I'm trying to install PiWeatherRock from Win10x64, using elevated PS and followed the steps on the install page. I'm getting the error code Could not find a task named "piweatherrock::pisetup". I see where Marcel got it last year too, but it looks like his solution was to use Ubuntu instead of Win10. Is there an updated Win10 method I'm missing?
deepcore2
@deepcore2
I try to get info on station 56 on windguru, but that crashes the software??? 1050 works fine...
ciprian288
@ciprian288
on your windguru favorite station link it must contain 'station' like this https://www.windguru.cz/station/XXXX
ciprian288
@ciprian288
wind data is taken from real time stations not from forcast stations
deepcore2
@deepcore2
Every day you learn something. I just copied the final digits without "seeing" the url difference. Thanks!
jnmmoore
@jnmmoore
How do I uninstall this from my Pi?