|
Post by intelduopower on Jun 11, 2021 19:41:28 GMT -8
Is there anywhere I can download the raspberry pi image for Skyweather2? I am having a heck of an issue trying to get the software installed no matter what I do and how many time I start over from a fresh image. I cannot get the dash app to show any of the wireless Sensors correctly even though the system has found them. I also have the logging to database checked.
|
|
|
Post by doxidad on Jun 12, 2021 17:02:16 GMT -8
Some thoughts - Sorry if you already checked these things.
Are you getting any error messages? If so what are they.
Have you checked the database to see if anything is really going into it? You can use the select count to get how many entries there are in the WeatherData table. There should be some entries since the database is updated every 5 minutes. See example on how to get a count.
pi@WPI2:~/SDL_Pi_SkyWeather2 $ sudo mysql -u root -p SkyWeather2 Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3473 Server version: 10.3.27-MariaDB-0+deb10u1 Raspbian 10
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [SkyWeather2]> select count(*) from WeatherData; +----------+ | count(*) | +----------+ | 6393 | +----------+ 1 row in set (0.009 sec)
MariaDB [SkyWeather2]>
If you have a reasonable number of entries - Did you execute index.py (dash) with sudo? => sudo python index.py
|
|
|
Post by intelduopower on Jun 13, 2021 5:10:57 GMT -8
I got it working. I guess you have to have patience and wait for the data to come in. LOL Can you change the interval on how often it writes data to the database? I would possible like it to be sooner than 5 minutes.
|
|
|
Post by doxidad on Jun 13, 2021 7:23:23 GMT -8
Happy to see it ls working.
Sorry, I was wrong. The data is updated every 15 minutes in the database. Sorry about that. I looked at the data record timestamp to quickly - oops. If you want to make the data storage more often look for this line in SkyWeather2.py scheduler.add_job(pclogging.writeWeatherRecord, 'interval', seconds= 15*60) Change the 15 in this line to the time you want (minutes).
|
|
|
Post by intelduopower on Jun 13, 2021 9:26:20 GMT -8
Thank you doxidad. I got it working with the steps you listed
|
|