no problem at all, I appreciate the attention you are giving this.
Iāve got a quick fix. First make a backup of main.py in case everything goes wrong, and then in main.py replace every instance of
device/{}?
with
?device_id={}&
This is changing the URL of the API calls to a format that still seems to work, so will stop the console falling over because it gets no data back from the API.
just tested it, confirmed working.
Be careful when editing ;-), every space counts
thanks Peter
He who likes to remain anonymous did mention that there was an update to the API, so I suspect some changes were introduced that caused this.
https://community.tempest.earth/t/cl-system-for-pressure-calibration-explained/2496/28?u=garyfunk
Now it is working. Someone got the message.
device/{}?
with
?device_id={}&
I made the modification, and it works great! Thanks Peter.
Oh ⦠and hereās a followup of my 12H Time formatā¦
#self.Screen[āClockā] = datetime.now(pytz.utc).astimezone(Tz).strftime(ā%a, %d %b %Y\n%H:%M:%Sā)
self.Screen[āClockā] = datetime.now(pytz.utc).astimezone(Tz).strftime(ā%a, %b %d, %Y\n%I:%M:%S %pā)
This is fantastic for total novices like me but do have a question. Followed the instructions and had it up and running in no time and it looks like itās working. The catch is, I donāt have the 7" Pi screen and want to run on HDMI to āstandardā monitor. Older eyes need bigger stuff. I looked through this topic (lots of reading) but didnāt find any instructions on how I might do that. Did I just miss it? Anybody know how to do that?
Hi @duvalljm. Thanks for checking out the console. So it should run fine on a larger HDMI monitor, but unfortunately it wonāt run full screen and will still be limited to 800x480. This is by design as I have always designed the console with the Raspberry Pi in mind. Designing the console to resize to fit any screen is on the to-do list, but it is pretty much at the bottom.
As a possible work around, you can set the resolution on your HDMI monitor to 800x480 and then it will run full screen.
I run piconsole on an old Dell 4:3 monitor - @ 800X600.
I use a HDMI to VGA (RGB) adapter - out from the Raspberry Pi. Because I have additional screen real-estate left over from the balance of the 800X400 that the console uses, I fill that with a larger font & format of the Date/Time. If you are interested in the modifications required to do this let me know. I had to modify a few files to get the format and layout that I was looking for.
Here is a screenshot ā¦
EDIT: keep in mind each time Peter releases an update you will have to go through the modifications each time you update.
I forgot the command to open the .ini file to view my api codes can you refresh me on how to open the file
If it is on a RPi, you can use cat file.ini to print to the screen or nano file.ini to edit.
Iāam having the same problem as last time. None of the information that comes from my station is not filling in i check the API keys station number sky number air number they all match so i am lost all i did is update and put the information back in. I wish i was more familiar with code so i donāt have to keep bothering you. Any other ideas in what it could be.@peter & @GaryFunk
Station ID 5766
Air ID 18830
Sky ID 17745
Hi @dswally. Can you give me a little more info on what problem you are seeing? Perhaps some screenshots, or can you copy and paste the error message that is being displayed?
I have tested your station this morning and everything seems to work fine for me. I had to change your Air ID to 18330 instead of 18830. Perhaps this was the problem?
Donāt worry about bothering us. Weāre here to help as much as our time allows!
It wasnāt working all night woke up and somehow itās working maybe there was something wrong with the WiFi cause we did have a heavy rain last night anyways thank you for your quick response I really appreciate it
Great! Glad to hear it is working. It may be that an API call was failing during construction of the configuration file. This happens from time and time and it is very hard to counter against as the console needs the information provided by the API. For the good news though, now that the console has that information in the .ini file, unless you move your station or accidentally delete the .ini file, it should never need to download it again.
Oops: Iām a troublemaker! See:
When I do the initial setup, I get:
2019-01-26 08:44:15-0400 [-] Traceback (most recent call last):
2019-01-26 08:44:15-0400 [-] File āmain.pyā, line 2358, in
2019-01-26 08:44:15-0400 [-] wfpiconsole().run()
2019-01-26 08:44:15-0400 [-] File ā/usr/local/lib/python3.5/dist-packages/kivy/app.pyā, line 800, in run
2019-01-26 08:44:15-0400 [-] root = self.build()
2019-01-26 08:44:15-0400 [-] File āmain.pyā, line 234, in build
2019-01-26 08:44:15-0400 [-] self.SunriseSunset()
2019-01-26 08:44:15-0400 [-] File āmain.pyā, line 1437, in SunriseSunset
2019-01-26 08:44:15-0400 [-] Tz = pytz.timezone(self.config[āStationā][āTimezoneā])
2019-01-26 08:44:15-0400 [-] File ā/usr/local/lib/python3.5/dist-packages/pytz/init.pyā, line 177, in timezone
2019-01-26 08:44:15-0400 [-] raise UnknownTimeZoneError(zone)
2019-01-26 08:44:15-0400 [-] pytz.exceptions.UnknownTimeZoneError: āSystemV/AST4ā
Installed the newest version 2 but you need to change a few things in the tuto on GitHub @peter
the old ini file used your devices names where you have to use the Device ID now, so when you start in terminal the first time remember to have those numbers ready
also the auto boot section will not work as the files have changed name
to be sure do following commands in terminal to disable the old auto start service
sudo systemctl disable WeatherFlowPiConsole.service
then go to
cd /etc/systemd/system
now delete the old service file
sudo rm WeatherFlowPiConsole.service
from now on the auto install should be done like this (new names)
Auto-Run Instructions
If you want to enable the console to auto-run when the Raspberry Pi powers up, copy the WeatherFlowPiConsole.service file into /etc/systemd/system/. These .service files assumes you have installed the PiConsole in the default directory (~/wfpiconsole/) and are using the default āPiā username. If you have installed the PiConsole in a different location, or are using a different username, I assume you know what you are doing and can edit the .service file appropriately.
cd ~/wfpiconsole/
sudo cp wfpiconsole.service /etc/systemd/system/
Start the service using
sudo systemctl start wfpiconsole.service
If the console boots and everything is working, stop the console and set the service to start automatically at reboot
sudo systemctl stop wfpiconsole.service
sudo systemctl enable wfpiconsole.service
Reboot your Raspberry Pi and the console should come up automatically
sudo reboot now
If you are going to use the auto-start method, it is highly recommended that you can SSH into your Raspberry Pi, as the console can only be stopped using the stop command above and not ctrl-c on the keyboard.
[Disregard⦠Confirmed the answer in a previous post!]
Hi Peter,
My PiConsole is just about finished. I am trying to set it up to Auto-Run.
The instructions on GitHub say to copy the service file:
sudo cp WeatherFlowPiConsole.service /etc/systemd/system/
I donāt have that file in my directory. I do have the file wfpiconsole.service. Is this the file to copy? Iām guessing there was a filename change during development.
This is my first Pi project and Iām LOVING it. Thank you so much for this! Works beautifully.
So if I change the .ini file to read āEtc/GMT+4ā instead, then pytz doesnāt fall over, and it seems to work. Should I ask the WF folks to fix their timezone to that, or will that break something else? Iām happy to leave this kludge in place, because Iām in a particularly unique situationā¦
Thanks!
good questions
if you change manually the time zone as you describe, you will locally be ok but what happens when auto calibration is looking for your station and goes looking for nearby data ???