OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › View logs not displaying any entries
- This topic has 22 replies, 5 voices, and was last updated 9 years, 9 months ago by TechFan.
-
AuthorPosts
-
January 24, 2015 at 4:34 pm #35338
Ken ThompsonParticipantHi there,
When I try to view logs in the mobile app it says there are no entries, despite there being entries that I can view on the full site. I am using OSPi with latest version of both app and mobile app.
Any thoughts?
Cheers,
Ken
January 24, 2015 at 5:57 pm #35342
SamerKeymasterSounds just like this issue: https://opensprinkler.com/forums/topic/log-display/
Could you please update your OSPi to include today’s changes and see if your issues are resolved.
You will likely have to delete the existing log file in order for new entries to work.
Thanks
April 17, 2015 at 2:07 am #36779
TechFanParticipantSo, our logs from last year won’t be able to be pulled up anymore? I remember there used to be a two week limitation on viewing logs from OS (not Pi) device. . .is that still the case. . .if that is the reason I can’t see any logs, it would be good to have that disclaimer display. . .
April 17, 2015 at 6:46 am #36789
SamerKeymasterNot sure what you are talking about. You can view any log from any date the limitation is one year at a time.
In other words you can view 2012-2013 but not 2012-2015.
The users in this thread experienced a bug in OSPi Python program which incorrectly escapes the JSON data causing the app to not read the data. The problem has been fixed but users who already had bad data had to delete the offending lines or simply delete the entire log file.
April 17, 2015 at 1:28 pm #36799
TechFanParticipantHm. I must be confused. . .will look back for the thread and related post. I was sure that with the OS (not Pi), there was a stated limitation that it was only possible to retrieve the logs from a couple weeks back from the SD card. . .
So, should I be able to see my logs from before I upgraded to 2.1.3 yesterday (activity would have been back in September 2014)? I tried just a month period for 9/14-10/14 and didn’t have anything found. . .
April 17, 2015 at 1:38 pm #36802
TechFanParticipantFound it:
https://opensprinkler.com/forums/topic/email-logs-from-iphoneipad-app/#post-27521
<em style=”border: 0px; font-family: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;”> @TechFan wrote:
Got up to date. Nice to be able to export. Any way to export all logs instead of just one week worth?
Sure, just select a wider range. It is exporting the range it’s requesting. For OpenSprinkler on Arduino the limit is in the firmware for one week (otherwise will return 404).
<em style=”border: 0px; font-family: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;”> @TechFan wrote:
Btw, missing the red highlighted schedules that help make it clear they are disabled.
Where is this not working exactly?
April 17, 2015 at 1:39 pm #36803
SamerKeymasterThis was an older firmware and the range has been extended to one year for quite a while now. If you are on the latest there should be no reason logs cannot be viewed.
Curiously, do your logs work if you select a smaller range?
April 17, 2015 at 1:43 pm #36804
SamerKeymasterAlso, if you are using Chrome, for example, can you right click on the page and push “Inspect Element” which will open up a extra window with a tab named “Network”.
If you have this open before you open the logs page, you can view the actual output from the controller by finding the URL that starts with: /jl?…
If there is data in the preview or response tabs under that request, then the app is not able to parse the data hence the no logs found (indicating an SD error possibly).
If there is no data from the controller than the app is truly getting no data and the firmware is likely having issues finding the log files for that time range. If this is the case, if you pop out the SD can you find the log files for that day? There will be a log file for each individual day that’s named for the minute value at the start of the day (epoch / 60).
Thanks
April 17, 2015 at 1:53 pm #36807
TechFanParticipantI’ll check from home. Not sure why I am not able to remotely connect today. . .haven’t tried since upgrade last night (2.0.9 to 2.1.3), but my router port forwarding hasn’t changed (high port)
April 17, 2015 at 2:57 pm #36811
aruzsiParticipantHi,
I don’t have SD card installed in my Sprinkler. Can I see the log?
Because my log said always no log entries in the given interval. I started one valve by hand and nothing in the log.
TIA,
BTW: How can I copy&paste anything from the Spinkler’s WEB page?
April 17, 2015 at 3:37 pm #36812
SamerKeymasterThe SD card is required for logging data as the Arduino does not otherwise have space to store log information.
The app doesn’t let you copy paste however your welcome to attach a screenshot.
April 17, 2015 at 4:00 pm #36813
aruzsiParticipantOK and thanks.
Tomorrow I’ll put into a 1GB mSD card.
April 17, 2015 at 6:37 pm #36823
TechFanParticipantI was able to connect directly with Chrome from away, but the app isn’t connecting with the same settings?? Tried pulling up logs, but failed. I’ll need to pull out the SD card to make sure the files are still there. It still should be able to read old log files right?
April 17, 2015 at 6:51 pm #36824
SamerKeymasterAre you able to add the site without any errors?
Does the connection process take a while before it fails? If so, the app has a more aggressive timeout duration as compared to the direct connection. If the connection is poor and taking longer than 6 seconds to complete this could be the cause of the problem regarding the app. Let me know so we can adjust this value.
The logs fail to come up (aka error) or it says no logs for selected entry? Let us know once you have loaded the SD into a computer so we can identify where the error is.
Thanks!
April 19, 2015 at 12:57 am #36866
TechFanParticipantIt doesn’t take a long time to load in the remote webpage. It fails on phone app.
Btw, there are lots of log files, but it appears you may have moved them to a subfolder called logs because that folder only has the most recent few days in it. I tried to copy the files from the root of the SD into the Logs folder, but it still isn’t finding them. First time it give me message that error occurred and after refresh it says it can’t find any logs. I made a copy of the contents of the SD, so I can work with the files and still keep the OS logging. What do you need me to look for? 16344.txt exists. . .what date is that supposed to be?
April 19, 2015 at 8:51 am #36870
SamerKeymasterAh okay yes, an older firmware logged to the root directory of the SD but we did change this to a sub directory.
Like I said earlier the file name is the epoch time of the day divided by 60. So you can multiply it by 60 and you will have the time in seconds since January 1, 1970.
As to why moving them didn’t work, I am not sure but since it sounds like a firmware thing maybe Ray can chime in.
April 19, 2015 at 11:24 am #36894
RayKeymasterOlder versions of the firmware store the log files in root directory, more recent ones stores them in a folder called LOGS (in order to get files better organized).
April 19, 2015 at 9:59 pm #36913
TechFanParticipantAny idea why the Gui isn’t finding the files if I copied to that sub folder?
April 20, 2015 at 12:49 am #36918
TechFanParticipantI am still a bit confused by your explanation of the date. . .not sure how multiplying by 60 gives me the time in seconds. . .I suspect you meant, multiplying by 60 x 60 x 24 will give me the time in seconds. . .so that file I provided should have been for 9/30/14. The webpage does not find any logs for that date.
—
Btw, I reset the OS app being allowed to access cellular data. . .and now it seems to be working. I was able to use the web version on my phone. . .so decided it must be the app itself. Somehow, even though it was set to allow, it wasn’t allowing. . .
April 20, 2015 at 12:43 pm #36936
RayKeymasterTo clarify, each log file is named by a number that’s the epoch time divided by 86400 (the number of seconds in a day). The epoch time counts the number of seconds since Jan 1, 1970, so that divided by 86400 gives the number of days since Jan 1, 1970. For example, the log data of Apr 20, 2015 would be stored in a file named 16545.txt.
April 20, 2015 at 5:24 pm #36959
TechFanParticipantYes, I think I got the formula correct. The file does exist. When I set the criteria down to a few days, I actually got it to work just now. . .started giving me trouble with the same error sequence at a window of 3 weeks of data.
April 20, 2015 at 5:34 pm #36962
SamerKeymasterThis could be an issue with latency. The Arduino is very slow at reading the SD and likely the app is timing out the attempt.
The direct IP method has no time out so see if this works any better?
Also glad you figured out the conversion because I was wrong.
April 21, 2015 at 11:55 am #36990
TechFanParticipantThat was using the IP of my OS in a browser on my computer, not the app.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › View logs not displaying any entries