OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Logging Bug
- This topic has 8 replies, 4 voices, and was last updated 9 years, 11 months ago by Stephen.
-
AuthorPosts
-
February 15, 2015 at 10:17 pm #35575
higgbemeParticipantHey everyone, I’m a new user of OSPi and think it’s awesome what all it can do. However, I have had some difficulty in getting it up and running from a fresh install and I believe it’s due to a bug in helpers.py, specifically line 216 (f.writelines(lines[:gv.sd[‘lr’]])). lr is defined as u”100″ and that causes an error when writing to logs and it appears as stations not changing in programs for no apparent reason. It’s very repeatable.
A workaround is to change the log size in the web app. After doing that it works fine.
Attachments:
February 16, 2015 at 12:21 pm #35581
Dan in CAParticipantThanks for reporting this.
The bug was actually in gv.py line 55 (u”lr”: u”100″), changed to (u”lr”: 100).
Update is now on GitHub.
Dan
February 16, 2015 at 12:50 pm #35582
djagerifParticipantDan,
I tried the system_update plugin and it pulled the new one from github but unfortunately it didn’t update the CPU temperature and also my plugin dropdown only showed ‘Manage Plugins’. The only way to get it activated was to restart the interval program, a page refresh didn’t help either. Is this the only way or is there something else I could have tried?
Ingo
February 17, 2015 at 11:56 am #35585
Dan in CAParticipantLooks like the restart after fetching the update needs some fine tuning.
I’ll work on it.
Did the CPU temp update after the restart?
Dan
February 17, 2015 at 12:36 pm #35586
djagerifParticipantYes, both the CPU and the Manage Plugins menu came back to life after a restart.
Ingo
February 19, 2015 at 1:24 pm #35615
Dan in CAParticipantOK,
I posted an update to GitHub.
The problem had to do with the gpio_pins.py file not loading properly. The temperature reading is platform dependent and the gpio_pins file is where the platform (pi/beagle bone black) is determined. At first I thought is was a minor inconvenience but when the temp reading was zero, no zones could be turned on either.
There were also some changes to the system updater plugin and I would recommend doing a manual software update at this point to avoid some strange problems that result from the old updater.
Dan
February 20, 2015 at 6:15 pm #35617
StephenParticipantDan,
I have just updated my OSPi using the “old-fashioned” git pull, and I am pleased that you have changed how the plugins work.
Ever keen to see new things you guys are creating, I browsed to the plugins page, and note there is a small typographical error – you have “BROWS MORE PLUGINS” – it should read “BROWSE MORE PLUGINS”.
Keep up the great work!
Attachments:
February 21, 2015 at 5:57 pm #35628
Dan in CAParticipantSomeone issued a pull request on GitHub with a fix before I even saw this post so it should be correct now.
It’s really great to have input from the user community like that!
Dan
February 25, 2015 at 5:28 am #35679
StephenParticipantWow, that was quick!
Yes, it has been fixed in version 2.2.30 that I just updated using the “System Update” plugin! Thank you, everyone!
Attachments:
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Logging Bug