OpenSprinkler › Forums › Comments, Suggestions, Requests › Email logs from iphone/ipad app?
- This topic is empty.
-
AuthorPosts
-
July 11, 2014 at 5:57 am #23044
TechFanParticipantI have been trying to figure out a good way to get my log files out of the OS (not Pi) without pulling out the SD. . .and I was thinking, many apps allow you to email content from them. . .since the app is already pulling up the whole log, could it be tweaked to allow the logs to be sent attached to an email?
Of course, if you could access the logs from the built in web page, you could download them from there as well. . .
July 11, 2014 at 6:40 pm #27517
SamerKeymasterI think this is a reasonable option and something I will add to the todo list.
Thanks!
Update: since we are discussing email I might also add an email option for device backup.
Update 2: I have added these options and should expect to see them in the next release.
August 6, 2014 at 5:59 am #27518
TechFanParticipantAwesome! Somehow I missed subscribing to this and missed your response! I guess I should also check if the update was already released.
Sent from my iPhone using Tapatalk
August 8, 2014 at 5:32 am #27519
TechFanParticipantGot up to date. Nice to be able to export. Any way to export all logs instead of just one week worth?
Sent from my iPhone using Tapatalk
August 8, 2014 at 5:55 am #27520
TechFanParticipantBtw, missing the red highlighted schedules that help make it clear they are disabled.
Sent from my iPhone using Tapatalk
August 8, 2014 at 10:36 pm #27521
SamerKeymaster@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).
@TechFan wrote:
Btw, missing the red highlighted schedules that help make it clear they are disabled.
Where is this not working exactly?
August 9, 2014 at 3:29 am #27522
TechFanParticipantOk. So one disadvantage of arduino version. I guess I still have to open to get logs.
Red was missing. Fixed overnight somehow. Had done reboot. Maybe that was it.
Sent from my iPhone using Tapatalk
August 20, 2014 at 10:07 am #27523
ottorinoParticipantI’ve tried this feature, but I’ve only received an empty e-mail without any attachment.
What am I missing here?PS
Firmware 2.0.7 on OS, with 16gb SD card FAT32 formatted.
I can see the logs in the app both graphically and as tables.August 20, 2014 at 3:13 pm #27524
TechFanParticipantFor me data as text in body of email.
Btw, until I save a program, the red highlighting doesn’t show on disabled programs.
Sent from my iPhone using Tapatalk
August 21, 2014 at 12:24 am #27525
SamerKeymaster@ottorino Sorry to hear about your issue. Which device are you on? Also, the link should open an email composer with the data inside the body of the email. Before sending it, is the body filled out or empty?
Which firmware and device are you using?
Thanks!
August 22, 2014 at 10:29 am #27526
ottorinoParticipantI’ve placed all the details in my signature. Should it not to be exhaustive, I can add details: just tell me which ones.
Yes: on pressing the button ‘export’, the e-mail client opens up with an empty message. Only the subject field is filled with text.
Apparently I have also some other problems (better call them perplexities), but I will report on them when I will have a true keyboard and a more reliable connection.PS
No need to be sorry, Samer. I’m only reporting, hoping to help to improve the whole systemAugust 23, 2014 at 1:17 am #27527
SamerKeymasterI will have to look into this and get back with you however my main question is this (and of course backup if you are willing to try this):
If you reset the config, does the export work? I am wondering if this is some sort of data encoding issue in station names?
Thanks!
August 23, 2014 at 2:11 pm #27528
ottorinoParticipantI will try this as soon I will get back home.
I’m waiting for a TP link to permanently connect the controller.I am wondering if this is some sort of data encoding issue in station names?
As far I can remember, I have no particular “weird” characters in it; accented ones I mean. Only ASCII ones, spaces and capitals included.
August 23, 2014 at 10:06 pm #27529
SamerKeymasterInside the apps side panel (main page) can you export to email (the small icon to the right of the export text)?
If so this issue is related to the content.
August 25, 2014 at 6:39 am #27530
ottorinoParticipant@salbahra wrote:
If you reset the config, does the export work? I am wondering if this is some sort of data encoding issue in station names?
Thanks!
No. Still the same behaviour.
On restoring the configuration I’ve found ten programms instead than 5.
I have to check them, but at first inspection it seems that they are my actual ones plus some old ones.
Is that doubling of programs an expected behaviour?UPDATE: they are doubled; two identical copies of 5 programs.
1=6, 2=7, …., 5=10.No. I can’t even find any export on both side panels: may be I did not understand well where to search for it.
In the meanwhile, I upgraded to version 1.1.7 the web interface.
UPDATE: from the web interface (ethernet wire connected to my router, iceweasel on Debian wheezy) I cannot export the log at all. On pressing “export” the e-mali client (Evolution) do not even opens up. I will check Iceweasel settings.
Should I move to 2.0.8 firmware ??August 25, 2014 at 11:55 am #27531
SamerKeymasterThe restore prior to 1.1.7 didn’t remove the old programs before import. Hence the doubling.
I will look into the export still.
August 25, 2014 at 4:03 pm #27532
ottorinoParticipant@ottorino wrote:
Apparently I have also some other problems (better call them perplexities), but I will report on them when I will have a true keyboard and a more reliable connection.
On the mobile app: on entering the log page, appears a graphic, with lines, no areas. If you modify the time window, or the grouping, the graph doubles and appears as seen trough a prism. Almost unreadable
On the web program: none of the above; and the lines appears not as areas, but as lines.
I can say areas because for some reason I’ve got a unreal 1091 seconds on a station, dropping to zero in 20 minutes, linearly.
It was due to some misfunctioning: that station entered in a strange loop; it was running over and over again, but the valves did not open at all.
To reboot was not sufficient: I had to turn the controller off and wait some minutes to recover.
This is the main reason for which I would like to see the logs.
Before you ask, Samer: the logs are not mailable, either if the weird run is included or not.
I also noticed that on table, only minutes are reported. I have a heavy clayey soil with some slope here and there, i.e. its infiltration rate is very low and dictates very short (about 40 sec) and long-distant-in-time watering periods.
Are the emailed logs rounded to the nearest minute as well ?
August 25, 2014 at 10:27 pm #27533
SamerKeymasterOkay so, 1.1.7 hopefully address the double graph in Android. This is a problem with Android and the flot library as it has been reported for the flot library.
For the table view, the time is now shown (1.1.7) in seconds, minutes, hours, days (w/e is needed) so no rounding is done. Also, the app has always emailed exact second runs (no rounding or minutes).
In regard to your other issues, I honestly don’t get what is happening so if you can I would like to try and troubleshoot while you are on and experiencing the issue. I will send you a private message so we can coordinate such a time.
Thanks
August 25, 2014 at 11:38 pm #27534
ottorinoParticipantSure I will.
I already noticed that the web interface has no issues in roundingAugust 26, 2014 at 10:09 pm #27535
SamerKeymasterBased on your message to me, the logging to email works fine however the Android client you used didn’t support a body being provided by the app however GMail app worked fine.
Based on this I am considering this issue resolved.
August 29, 2014 at 8:20 am #27536
ottorinoParticipantThanks Samer, it was easier than I expected.
Now I have another question: the data format of the logs.
They looks like;
I would like to import them into “R”, but this is not a familiar format to me.
I can guess that ( between the inner [ ], from the last figure );
A) the long final figure is the date (which format ? seconds from which date ?);
B) the number before are the seconds during which the station was on
(the “65533” is the mistery I would like to solve; it has been happened twice during this month);C) the number before is the program which activate the station, being 0 a manual start.
D) the first number should be the station, but I suppose that the “99” have a special meaning, which I’m missing.
Are my guesses correct ??
August 29, 2014 at 9:34 pm #27537
SamerKeymasterA) The date (element 4 in the array) is a unixtime (which is seconds from Jan 1, 1970) UTC timestamp.
B) The third element in the array is the seconds the station has run
C) The second element in the array is the station ID. If you have 16 stations, for example, then it will show 0 to 15 here (n-1). Also, the rain sensor and rain delay output here as 16 (n) and 17 (n+1) respectively.
D) The first number is the program number. There are special numbers which are as follows:
99 and 255: Manual Program
98 and 254: Run-once ProgramOtherwise they correspond to the program number minus one (n-1).
September 9, 2014 at 5:17 pm #27538
ottorinoParticipantI think it’s correct to continue in this topic, the discussion that was started here
http://rayshobby.net/phpBB3/viewtopic.php?f=2&t=897&start=40#p5883I’m aware of the limitations of OS(notPi) about the week.
Is it not possible to automatize the mail sending of the log, say weekly or every second day ?
September 9, 2014 at 5:25 pm #27539
SamerKeymasterIt is within the firmware. But you can also make a script to run on a server and pull the text files daily off the opensprinkler.
September 9, 2014 at 5:34 pm #27540
TechFanParticipantYes, it does seem it should be in the firmware. . .in the GUI, it could only run if you logged in and remained connected. Maybe in an app/program (like the OSX version). . .but ideally, it would be great if the OS(!PI) could send emails itself.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Comments, Suggestions, Requests › Email logs from iphone/ipad app?