WeatherFlow PiConsole - Archive

I’ve started BRUTE hacking to get my F , iHg parameters displayed –
struggling with Rain conversion and high/low (Temp/Pres)parameters.

Hope to trash my efforts soon, to your fully supported C/F version .:grin:

I’m really just a Hack, do not know python at all - any programming I’ve done is in Perl.

image.png

that would be awesome if a host os ‘you need a better power supply’ indicator randomly overlaid a third-party gui so perfectly…

(and yes, I see it in the other image which agrees with your assessment of course)

2 Likes

Did a Google search and found the answer … FYI

The lightning bolt means that the Pi is not receiving the required voltage. This may be due to the power supply you are using or the cable.

I’m not using the correct PWRSupply , just a iPad charger port on my desk. Must be maxed out.

1 Like

That’s some good hacking! I’ve been steadily working away on a Fahrenheit version, and eventually a version that will display all observations in the same units you have selected in the Weather Flow app. I am away on holiday next week so can’t guarantee when it’ll be ready; but as they say, good things come to those who wait :stuck_out_tongue_winking_eye::stuck_out_tongue_winking_eye:

just took some time to upgrade but I got this after upgrading via the instructions of your GitHub page.
After a reboot nothing happened so I went in again and launched it manually via terminal and got this

pi@WF_console:~/wfpiconsole $ python3 main.py 
[INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_18-10-25_4.txt
[INFO   ] [Kivy        ] v1.11.0.dev0, git-038acbf, 20180915
[INFO   ] [Python      ] v3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516]
[INFO   ] [Factory     ] 195 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: egl_rpi
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
[INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
[INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max size <2048>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
2018-10-25 18:51:55+0200 [-] Log opened.
[INFO   ] [GL          ] NPOT texture support is available
Unable to connect to X server
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
[INFO   ] [MTD         ] Read event from </dev/input/event0>
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
[INFO   ] [HIDInput    ] Read event from </dev/input/event0>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [MTD         ] </dev/input/event0> range position X is 0 - 800
[INFO   ] [Support     ] Starting twisted reactor
[INFO   ] [HIDMotionEvent] using <b'FT5406 memory based driver\x00                                                                                                                                                                                                                                     '>
[INFO   ] [MTD         ] </dev/input/event0> range position Y is 0 - 480
[INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                                                                                                                                                                                     '> range ABS X position is 0 - 800
[INFO   ] [MTD         ] </dev/input/event0> range touch major is 0 - 0
[INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                                                                                                                                                                                     '> range ABS Y position is 0 - 480
[INFO   ] [MTD         ] </dev/input/event0> range touch minor is 0 - 0
[INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                                                                                                                                                                                     '> range position X is 0 - 800
[INFO   ] [MTD         ] </dev/input/event0> range pressure is 0 - 255
[INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                                                                                                                                                                                     '> range position Y is 0 - 480
[INFO   ] [MTD         ] </dev/input/event0> axes invertion: X is 0, Y is 0
[INFO   ] [MTD         ] </dev/input/event0> rotation set to 0
[INFO   ] [Base        ] Leaving application in progress...
[INFO   ] [Support     ] Shutting down twisted reactor
2018-10-25 18:51:58+0200 [-] Traceback (most recent call last):
2018-10-25 18:51:58+0200 [-]   File "main.py", line 1998, in <module>
2018-10-25 18:51:58+0200 [-]     WeatherFlowPiConsole().run()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 826, in run
2018-10-25 18:51:58+0200 [-]     runTouchApp()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 502, in runTouchApp
2018-10-25 18:51:58+0200 [-]     EventLoop.window.mainloop()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_egl_rpi.py", line 92, in mainloop
2018-10-25 18:51:58+0200 [-]     self._mainloop()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_egl_rpi.py", line 87, in _mainloop
2018-10-25 18:51:58+0200 [-]     EventLoop.idle()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 337, in idle
2018-10-25 18:51:58+0200 [-]     Clock.tick()
2018-10-25 18:51:58+0200 [-]   File "/usr/local/lib/python3.5/dist-packages/kivy/clock.py", line 581, in tick
2018-10-25 18:51:58+0200 [-]     self._process_events()
2018-10-25 18:51:58+0200 [-]   File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
2018-10-25 18:51:58+0200 [-]   File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
2018-10-25 18:51:58+0200 [-]   File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
2018-10-25 18:51:58+0200 [-]   File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
2018-10-25 18:51:58+0200 [-]   File "main.py", line 275, in <lambda>
2018-10-25 18:51:58+0200 [-]     Clock.schedule_once(lambda dt: self.DownloadForecast())
2018-10-25 18:51:58+0200 [-]   File "main.py", line 1546, in DownloadForecast
2018-10-25 18:51:58+0200 [-]     self.ExtractDarkSkyForecast()			
2018-10-25 18:51:58+0200 [-]   File "main.py", line 1659, in ExtractDarkSkyForecast
2018-10-25 18:51:58+0200 [-]     self.MetData['WindDir'] = self.WindBearingToCompassDirec(WindDir,1)[0]
2018-10-25 18:51:58+0200 [-] AttributeError: 'WeatherFlowPiConsole' object has no attribute 'WindBearingToCompassDirec'

something I missed ?

1 Like

Gaaaah! No it’s not you, it’s me. I renamed that function and forgot to update the code. Note to self: test a non-UK station before releasing the code.

I’ll get an update pushed ASAP! (might be tomorrow though)

3 Likes

updated just now, rebooted normally and it launched, all is metric but will go over it in more details later. Thanks Peter

2 Likes

@peter

Your display has already the spot for the future Breathe temp etc … guess that won’t be available for some time

I use one of the Air modules internally (depreciated beta model :wink:

Would it be possible to add the config part so we could use a second air as indoor model and show the details next to the outdoor details ???

3 Likes

Hi @peter,
i just updated now to v1.3 but i miss the max wind speed…

Opps - looks like the string is too long for the display box. I’ll get a fix sorted.

Definitely! I have been pondering this for a while - just need to come up with a way of making it universal, so the display will work with 2 Airs as well as 1 Air and 1 Breathe (eventually), or even 2 Breathes if someone wants it setup that way.

Cough, sensor_map, cough… :blush:

3 Likes

Seems like we spend most of our time fixing what we fixed. :wink:

5 Likes

Hi Peter -

Nicely done! I built your console this morning. Took about an hour. No problems.

Thanks for all of your hard work on this. It’s a great addition to my weather station.

Rick Comito

1 Like

@rcomito Thanks! Glad you like it :grin:

I’ve also just released a brand new version. See below!

installed :sleeping:

3 Likes

OK I managed to mess things up, and there are a couple of bugs that crash the code at midnight. Working on a fix at the moment!

2 Likes

installed, see if it survives the midnight hour :parrot:

4 Likes

Thanks Peter, v1.5 installed, i give you feedback if i found bugs…

1 Like

Oh, I see you leave out the decimal at the daily rain.
What a shame :expressionless: